Create a same catalog task and not to re-open it in workflow

pramodkumar
Tera Expert

Hello All,

 

I'm working on a workflow for one of the catalog item. We have 2 catalog tasks which are created one after other. When Second task is cancelled it should create another task(same as first) and when I rollback to the first one in workflow it's re-opening the task without creating it. What would be the best way to create the task again in workflow. These creation of tasks can be in loop until second is closed completely. Any suggestions?

 

 

Thanks!

4 REPLIES 4

Bharath40
Giga Guru

You will have to create third task using script that way you can create n number of tasks until it is closed complete

find_real_file.png

Thanks Bharath for the response.

Wait for condition here will look for RITM and not catalog tasks as the workflow is on request item table. Do we need to write script in wait for condition activity to look for tasks states or is there any condition to check for task state?

 

 

Thanks!

Yes write script to check the state of Tasks related to Requested Item.

Thanks Bharath for the quick resoponse !

 

I tried capturing  the sys id of task in scratchpad in run script and used the state of task in wait for condition script, but it didn't work. Can you tell me how to check the state of task in wait for condition activity.

 

 

Thanks!