|
I'm new to Teamwork and have been looking into writing XML for a flux definition file. I have looked at the Teamwork and jBPM/jPDL documentation but haven't been able to find out how to code a subtask. A question about this was previously asked on this forum and closed with the answer "You should check the JBPM documentation." Since I have looked at that documentation and haven't been able to find an answer, can someone point me at a specific URL (rather than just some high-level location) or give me a solution in XML for something like the following? Task 1 has Subtask A, which executes concurrently with Subtask B. When both are completed, Subtask C is executed. When it is completed, Task 1 ends. Thanks for any help you can give. |
|
You could create a fork below task 1 (see sampleProjectProcess.xml in process application folder (TEAMWORK_ROOT/webapps/ROOT/applications/teamwork/processes)). Then they join in task C that then proceed to task 2. The concept of subtask is not available. |
|
Thanks, Silvia, for your guidance. I have worked a little more with forks/joins and can now successfully define my process with forks and joins. One additional question I have is this: You said that the concept of subtask is not available. Does this mean that it is not possible to define a (fork-task list 1-join) and then have another (fork-task list 2-join) within the first task list (i.e., within task list 1)? In other words, can forks be nested, as long as the one fork-join is completely nested within the other? After looking at the jBPM XML schema, it looks like the only way to nest forks is to put them within superstates, which can be nested. I have experimented with super-states and can't get them to work. For example, I've tried putting fork-tasklist 2-join within <super-state> </super-state>. I think I referenced all names in the transitions correctly, using / and ../ as necessary, and followed the examples in the jBPM chapter on Hierarchical Names. But I haven't been able to get Teamwork to load a flux xml definition file with superstates. Can you clear this up for me or point me to an XML example where nested forks are defined? Thanks again for your help. |
