- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 06:18 AM
Hello ServiceNow Gurus,
I have a fairly large workflow that generates about 50 tasks, uses a couple of "branch and join", a few "wait for" conditions, "if" conditions, and a few set value conditions.
During validation and at publish- the system shows there are no warnings or critical errors. However, when the workflow conditions are met on the form and triggered- the workflow takes a long time to execute and often doesn't execute and hangs.
What are a few things I can do to remediate this issue?
Much thanks for you insight on this.
-Dominic
Solved! Go to Solution.
- Labels:
-
Enterprise Release Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 08:01 AM
Try to place the chunks in seperate workflows and use them as a subworkflow in your main workflow. I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 06:27 AM
I have a few questions-
Can you provide a snapshot of the workflow ?
Are you creating the tasks using workflow activity or using initialize() or newRecord() function to generate the tasks ?
What is the span of the timers you have created on the workflow and how many such timers exist ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 07:02 AM
Hi Dominic,
Are you using this workflow in a catalog item or any table ? where are you creating the tasks? If you want to create a catalog task then you should use catalog task activity instead of create task.
But I would recommend-
Instead of creating so many workflow activities- why don't you create a table and mention all the task details there- eg.- columns in the table will contain- short description,assignment groups,description,condition etc. If the tasks created depends on particular region or country then you can mentioned that too in the table.
Create a runscript activity to get the condition specified in the catalog item and run a GlideRecord in the table you created to pick up the assignment groups and to create the tasks using initialize function in sc_task table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 07:19 AM
Hi Manoj,
The table the workflow is driven off is the Release table(rm_release). The workflow is only triggered when the user selects Major Release, and the tasks are created on the Release Task table(rm_task).
Also, I checked my requirements, I am not allowed to create a secondary table.
What are my other options?
Thanks.
-Dominic