The CreatorCon Call for Content is officially open! Get started here.

debugging a workflow

patricklatella
Mega Sage

Hi all,

I've got a workflow that I'm building, and initially I'm just trying to see if parts are firing by using a gs.info()...so the first question is can I do this inside a "Run Script" command within a workflow?

Here's the set up:

find_real_file.png

This workflow is running on the sc_req_item table, the IF statement is picking up whether it's my desired catalog item.   Then for now I just want to see if the Run Script there is working with this script:

find_real_file.png

so if I do a test order of this item, should I see   "hello" message in the system log?

10 REPLIES 10

Jaspal Singh
Mega Patron
Mega Patron

Hi Patrick,



You can use gs.log('abc test');



instead of gs.info() in runscript for viewing logs.


patricklatella
Mega Sage

Hi Jaspal,


ok thanks.   So if I put that script in, I should see "hello" in a message column in the system log when I create a requested item for this catalog item?




find_real_file.png


Correct.


patricklatella
Mega Sage

OK thanks, so if I don't see that message in the log, what might be issue?   These are the log entries my a test I just did.



find_real_file.png