This is a space where the community of Teamwork users can ask for support, explanations,
and also vote up or down questions, answers and feature requests.
>> Back to Teamwork's site.

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.

asked Nov 08 '11 at 12:22

MartyB's gravatar image

MartyB
11


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.

answered Nov 09 '11 at 10:16

Silvia%20Chelazzi's gravatar image

Silvia Chelazzi ♦♦
408519

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.

answered Dec 13 '11 at 16:17

MartyB's gravatar image

MartyB
11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×2

Asked: Nov 08 '11 at 12:22

Seen: 1,650 times

Last updated: Dec 14 '11 at 10:25

| Teamwork faq | about | contact us | Teamwork blog | Teamwork documentation | feedback always welcome