Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To support a situation when log output should be consolidated to files the JS7 - REST Web Service API allows access to log output of orders and jobs. The JS7 - PowerShell Module is a lightweight wrapper for the REST Web Service API that is used for the below examples with Linux and Windows. Users are free to use the JS7 REST Web Service from their preferred scripting language to provide similar functionality.

For similar handling of order logs see JS7 - How to make order logs available from files.

Task Logs

The following cmdlets are provided:

...

Download: pdwTaskLogsToFiles.workflow.json


Image Modified


Explanation:

...

  • Lines 1, 4: Same explanations as for the previous job.
  • Lines 7,8: The History ID of the last processing of this job is picked up from an environment variable that is assigned the workflow variable previously serialized and base64-encoded.
    • Image AddedImage Removed

  • Line 10: When reading the task history then the variable carrying the History ID is updated and is forwarded to the workflow for next execution of the cycle. 

...