Logging from a flow

Colleen
Tera Expert

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.

14 REPLIES 14

Yes, it works inline. I just tested

 

 

Mike_R_1-1667924203288.png

 

Mike_R_0-1667924198697.png

 

 

Can you post your code? Maybe something else is going wrong.

Hi Mike

That's weird.  This is my script:

 

gs.info('in flow script');
var task_state = parseInt(fd_data._7__create_catalog_task.catalog_task.getValue('state'));
return (task_state==3); // closed complete
 
I've checked the system log and nothing.

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?

Mike_R_0-1667926047526.png

 

Hi Mike_R

 

Changed the script:

 

gs.info('XXXXXXXXX in flow script');
// var task_state = parseInt(fd_data._7__create_catalog_task.catalog_task.getValue('state'));
return true; // closed complete
 
Still nothing in the system log, and no execution errors.
 
Maybe I need to set a property to enable logging?

Can you test you flow by clicking the test button

Mike_R_0-1667928665998.png

 

Then view the execution details by clicking this

Mike_R_1-1667928691949.png

 

This way you can see if there are any errors and if the flow even reaches the action where you have the code.