工作流Activiti的学习总结(十二) activiti官方十分钟快速学习

合集下载
相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

根据activiti官方提供的编写

1.财务部门填写月财务报告

2.股东审核月财务审计报告

流程图:

流程配置:

<;?xml version=";1.0"; encoding=";UTF-8";?>;

<;definitions xmlns=";/spec/BPMN/20100524/MODEL"; xmlns:xsi=";/2001/XMLSchema-instance";

xmlns:activiti=";/bpmn";

xmlns:bpmndi=";/spec/BPMN/20100524/DI";

xmlns:omgdc=";/spec/DD/20100524/DC";

xmlns:omgdi=";/spec/DD/20100524/DI";

typeLanguage=";/2001/XMLSchema";

expressionLanguage=";/1999/XPath";

targetNamespace=";/bpmn20";>;

<;process id=";financialReport"; name=";Monthly financial report reminder process";>;

<;startEvent id=";startevent1"; name=";月财务报告审核开始";>;<;/startEvent>; <;!-- 采用用户组为accountancy编写财务报告 -->;

<;userTask id=";usertask1"; name=";财务编写月财务报告"; activiti:candidateGroups=";accountancy";>;<;/userTask>;

<;userTask id=";usertask2"; name=";股东审核月财务审计报告"; activiti:candidateGroups=";management";>;<;/userTask>;

<;endEvent id=";endevent1"; name=";月财务报告审核结束";>;<;/endEvent>;

<;sequenceFlow id=";flow1"; name=";"; sourceRef=";startevent1"; targetRef=";usertask1";>;<;/sequenceFlow>;

<;sequenceFlow id=";flow2"; name=";"; sourceRef=";usertask1"; targetRef=";usertask2";>;<;/sequenceFlow>;

<;sequenceFlow id=";flow3"; name=";"; sourceRef=";usertask2"; targetRef=";endevent1";>;<;/sequenceFlow>;

<;/process>;

<;bpmndi:BPMNDiagram id=";BPMNDiagram_financialReport";>;

<;bpmndi:BPMNPlane bpmnElement=";financialReport"; id=";BPMNPlane_financialReport";>;

<;bpmndi:BPMNShape bpmnElement=";startevent1"; id=";BPMNShape_startevent1";>;

<;omgdc:Bounds height=";35"; width=";35"; x=";30"; y=";200";>;<;/omgdc:Bounds>;

<;/bpmndi:BPMNShape>;

<;bpmndi:BPMNShape bpmnElement=";usertask1"; id=";BPMNShape_usertask1";>;

<;omgdc:Bounds height=";55"; width=";105"; x=";125"; y=";190";>;<;/omgdc:Bounds>;

<;/bpmndi:BPMNShape>;

<;bpmndi:BPMNShape bpmnElement=";usertask2"; id=";BPMNShape_usertask2";>; <;omgdc:Bounds height=";55"; width=";105"; x=";290"; y=";190";>;<;/omgdc:Bounds>;

<;/bpmndi:BPMNShape>;

<;bpmndi:BPMNShape bpmnElement=";endevent1"; id=";BPMNShape_endevent1";>; <;omgdc:Bounds height=";35"; width=";35"; x=";455"; y=";200";>;<;/omgdc:Bounds>;

<;/bpmndi:BPMNShape>;

<;bpmndi:BPMNEdge bpmnElement=";flow1"; id=";BPMNEdge_flow1";>;

<;omgdi:waypoint x=";65"; y=";217";>;<;/omgdi:waypoint>;

<;omgdi:waypoint x=";125"; y=";217";>;<;/omgdi:waypoint>;

<;/bpmndi:BPMNEdge>;

<;bpmndi:BPMNEdge bpmnElement=";flow2"; id=";BPMNEdge_flow2";>;

<;omgdi:waypoint x=";230"; y=";217";>;<;/omgdi:waypoint>;

<;omgdi:waypoint x=";290"; y=";217";>;<;/omgdi:waypoint>;

<;/bpmndi:BPMNEdge>;

<;bpmndi:BPMNEdge bpmnElement=";flow3"; id=";BPMNEdge_flow3";>;

<;omgdi:waypoint x=";395"; y=";217";>;<;/omgdi:waypoint>;

<;omgdi:waypoint x=";455"; y=";217";>;<;/omgdi:waypoint>;

<;/bpmndi:BPMNEdge>;

<;/bpmndi:BPMNPlane>;

<;/bpmndi:BPMNDiagram>;

<;/definitions>;

编码如下:

package com.easyway.spring.activiti;

import java.util.List;

import org.activiti.engine.HistoryService;

import org.activiti.engine.ProcessEngine;

import org.activiti.engine.ProcessEngineConfiguration;

import org.activiti.engine.RepositoryService;

import org.activiti.engine.RuntimeService;

import org.activiti.engine.TaskService;

import org.activiti.engine.history.HistoricProcessInstance;

import org.activiti.engine.task.Task;

/**

* 根据activiti官方提供的编写

* 1.财务部门填写月财务报告

* 2.股东审核月财务审计报告

相关文档
最新文档