The CreatorCon Call for Content is officially open! Get started here.

How do I create multiple tasks based on variables selected on catalog item

Aru
Kilo Explorer

Hello!

I have created a catalog item for Staff Termination and am trying to find a way to create multiple tasks as per the variables selected on that catalog item.

At present the workflow created one task at a time - second task is created only when when the first task is closed. Instead, I need multiple tasks as per the variables selected i.e one primary task and multiple child tasks which can be handled by separate teams at the same time.

E.g   primary task is created for login account termination, second task for collecting desktop equipment , third task for collecting mobile equipment : all at the same time

Here are the variables on my item: laptop , Mobile and salesforce .

Variables.png

Below is the workflow where tasks get generated only in sequence.

Workflow.png

Any help would be really appreciable as I am relatively very new to scripting and looking for some solution

Many thanks!

8 REPLIES 8

Have you made any other modification other than wait for completion in the workflow?


Can you confirm whether you checked any of the checkbox in the form or not ?



If you have not checked any then it will happen like this. Because you are creating the first task and then going forward for the creation of other tasks. Here if all others conditions are false then it will not create any other task and will reach the end.So request item will be closed and so request.But task will be open. So If you have cases like none of the check box will be checked then please write a script in a run script activity before end to check whether all tasks are closed or not.


Hello Ajai


You were right, there was a condition that closed the request. I have now removed that condition and multiple tasks are getting created along with REQ remaining open. thanks a ton for your insight.



However I am not very confident about the script part . Please can you share a script so that I can apply it to check for all tasks once closed - which will close the REQ at the end?



Regards


Aru


You can use a join for that. Join also works similar to script. Put one join just before that end and set values and join all the tasks to that.Once all tasks are completed then it will go forward to the set values.



Hope this answers your question


If this helps you then please mark the answer as correct and close the thread.