Logging isn’t working as descriped in documenation

  • Klaus79
    Participant
      6 years, 1 month ago #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
      Keymaster
        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
      6 years, 1 month ago #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
      Participant
        6 years, 1 month ago #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
        Keymaster
          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
        6 years, 1 month ago #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/

      Viewing 4 posts - 1 through 4 (of 4 total)

      You must be logged in to reply to this topic.