Logging from a flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 07:55 AM
Is there a workflow.info equivalent for a Flow Designer script?
I know that there is a log action, but I would like to update the flow log from a script step to help with debugging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 08:17 AM - edited 11-08-2022 08:19 AM
Yes, it works inline. I just tested
Can you post your code? Maybe something else is going wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 08:43 AM
Hi Mike
That's weird. This is my script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 08:48 AM
try this instead, for testing purposes
gs.info('in flow script');
//var task_state = parseInt(fd_data._7__create_catalog_task.catalog_task.getValue('state'));
return 3; // closed complete
Also, when you tested the flow, and go to the execution details, are there any errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 09:22 AM
Hi Mike_R
Changed the script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2022 09:32 AM
Can you test you flow by clicking the test button
Then view the execution details by clicking this
This way you can see if there are any errors and if the flow even reaches the action where you have the code.