Activiti6 self-Road (III) - using the Eclipse drawing activiti flowchart (flowchart leave approval)

We installed plug-ins in front of activiti, now began to draw a flow chart, we leave approval flow chart by drawing learning

A flowchart

Leave approval process position where the table leave.bpmn
Here Insert Picture Description

Open the eclipse Windows-> preferences, FIG checking option, to generate image flowchart leave.png
Here Insert Picture Description

Second, create a flow chart

Here Insert Picture Description

Right-click on the folder processes, new-other-Activity-Activity Diagram.

Here Insert Picture Description

Then open the new Activity Diagram file, the file extension bpmn file, open the file will show all the components of Activity
Here Insert Picture Description

2.1, create flow charts, and build each process id and name

The establishment of start node, note that id can not be repeated
Here Insert Picture Description

Fill in the establishment of leave application task
Here Insert Picture Description
to establish an exclusive gateway
Here Insert Picture Description
to set conditional branch expressions
Here Insert Picture Description
Here Insert Picture Description

Set task manager for approval, director approval task

Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description
Establish end node
Here Insert Picture Description

2.2, add the corresponding form four task events

Because we want to branch data through a particular form of the process to determine the way to turn, and leave the normal process needs to fill some of the contents, we are written in the form of Form corresponding event.

We click on fill out the leave application event, click Form in the Properties, and then click New to create a right of property

Leave Application Events
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description
Here Insert Picture Description

Event Director for approval
Here Insert Picture Description

Event manager for approval
Here Insert Picture Description
HR audit events
Here Insert Picture Description

** 2.3 ** fill branch determination condition

We click on the branch line, and then select Main config, enter $ {submitTime> 3} In Condition in
submitTime here is to fill leave a property application event Form form, where we will use it to determine whether the process to director approval .

Here Insert Picture Description

Here Insert Picture Description

A simple process to configure Well, I leave here only part of the process, only to learn that there are some deficiencies logic.


If you think this article to help you, then click the Follow button troublesome picture on the right, thank you!

Technical progress in the exchange, dissemination of knowledge sharing in

Guess you like

Origin blog.csdn.net/qq_29914837/article/details/91902818