Logging isn’t working as descriped in documenation

  • Klaus79
    Teilnehmer
      vor 6 Jahren, 9 Monaten #17323

      When I try to use your examples from documenation in a script task in process designer I get following error in debug mode:

      Simplifier.Log.info(“xxx”);

       

      error: ‘Simplifier’ is not defined

       

      How to use the examples from your documentation?

      App Builder Guide

      Chris Bouveret
      Administrator
        Has successfully completed the online course Introduction
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (320)
        Has successfully completed the Intermediate Certification
        Has successfully completed the Advanced Certification
      vor 6 Jahren, 9 Monaten #17324
      Up
      1
      Down
      ::

      Hi there,

      Simplifier.Log works within Server-Side Business Objects. Please make sure you are using it in this context.

      Hope that helps

       

      Klaus79
      Teilnehmer
        vor 6 Jahren, 9 Monaten #17325
        Up
        1
        Down
        ::

        Hi Chris,

        thx for the information that it has to be used in BO context.

        How can I write log entries in script tasks in process designer?

        Chris Bouveret
        Administrator
          Has successfully completed the online course Introduction
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (320)
          Has successfully completed the Intermediate Certification
          Has successfully completed the Advanced Certification
        vor 6 Jahren, 9 Monaten #17326
        Up
        0
        Down
        ::

        Since Script tags will be generated within client side Javascript Code you can simply use console.log(“”) and then inspect the Browser Console to see your logs.
        Within Chrome DevTools you can also use Breakpoints etc. to debug your App, please see https://developers.google.com/web/tools/chrome-devtools for detailed information on Chrome DevTools. In Firefox e.g. this would be Firebug instead of DevTools see https://getfirebug.com/

      Ansicht von 4 Beiträgen – 1 bis 4 (von insgesamt 4)

      You must be logged in to reply to this topic.