Add New State on Catalog Task: Workflow Not Working

Ishan Bajaj
Giga Expert

Hello Team,

This is regarding the new state on Catalog Task table.

Issue: Have added new state choice as 'Closed Cancelled (9)' under catalog task/task table. Now, when my workflow reaches the catalog task where I have two conditions i.e. Closed Complete: activity.result == 3  & Closed Cancelled: activity.result == 9

If user mark the task as closed complete no issue workflow works and goes to next activity BUT if user mark the task as closed cancelled then workflow gets stuck and doesn't move forward.

Troubleshooting:

1. Have checked with different closure states i.e. Closed Incomplete, Closed Skipped its working as these states are defined OOTB

2. Have checked one BR i.e. SNC - Run parent workflows + associated Script Include - TaskStateUtil().canRunParentWF(current) and added the new state but it doesn't work.

ScreenShot:

1. Task state:-

find_real_file.png

2. Sample Workflow - Have created to check the conditions:-

find_real_file.png

 

Has anyone done these changes in your engagements. If yes, can you please provide solution.

21 REPLIES 21

yep, that will work. 

I'm sorry Harsh. Just received Client meeting from 7-8.30 PM. Can we connect tomorrow for an hour/30 mins based on your availability. If yes, please provide your possible time for tomorrow.

Thank you.

sure, after 10 AM IST i will be available. 

Tejaswini9
Tera Expert

Hello @Ishan Bajaj ,

 

We too have the requirement to add the additional state option such as "Resolved" in the state field of "SC Task", Could you please suggest us were you able to make your workflow run for the custom choices, if so could you be kind and post the answer if you are able to find the resolution.

Any suggestions would be very greatful 

i have posted the similar question "https://community.servicenow.com/community?id=community_question&sys_id=96d889f7dbf4ec10fb4ae15b8a9619f1"

 

Thank you!!!

Hello Tejaswini,

 

Have replied. Kindly have a look on the solution implemented and If my answer helped you in any way, please then mark it as Correct/helpful.