BOS Project 10th Day (Activiti workflow the next day, process variables, group tasks, exclusive gateways, spring consolidation Activiti, project implementation process definition Management)

Source: Internet
Author: User

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)

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.