GivenTask "A" can start multiple nested workflows that will run in parallel.If all of the nested workflows are running, I can query active tasks with "iwquerytasks" and get all of the active tasks (including all of the tasks in the nested workflows).As soon as one of the sub-workflows finished, and transitions to the "Task A'.I can no longer get the active tasks. They appear to be in limbo. I can't see in in "My Tasks" on the workflow tab, and can't get them through iwquerytasks.
hey i have a small query, how are your sure that only one of the sub task has been finsihed and rest of them are still active but not viewable.can you share the same with me.
Still you have any issue... please post your code so that anyone can review over here.
[HTML] [/HTML]
As far as i understood your problem... try to put up a dummy task just before the EndTask of the parent workflow and link all the nested wftasks to that dummy task with an AND task. It will wait for all nested tasks being invoked to complete... and then only transition to End.
Task "A" can start multiple nested workflows that will run in parallel.
Well... Task A remains active during the whole process.
The above code defines "TaskA" which has 3 possible successors ("sub a", "sub b", "sub_c") - those successors do not run in parallel - they are independent choice / selections.
I'm just guessing here but it seems that he allows the user to choose subtasks to start. Sure, they are not parallel per se but you'll be back to A immediately after starting "sub b" for example. Then you can start "sub a", etc... The end result is a collection of parallel jobs all the same.If I can hazard another guess, he probably needs to check somewhere if "sub x" exists before starting another instance of it. Hence a query...
Yes. It is up to user to start the parallal tasks.- All of the tasks are visible in the TS interface- there is a CGI script in picture that uses iwquerytasks and the wofklowid to find all of the active tasks and subworkflow active tasks.
Yes. It is up to user to start the parallal tasks.
Technically, parellel tasks are quite different from the tasks which can be run simultaneously.
All of it, starting with the thread Title is terminological misnomer. User does not start "Parallel tasks", he starts Nested Workflow(s) with it's own tasks, parallel (inside this sub WF) or otherwise. Original and Sub Flows are independent, operationally their respective tasks are neither "parallel" nor "simultaneous" whatever that means
My fault. The tasks are simultaneous.Here is the script:first run: (4 tasks are active)600852601762601805601826second run: (One of the nesetd workflows has finished)600852
Or, you need to hire someone who has these capabilities to do it for you.
You seem to believe that a given task (TaskA) remains active until it's successors ("CreateSubA", "CreateSubB", and/or "CreateSubC") complete - not true.
well ... What can I say. It stays active, due to the parallel transition to the dummy task and create the nested workflow. Not 100% active, it becomes active right after the nested workflow is instantiated.
What are your "createSubX" tasks really? Are they wf tasks? If so, tasks you are looking for do not belong to the root WF. Nested WF is a WF in its own rights, with ID and all. If anything, I'm surprised that you've got a "full" list of tasks before the first sub transition.It may be an inconsistency in "iwquerytasks" behavior in respect to nested WFs, but your main problem is that you use "wrong" (root) WF ID to get tasks of branched WFs. You have to get sub WF ID and request by it