debugging a workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 09:41 AM
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:
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:
so if I do a test order of this item, should I see "hello" message in the system log?
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 09:55 AM
Could you just check if the workflow got associated to the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 10:02 AM
ok right thanks, looking in the Workflow Contexts it does not appear as though the workflow is being triggered because it's not showing up there.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 10:05 AM
Correct. A better approach is to scroll to the record that is created scroll to the bottom there would be Related links section & you will get Show workflow action if you have workflow associated to that record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 11:17 AM
great, thanks Jaspal...I used your suggestions to determine that the workflow was not being triggered. I then saw that I had the incorrect workflow identified on the catalog item itself...that was it!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 11:20 AM
Did you get the correct once associated. If so look for logs & confirm if that shows.