Jbpm task management implementation

Source: Internet
Author: User
Tags jbpm

A process definition has a taskmgmtdefinition; A taskmgmtdefinition corresponds to multiple actors and multiple tasks at the same time;
An actor has multiple tasks. You can directly obtain the corresponding task from taskmgmtdefinition using the task name;

One process instance has one taskmgmtinstance; one taskmgmtinstance corresponds to multiple actorinstances and multiple taskinstance;
An actorinstance has multiple taskinstance, which can be directly obtained from taskmgmtinstance;

One tasknode corresponds to multiple tasks.
For such a process definition:
<Task-node name = 'A'>
<Task Name = 'laundry '/>
<Task Name = 'dishes'/>
<Task Name = 'change nappy'/>
<Transition to = 'B'/>
</Task-node>
The process enters the subsequent node only after all three tasks on the node are completed.
 
For such a process definition:
<Task-node name = 'A' signal = 'first'>
<Task Name = 'laundry '/>
<Task Name = 'dishes'/>
<Task Name = 'change nappy'/>
<Transition to = 'B'/>
</Task-node>
After the first task is completed, the token points to the following node.
 
For such a process definition:
<Task-node name = 'A' signal = 'never '>
<Task Name = 'laundry '/>
<Task Name = 'dishes'/>
<Task Name = 'change nappy'/>
<Transition to = 'B'/>
</Task-node>
After the three tasks are completed, the token still does not point to the following node; you need to manually call processinstance. Signal ()
To drive the process to the following nodes.

For such a process definition:
<Task-node name = 'A' signal = 'unsynchronized'>
<Task Name = 'laundry '/>
<Task Name = 'dishes'/>
<Task Name = 'change nappy'/>
<Transition to = 'B'/>
</Task-node>
The token does not stop at the current node, but directly goes to the following node.

Jbpm uses join, fork, merge, and demo-te to implement the same functions. However, they have different implementation methods.
Node. One is implemented by task.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.