Subflow for parallel task

pramod pandey1
Tera Contributor

Hello All,

 

I have one requirement were i need to create 5 parallel task when scTask is close completed.

I want to create those 5 parallel task as subflow. Below is flow and part which is marked in circle need to created in subflow and then attact it to actual flow.

 

pramodpandey1_0-1707212344492.png

Need to create sub flow for task circled.

 

Thanks

Pramod Pandey

8 REPLIES 8

Hi @pramod pandey1, As per my knowledge, you need to create a variable on catalog item and then you can hide / show it on RITM / SCTASK as per the use case. Unless you have the variable (question) created in catalog item, you cannot show it to the user nor user can input.

 

May I know the sort of question / input you would need from user? is it outside the service catalog? You can also trigger an event to perform some script actions.

 

Regards,

Sunil

BHAGYESH BHOSAL
Tera Expert

Pramod , you can create sub flows separately as per your need , and you can mapped using "Do the following in parallel" .
Refer this link   Do the following in parallel flow logic 

 

Please mark it as helpful , if your query is resolved .

BHAGYESHBHOSAL_0-1707213710896.png

 

pramod pandey1
Tera Contributor

@SunilKumar_P  I created subflow for 5 parallel task as you mentioned and after activating it same i have attached it to main flow.

 

But when i trigger catalog item till main flow part it is working correctly as subflow logic start i am getting error,

I think error is at input output section but i am not sure. 

pramodpandey1_0-1707827348529.png

 

pramodpandey1_1-1707827434729.png

 

 

Thanks

Pramod Pandey

 

Hi @pramod pandey1, have you created an input in subflow? The input should be of refernce type and referencing to the sc_req_item table and then in the mainflow, you need to configure (drag & drop) requested item into the subflow input.

 

Regards,

Sunil