BOS Project Note Day
Today's content arrangement:
1, process variables (set, get)
2. Group tasks (candidates, candidate groups)
3, exclusive gateway use
4,spring integration Activiti
5. Apply Activiti to the Bos Project
6. implement process definition management (deploy, query, view png, delete) in BOS Project
1.
Process Variables
1.1
How to set process variables
L Mode one: set when the process instance is started
L Way Two: Set up when handling tasks
L Way Three: Set method using Runtimeservice
L Way Four: Set method using Taskservice
Note: If you are setting a custom type, you need to implement the serial number interface
1.2
How to get process variables
L Way One: Get using runtimeservice 's get method
L Way two: Get using taskservice 's get method
L Way Three: Form-by-frame access with framework
2.
Group Task Actions 2.1
Candidate Group tasks (learn) 2.2
Candidate Group tasks (focus)
L Create a group:
L Create User:
L Establish the relationship between users and groups:
L Query Group tasks:
L Pickup Group tasks:
3.
Exclusive Gateway use
4.
Spring integrated activiti framework
L Modify the spring configuration file and use The process engine configuration object provided by spring:
L provide data source and transaction manager
L Create process engine objects using the process engine factory beans provided by Spring
L Read the spring configuration file, create a spring Factory, get the object from the factory
5.
Implementation of process definition management in Bos
L Modify Admin.json, join workflow-related menu
5.1
query process definition
The first step : Configuring the service used by the Activiti framework in the spring configuration file
Step Two : provide Processdefinitionaction, using annotations to inject repositoryservice, provides a list method
Step Three: Configure Struts.xml
Fourth Step: Provide processdefinition_list.jsp page, show process definition list data
5.2
Deployment process definition
First step: Provide a Process definition deployment page
Step two: in The deploy method is provided in the Action, providing the properties of the ZipFile and the corresponding set method to receive uploaded files
Step Three: Configure Struts.xml
5.3
viewing png images
First step: Modify The effect of the popup window of the JSP page
Step two: in The PNG method is provided in Action , providing the ID attribute and the set method
Step Three: Configure Struts.xml
5.4
Delete a process definition
First step: provide the Delete button in the JSP page, specify the onclick event
Step two: in The Delete method is provided in the Action
Step Three: Determine whether the deletion was successful in the JSP page According to the deltag flag bit
BOS Project 10th Day (Activiti workflow the next day, process variables, group tasks, exclusive gateways, spring consolidation Activiti, project implementation process definition Management)