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

Hello Harsh,

 

Kindly find the below screenshot. There is no value coming up in the workflow activity when marking the task is closed cancelled.

 

find_real_file.png

 

 

find_real_file.png

can you open the task record and right click on header >> show xml and check the state value of closed cancelled? 

Yes, it's 9.

 

find_real_file.png

are you doing it on personal instance ? if not would it be possible for quick webex? this way it will be easy to quickly troubleshoot. please send me the zoom or webex details on below email 

 

hvrdhn88@gmail.com

Thank you Harsh. I'll send Google invite. Can we have a call at 7 PM IST today, if possible for you.