Create SCTASK in two separate RITMs when the second SCTASK of the respective RITM is closed.

HudyssonPOntes
Tera Expert

Good afternoon everyone, how are you? I have a scenario where two RITMs are created, and in each RITM there will be three SCTASKs. However, the third SCTASK can only be created after the second SCTASK is closed. So, I will have:

RITM01
   SCTASK101
   SCTASK102

RITM02
   SCTASK201
   SCTASK202

Currently, my flow waits for the closure of the second SCTASK in a dependent manner. If I close the second SCTASK of RITM02, it doesn't create the third one unless I also close the second SCTASK of RITM01. I need the flow to wait independently in each RITM. If I close the second SCTASK of RITM01, it should create the third SCTASK in RITM01. If it closes the second SCTASK of RITM02, it should create the third SCTASK in RITM02. Could you please help me? Thank you.

HudyssonPOntes_0-1744231196757.pngHudyssonPOntes_1-1744231216286.png

 

7 REPLIES 7

Rajesh_Bhise
Tera Guru

Hello @HudyssonPOntes,

 

Sorry but i dont understand why did you create subflow for the third task. If you create 3 tasks one by one (under for Each) and check the box "wait for completion"(under create task action), it will go separately for each RITM.

 

Hence I would suggest to remove subflow and add create task (3rd one) and then check if it is working for your expectations. I hope this would resolve your issue.

 

Please correct me if I did not get your issue.

Thank You,

Rajesh

Good morning!

I tried to do it the way you suggested, but I didn't get the result I needed. After creating the second TASK of the first RITM, the flow waits for me to close it to then create the third TASK of the RITM, and the second RITM with its first two TASKs. I would need to create two RITMs with two TASKs each and for the third TASK of each RITM to be created when the second TASK of each RITM was closed, independently, without the third TASK of the second RITM depending on the third TASK of the first RITM, and without the third TASK of the first RITM depending on the second TASK of the second RITM.

 

HudyssonPOntes_0-1744292050118.pngHudyssonPOntes_1-1744292055695.pngHudyssonPOntes_2-1744292059511.png

 

 

Thank you very much for your attention

Try "Do the following in Parallel" Flow logic, so both requests will be processed parallelly.