Merge branch 'refs/heads/feature/REQ-2090' into 1.3.1-SNAPSHOT

This commit is contained in:
wangli 2024-04-07 21:51:33 +08:00
commit 9ca4f7396f
20 changed files with 1297 additions and 7448 deletions

View File

@ -69,6 +69,12 @@
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-json-converter</artifactId>
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>cn.axzo.framework.rocketmq</groupId>
<artifactId>axzo-common-rocketmq</artifactId>

View File

@ -20,6 +20,7 @@ import cn.axzo.workflow.core.converter.json.ServiceTaskJsonConverter;
import cn.axzo.workflow.core.converter.json.StartEventJsonConverter;
import cn.axzo.workflow.core.converter.json.UserTaskJsonConverter;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.collect.Lists;
import org.flowable.bpmn.BpmnAutoLayout;
import org.flowable.bpmn.converter.BpmnXMLConverter;
@ -38,6 +39,7 @@ import org.flowable.bpmn.model.SequenceFlow;
import org.flowable.bpmn.model.ServiceTask;
import org.flowable.bpmn.model.StartEvent;
import org.flowable.bpmn.model.UserTask;
import org.flowable.editor.language.json.converter.BpmnJsonConverter;
import org.flowable.image.ProcessDiagramGenerator;
import org.flowable.image.impl.DefaultProcessDiagramGenerator;
import org.slf4j.Logger;
@ -45,12 +47,15 @@ import org.slf4j.LoggerFactory;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
@ -104,6 +109,9 @@ public final class BpmnJsonConverterUtil {
private BpmnJsonConverterUtil() {
}
protected static BpmnXMLConverter bpmnXmlConverter = new BpmnXMLConverter();
protected static BpmnJsonConverter bpmnJsonConverter = new BpmnJsonConverter();
private static final Logger log = LoggerFactory.getLogger(BpmnJsonConverterUtil.class);
private static final Map<Class<? extends BaseElement>, AbstractBpmnJsonConverter<? extends BaseElement>> CONVERTERS =
new HashMap<>();
@ -504,14 +512,18 @@ public final class BpmnJsonConverterUtil {
// 开始处理下级节点
BpmnJsonNode children = bpmnJsonNode.getChildren();
if (Objects.isNull(children) || (Objects.equals(NODE_EMPTY, children.getType()) && (Objects.isNull(children.getChildren()) || Objects.isNull(children.getChildren().getId()))) || !StringUtils.hasLength(children.getId())) {
if (Objects.isNull(children)
|| (Objects.equals(NODE_EMPTY, children.getType()) && (Objects.isNull(children.getChildren()) || Objects.isNull(children.getChildren().getId())))
|| !StringUtils.hasLength(children.getId())) {
if (CollectionUtils.isEmpty(branchLastNodeIds)) {
return Lists.newArrayList(flowElement.getId());
} else {
return branchLastNodeIds;
}
} else {
if (Objects.equals(NODE_EMPTY, children.getType()) && Objects.nonNull(children.getChildren()) && Objects.nonNull(children.getChildren().getId())) {
if (Objects.equals(NODE_EMPTY, children.getType())
&& Objects.nonNull(children.getChildren())
&& Objects.nonNull(children.getChildren().getId())) {
children = children.getChildren();
}
if (CollectionUtils.isEmpty(branchLastNodeIds)) {
@ -554,13 +566,18 @@ public final class BpmnJsonConverterUtil {
return prefix + "_" + UUID.randomUUID().toString().replace("-", "").toLowerCase();
}
public static void main(String[] args) throws IOException {
public static void main(String[] args) throws Exception {
converterBPMN();
checkXml();
}
private static void converterBPMN() throws Exception {
// String fileName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main" +
// "/resources/配置台模型.json";
// String fileName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main" +
// "/resources/权限点模型.json";
String fileName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main" +
"/resources/temp3.json";
"/resources/request.json";
byte[] bytes = Files.readAllBytes(Paths.get(fileName));
String content = new String(bytes, StandardCharsets.UTF_8);
@ -576,14 +593,18 @@ public final class BpmnJsonConverterUtil {
// Optional<List<BpmnCarbonCopyConf>> carbonCopyConfigs = BpmnMetaParserHelper.getCarbonCopyConfigs
// (serviceTask);
byte[] bytes1 = transformBytes(bpmnModel);
System.out.println("bytes1 = " + new String(bytes1));
generateImage(bpmnModel);
// generateImage(bpmnModel);
byte[] xml = transformBytes(bpmnModel);
String xmlFileName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main" +
"/resources/convertorXML.bpmn";
Path path = Paths.get(xmlFileName);
Files.write(path, xml);
}
public static void generateImage(BpmnModel bpmnModel) {
String pngName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main" +
"/resources/test.png";
"/resources/xmlImage.png";
ProcessDiagramGenerator diagramGenerator = new DefaultProcessDiagramGenerator();
// 设置字体渲染选项
@ -622,4 +643,28 @@ public final class BpmnJsonConverterUtil {
}
}
public static void checkXml() throws Exception {
String fileName = "/Users/wangli/work/company/yizhi/workflow-engine/workflow-engine-server/src/main/resources/convertorXML.bpmn";
Path path = Paths.get(fileName);
XMLInputFactory xif = XmlUtil.createSafeXmlInputFactory();
InputStreamReader xmlIn = new InputStreamReader(Files.newInputStream(path), StandardCharsets.UTF_8);
XMLStreamReader xtr = xif.createXMLStreamReader(xmlIn);
BpmnModel bpmnModel = bpmnXmlConverter.convertToBpmnModel(xtr);
if (org.flowable.editor.language.json.converter.util.CollectionUtils.isEmpty(bpmnModel.getProcesses())) {
System.out.println("No process found in definition " + fileName);
}
if (bpmnModel.getLocationMap().size() == 0) {
BpmnAutoLayout bpmnLayout = new BpmnAutoLayout(bpmnModel);
bpmnLayout.execute();
}
ObjectNode modelNode = bpmnJsonConverter.convertToJson(bpmnModel);
Process process = bpmnModel.getMainProcess();
String name = process.getId();
if (org.apache.commons.lang3.StringUtils.isNotEmpty(process.getName())) {
name = process.getName();
}
String description = process.getDocumentation();
}
}

View File

@ -0,0 +1,42 @@
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.axzo.workflow.core.common.utils;
import javax.xml.stream.XMLInputFactory;
/**
* @author Joram Barrez
*/
public class XmlUtil {
/**
* 'safe' is here reflecting: http://www.jorambarrez.be/blog/2013/02/19/uploading -a-funny-xml-can-bring-down-your-server/ and
* http://www.flowable.org/docs/userguide/index.html#advanced.safe.bpmn.xml
*/
public static XMLInputFactory createSafeXmlInputFactory() {
XMLInputFactory xif = XMLInputFactory.newInstance();
if (xif.isPropertySupported(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES)) {
xif.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, false);
}
if (xif.isPropertySupported(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES)) {
xif.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
}
if (xif.isPropertySupported(XMLInputFactory.SUPPORT_DTD)) {
xif.setProperty(XMLInputFactory.SUPPORT_DTD, false);
}
return xif;
}
}

View File

@ -33,7 +33,6 @@ public class SequenceFlowJsonConverter extends AbstractBpmnJsonConverter<Sequenc
SequenceFlow sequenceFlow = new SequenceFlow();
sequenceFlow.setId(id(SEQUENCE_FLOW_ID));
sequenceFlow.setName(node.getName());
// sequenceFlow.setId(node.getId());
sequenceFlow.setSourceRef(incoming.get(0));
sequenceFlow.setTargetRef(node.getId());

View File

@ -1,575 +0,0 @@
{
"id":"root",
"desc":"任何人",
"name":"发起人",
"type":"ROOT",
"props":{
"formPerms":[
{
"id":"field6315293116649",
"perm":"E",
"title":"单行文本输入",
"required":false
},
{
"id":"field2424440922220",
"perm":"E",
"title":"单行文本输入1",
"required":false
},
{
"id":"field3654540926170",
"perm":"E",
"title":"日期时间点",
"required":false
},
{
"id":"field6931940950104",
"perm":"E",
"title":"多选框",
"required":false
},
{
"id":"field8821740927538",
"perm":"E",
"title":"日期时间区间",
"required":false
},
{
"id":"field5416940932938",
"perm":"E",
"title":"说明文字",
"required":false
},
{
"id":"field1905040930820",
"perm":"E",
"title":"部门选择",
"required":false
},
{
"id":"field6136640929087",
"perm":"E",
"title":"上传图片",
"required":false
}
],
"assignedUser":[
{
"id":231535,
"name":"生产管理部",
"type":"dept",
"selected":false
},
{
"id":4319868,
"name":"销售服务部",
"type":"dept",
"selected":false
}
]
},
"children":{
"id":"node_598263651142",
"name":"审批人",
"type":"APPROVAL",
"props":{
"mode":"AND",
"role":[
],
"sign":false,
"leader":{
"level":1
},
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":"",
"formPerms":[
{
"id":"field6315293116649",
"perm":"R",
"title":"单行文本输入",
"required":false
},
{
"id":"field2424440922220",
"perm":"R",
"title":"单行文本输入1",
"required":false
},
{
"id":"field3654540926170",
"perm":"R",
"title":"日期时间点",
"required":false
},
{
"id":"field6931940950104",
"perm":"R",
"title":"多选框",
"required":false
},
{
"id":"field8821740927538",
"perm":"R",
"title":"日期时间区间",
"required":false
},
{
"id":"field5416940932938",
"perm":"R",
"title":"说明文字",
"required":false
},
{
"id":"field1905040930820",
"perm":"R",
"title":"部门选择",
"required":false
},
{
"id":"field6136640929087",
"perm":"R",
"title":"上传图片",
"required":false
}
],
"leaderTop":{
"endLevel":1,
"endCondition":"TOP"
},
"timeLimit":{
"handler":{
"type":"REFUSE",
"notify":{
"hour":1,
"once":true
}
},
"timeout":{
"unit":"H",
"value":0
}
},
"selfSelect":{
"multiple":false
},
"assignedType":"LEADER",
"assignedUser":[
{
"id":61769798,
"name":"李四",
"type":"user",
"selected":true
}
]
},
"children":{
"id":"node_698816342966",
"name":"审批人",
"type":"APPROVAL",
"props":{
"mode":"OR",
"role":[
],
"sign":false,
"leader":{
"level":1
},
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":"",
"formPerms":[
{
"id":"field6315293116649",
"perm":"R",
"title":"单行文本输入",
"required":false
},
{
"id":"field2424440922220",
"perm":"R",
"title":"单行文本输入1",
"required":false
},
{
"id":"field3654540926170",
"perm":"R",
"title":"日期时间点",
"required":false
},
{
"id":"field6931940950104",
"perm":"R",
"title":"多选框",
"required":false
},
{
"id":"field8821740927538",
"perm":"R",
"title":"日期时间区间",
"required":false
},
{
"id":"field5416940932938",
"perm":"R",
"title":"说明文字",
"required":false
},
{
"id":"field1905040930820",
"perm":"R",
"title":"部门选择",
"required":false
},
{
"id":"field6136640929087",
"perm":"R",
"title":"上传图片",
"required":false
}
],
"leaderTop":{
"endLevel":1,
"endCondition":"TOP"
},
"timeLimit":{
"handler":{
"type":"REFUSE",
"notify":{
"hour":1,
"once":true
}
},
"timeout":{
"unit":"H",
"value":0
}
},
"selfSelect":{
"multiple":true
},
"assignedType":"SELF_SELECT",
"assignedUser":[
]
},
"children":{
"id":"node_905097096913",
"name":"条件分支",
"type":"CONDITIONS",
"props":{
},
"branchs":[
{
"id":"node_905097097011",
"name":"条件1",
"type":"CONDITION",
"props":{
"groups":[
{
"cids":[
"root"
],
"groupType":"AND",
"conditions":[
{
"id":"root",
"title":"发起人",
"value":[
{
"id":381496,
"name":"旅人",
"type":"user",
"selected":false
}
],
"compare":"",
"valueType":"User"
}
]
}
],
"expression":"",
"groupsType":"AND"
},
"children":{
"id":"node_275574083794",
"name":"审批人",
"type":"APPROVAL",
"props":{
"mode":"AND",
"role":[
],
"sign":false,
"leader":{
"level":1
},
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":"",
"formPerms":[
{
"id":"field6315293116649",
"perm":"R",
"title":"单行文本输入",
"required":false
},
{
"id":"field2424440922220",
"perm":"R",
"title":"单行文本输入1",
"required":false
},
{
"id":"field3654540926170",
"perm":"R",
"title":"日期时间点",
"required":false
},
{
"id":"field6931940950104",
"perm":"R",
"title":"多选框",
"required":false
},
{
"id":"field8821740927538",
"perm":"R",
"title":"日期时间区间",
"required":false
},
{
"id":"field5416940932938",
"perm":"R",
"title":"说明文字",
"required":false
},
{
"id":"field1905040930820",
"perm":"R",
"title":"部门选择",
"required":false
},
{
"id":"field6136640929087",
"perm":"R",
"title":"上传图片",
"required":false
}
],
"leaderTop":{
"endLevel":1,
"endCondition":"TOP"
},
"timeLimit":{
"handler":{
"type":"REFUSE",
"notify":{
"hour":1,
"once":true
}
},
"timeout":{
"unit":"H",
"value":0
}
},
"selfSelect":{
"multiple":false
},
"assignedType":"LEADER",
"assignedUser":[
]
},
"children":{
},
"parentId":"node_905097097011"
},
"parentId":"node_905097096913"
},
{
"id":"node_905097094019",
"name":"条件2",
"type":"CONDITION",
"props":{
"groups":[
{
"cids":[
"root"
],
"groupType":"AND",
"conditions":[
{
"id":"root",
"title":"发起人",
"value":[
{
"id":381496,
"name":"旅人",
"type":"user",
"selected":false
}
],
"compare":"",
"valueType":"User"
}
]
}
],
"expression":"",
"groupsType":"OR"
},
"children":{
"id":"node_275658471060",
"name":"审批人",
"type":"APPROVAL",
"props":{
"mode":"AND",
"role":[
],
"sign":false,
"leader":{
"level":1
},
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":"",
"formPerms":[
{
"id":"field6315293116649",
"perm":"R",
"title":"单行文本输入",
"required":false
},
{
"id":"field2424440922220",
"perm":"R",
"title":"单行文本输入1",
"required":false
},
{
"id":"field3654540926170",
"perm":"R",
"title":"日期时间点",
"required":false
},
{
"id":"field6931940950104",
"perm":"R",
"title":"多选框",
"required":false
},
{
"id":"field8821740927538",
"perm":"R",
"title":"日期时间区间",
"required":false
},
{
"id":"field5416940932938",
"perm":"R",
"title":"说明文字",
"required":false
},
{
"id":"field1905040930820",
"perm":"R",
"title":"部门选择",
"required":false
},
{
"id":"field6136640929087",
"perm":"R",
"title":"上传图片",
"required":false
}
],
"leaderTop":{
"endLevel":1,
"endCondition":"TOP"
},
"timeLimit":{
"handler":{
"type":"REFUSE",
"notify":{
"hour":1,
"once":true
}
},
"timeout":{
"unit":"H",
"value":0
}
},
"selfSelect":{
"multiple":false
},
"assignedType":"SELF_SELECT",
"assignedUser":[
]
},
"children":{
},
"parentId":"node_905097094019"
},
"parentId":"node_905097096913"
}
],
"children":{
"id":"node_905097099172",
"type":"EMPTY",
"children":{
},
"parentId":"node_905097096913"
},
"parentId":"node_698816342966"
},
"parentId":"node_598263651142"
},
"parentId":"root"
},
"parentId":null
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,486 +0,0 @@
{
"name": "考勤补卡",
"description": "极引非东活已运王点越组油门展总想立。年深江亲联热制者条济它部即月。号线信平和者京两马何标这。",
"category": "1",
"jsonModel": {
"noticeConf": {
"notice": {
"noticeMessageId": "590",
"viewJson": "{'a': 'b', 'a': 'b', 'a': 'b'}"
},
"pending": {
"pendingMessageId": "6b2fd313a7e04fcb8d92ca6fa4c675e9",
"viewJson": "456"
},
"sms": {
"smsId": "40",
"viewJson": "789"
}
},
"buttonConf": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
]
},
"fieldConf": [
{
"name": "价格",
"code": "price",
"type": "number"
},
{
"name": "标题",
"code": "title",
"type": "string"
},
{
"name": "性别",
"code": "age",
"type": "radio",
"options": [
{
"name": "男",
"value": "1"
},
{
"name": "女",
"value": "2"
}
]
},
{
"name": "颜色",
"code": "color",
"type": "checkbox",
"options": [
{
"name": "红色",
"value": "read"
},
{
"name": "蓝色",
"value": "blue"
},
{
"name": "绿色",
"value": "green"
}
]
}
],
"node": {
"id": "1",
"parentId": "0",
"type": "NODE_STARTER",
"name": "发起人",
"children": {
"id": "2",
"parentId": "1",
"type": "NODE_EXCLUSIVE_GATEWAY",
"name": "排它网关",
"branches": [
{
"id": "3",
"parentId": "2",
"type": "NODE_CONDITION",
"name": "总包发起",
"property": {
"groups": [
{
"conditionsType": "or",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "type",
"operator": "eq"
}
]
}
],
"defaultBranch": false,
"groupsType": "and"
},
"children": {
"id": "4",
"parentId": "3",
"type": "NODE_EXCLUSIVE_GATEWAY",
"children": {
"id": "5",
"parentId": "4",
"type": "NODE_TASK",
"name": "班组确认",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"branches": [
{
"id": "6",
"parentId": "4",
"type": "NODE_CONDITION",
"name": "需分包审核",
"children": {
"id": "8",
"parentId": "6",
"type": "NODE_TASK",
"name": "分包审核",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"property": {
"groups": [
{
"conditionsType": "or",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "type2",
"operator": "eq"
}
]
}
],
"defaultBranch": false,
"groupsType": "and"
}
},
{
"id": "7",
"parentId": "4",
"type": "NODE_CONDITION",
"name": "无需分包审核",
"property": {
"defaultBranch": true
}
}
]
}
},
{
"id": "9",
"parentId": "2",
"type": "NODE_CONDITION",
"name": "班组发起",
"property": {
"defaultBranch": true
},
"children": {
"id": "10",
"parentId": "9",
"type": "NODE_EXCLUSIVE_GATEWAY",
"children": {
"id": "6",
"parentId": "5",
"type": "NODE_TASK",
"name": "总包审核",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"branches": [
{
"id": "11",
"parentId": "9",
"type": "NODE_CONDITION",
"name": "需分包审核",
"children": {
"id": "13",
"parentId": "11",
"type": "NODE_TASK",
"name": "分包审核",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"property": {
"groups": [
{
"conditionsType": "or",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "type2",
"operator": "eq"
}
]
}
],
"defaultBranch": false,
"groupsType": "and"
}
},
{
"id": "12",
"parentId": "9",
"type": "NODE_CONDITION",
"name": "无需分包审核",
"property": {
"defaultBranch": true
}
}
]
}
}
]
}
}
}
}

View File

@ -1,264 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:flowable="http://flowable.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="http://www.flowable.org/test">
<process id="id" name="测试" isExecutable="true" serverVersion="1.2.1"
jsonValue="{&quot;children&quot;:{&quot;branches&quot;:[{&quot;children&quot;:{&quot;id&quot;:&quot;6&quot;,&quot;name&quot;:&quot;班组处理&quot;,&quot;parentId&quot;:&quot;4&quot;,&quot;property&quot;:{&quot;approvalMethod&quot;:&quot;human&quot;,&quot;approverEmptyHandleType&quot;:&quot;autoPassed&quot;,&quot;approverScope&quot;:&quot;projectWorkspace&quot;,&quot;approverSpecify&quot;:&quot;fixedPerson&quot;,&quot;groupsType&quot;:&quot;and&quot;,&quot;isMultiTask&quot;:true,&quot;multiMode&quot;:&quot;AND&quot;,&quot;specifyValue&quot;:[&quot;{\&quot;assignerName\&quot;:\&quot;黎炳印\&quot;,\&quot;ouId\&quot;:\&quot;5140\&quot;,\&quot;tenantId\&quot;:\&quot;195\&quot;,\&quot;personId\&quot;:\&quot;80554\&quot;,\&quot;assignee\&quot;:\&quot;33163\&quot;,\&quot;assigneeType\&quot;:\&quot;3\&quot;}&quot;]},&quot;type&quot;:&quot;NODE_TASK&quot;},&quot;id&quot;:&quot;4&quot;,&quot;name&quot;:&quot;工人发起&quot;,&quot;parentId&quot;:&quot;1&quot;,&quot;property&quot;:{&quot;defaultBranch&quot;:false,&quot;groups&quot;:[{&quot;conditions&quot;:[{&quot;fieldCode&quot;:&quot;type&quot;,&quot;fieldDataType&quot;:&quot;number&quot;,&quot;operator&quot;:&quot;eq&quot;}],&quot;conditionsType&quot;:&quot;or&quot;}],&quot;groupsType&quot;:&quot;or&quot;,&quot;isMultiTask&quot;:true},&quot;type&quot;:&quot;NODE_CONDITION&quot;},{&quot;id&quot;:&quot;5&quot;,&quot;name&quot;:&quot;班组发起&quot;,&quot;parentId&quot;:&quot;1&quot;,&quot;property&quot;:{&quot;defaultBranch&quot;:true,&quot;groupsType&quot;:&quot;and&quot;,&quot;isMultiTask&quot;:true},&quot;type&quot;:&quot;NODE_CONDITION&quot;}],&quot;children&quot;:{&quot;branches&quot;:[{&quot;children&quot;:{&quot;id&quot;:&quot;10&quot;,&quot;name&quot;:&quot;分包处理&quot;,&quot;parentId&quot;:&quot;7&quot;,&quot;property&quot;:{&quot;approvalMethod&quot;:&quot;human&quot;,&quot;approverEmptyHandleType&quot;:&quot;autoPassed&quot;,&quot;approverScope&quot;:&quot;projectWorkspace&quot;,&quot;approverSpecify&quot;:&quot;fixedPerson&quot;,&quot;groupsType&quot;:&quot;and&quot;,&quot;isMultiTask&quot;:true,&quot;multiMode&quot;:&quot;AND&quot;,&quot;specifyValue&quot;:[&quot;{\&quot;assignerName\&quot;:\&quot;黎炳印\&quot;,\&quot;ouId\&quot;:\&quot;5140\&quot;,\&quot;tenantId\&quot;:\&quot;195\&quot;,\&quot;personId\&quot;:\&quot;80554\&quot;,\&quot;assignee\&quot;:\&quot;33163\&quot;,\&quot;assigneeType\&quot;:\&quot;3\&quot;}&quot;]},&quot;type&quot;:&quot;NODE_TASK&quot;},&quot;id&quot;:&quot;7&quot;,&quot;name&quot;:&quot;需要分包审核&quot;,&quot;parentId&quot;:&quot;3&quot;,&quot;property&quot;:{&quot;defaultBranch&quot;:false,&quot;groups&quot;:[{&quot;conditions&quot;:[{&quot;fieldCode&quot;:&quot;type2&quot;,&quot;fieldDataType&quot;:&quot;number&quot;,&quot;operator&quot;:&quot;eq&quot;}],&quot;conditionsType&quot;:&quot;or&quot;}],&quot;groupsType&quot;:&quot;or&quot;,&quot;isMultiTask&quot;:true},&quot;type&quot;:&quot;NODE_CONDITION&quot;},{&quot;id&quot;:&quot;8&quot;,&quot;name&quot;:&quot;不需要分包审核&quot;,&quot;parentId&quot;:&quot;3&quot;,&quot;property&quot;:{&quot;defaultBranch&quot;:true,&quot;groupsType&quot;:&quot;and&quot;,&quot;isMultiTask&quot;:true},&quot;type&quot;:&quot;NODE_CONDITION&quot;}],&quot;children&quot;:{&quot;id&quot;:&quot;9&quot;,&quot;name&quot;:&quot;总包处理&quot;,&quot;parentId&quot;:&quot;3&quot;,&quot;property&quot;:{&quot;approvalMethod&quot;:&quot;human&quot;,&quot;approverEmptyHandleType&quot;:&quot;autoPassed&quot;,&quot;approverScope&quot;:&quot;projectWorkspace&quot;,&quot;approverSpecify&quot;:&quot;fixedPerson&quot;,&quot;groupsType&quot;:&quot;and&quot;,&quot;isMultiTask&quot;:true,&quot;multiMode&quot;:&quot;AND&quot;,&quot;specifyValue&quot;:[&quot;{\&quot;assignerName\&quot;:\&quot;黎炳印\&quot;,\&quot;ouId\&quot;:\&quot;5140\&quot;,\&quot;tenantId\&quot;:\&quot;195\&quot;,\&quot;personId\&quot;:\&quot;80554\&quot;,\&quot;assignee\&quot;:\&quot;33163\&quot;,\&quot;assigneeType\&quot;:\&quot;3\&quot;}&quot;]},&quot;type&quot;:&quot;NODE_TASK&quot;},&quot;id&quot;:&quot;3&quot;,&quot;name&quot;:&quot;排它网关&quot;,&quot;parentId&quot;:&quot;2&quot;,&quot;type&quot;:&quot;NODE_EXCLUSIVE_GATEWAY&quot;},&quot;id&quot;:&quot;2&quot;,&quot;name&quot;:&quot;排它网关&quot;,&quot;parentId&quot;:&quot;1&quot;,&quot;type&quot;:&quot;NODE_EXCLUSIVE_GATEWAY&quot;},&quot;id&quot;:&quot;1&quot;,&quot;name&quot;:&quot;发起人&quot;,&quot;parentId&quot;:&quot;0&quot;,&quot;type&quot;:&quot;NODE_STARTER&quot;}">
<documentation>remark</documentation>
<extensionElements>
<noticeConfig>
<noticeMessageId value="590"></noticeMessageId>
<pendingMessageId value="6b2fd313a7e04fcb8d92ca6fa4c675e9"></pendingMessageId>
<smsMessageId value="40"></smsMessageId>
</noticeConfig>
<buttonConfig>
<initiator>
<button key="BPMN_APPROVE" name="同意" checked="true" order="1" disabled="false"></button>
<button key="BPMN_REJECT" name="拒绝" checked="true" order="2" disabled="false"></button>
<button key="BPMN_REVOCATION" name="撤回" checked="true" order="3" disabled="false"></button>
<button key="BPMN_TRANSFER" name="转交" checked="true" order="4" disabled="false"></button>
<button key="BPMN_COUNTERSIGN" name="加签" checked="true" order="5" disabled="false"></button>
<button key="BPMN_COMMENT" name="评论" checked="true" order="6" disabled="false"></button>
<button key="BPMN_ROLLBACK" name="回退" checked="true" order="7" disabled="false"></button>
<button key="BPMN_COPY" name="抄送" checked="true" order="8" disabled="false"></button>
</initiator>
<current>
<button key="BPMN_APPROVE" name="同意" checked="true" order="1" disabled="false"></button>
<button key="BPMN_REJECT" name="拒绝" checked="true" order="2" disabled="false"></button>
<button key="BPMN_REVOCATION" name="撤回" checked="true" order="3" disabled="false"></button>
<button key="BPMN_TRANSFER" name="转交" checked="true" order="4" disabled="false"></button>
<button key="BPMN_COUNTERSIGN" name="加签" checked="true" order="5" disabled="false"></button>
<button key="BPMN_COMMENT" name="评论" checked="true" order="6" disabled="false"></button>
<button key="BPMN_ROLLBACK" name="回退" checked="true" order="7" disabled="false"></button>
<button key="BPMN_COPY" name="抄送" checked="true" order="8" disabled="false"></button>
</current>
<history>
<button key="BPMN_APPROVE" name="同意" checked="true" order="1" disabled="false"></button>
<button key="BPMN_REJECT" name="拒绝" checked="true" order="2" disabled="false"></button>
<button key="BPMN_REVOCATION" name="撤回" checked="true" order="3" disabled="false"></button>
<button key="BPMN_TRANSFER" name="转交" checked="true" order="4" disabled="false"></button>
<button key="BPMN_COUNTERSIGN" name="加签" checked="true" order="5" disabled="false"></button>
<button key="BPMN_COMMENT" name="评论" checked="true" order="6" disabled="false"></button>
<button key="BPMN_ROLLBACK" name="回退" checked="true" order="7" disabled="false"></button>
<button key="BPMN_COPY" name="抄送" checked="true" order="8" disabled="false"></button>
</history>
<carbonCopy>
<button key="BPMN_APPROVE" name="同意" checked="true" order="1" disabled="false"></button>
<button key="BPMN_REJECT" name="拒绝" checked="true" order="2" disabled="false"></button>
<button key="BPMN_REVOCATION" name="撤回" checked="true" order="3" disabled="false"></button>
<button key="BPMN_TRANSFER" name="转交" checked="true" order="4" disabled="false"></button>
<button key="BPMN_COUNTERSIGN" name="加签" checked="true" order="5" disabled="false"></button>
<button key="BPMN_COMMENT" name="评论" checked="true" order="6" disabled="false"></button>
<button key="BPMN_ROLLBACK" name="回退" checked="true" order="7" disabled="false"></button>
<button key="BPMN_COPY" name="抄送" checked="true" order="8" disabled="false"></button>
</carbonCopy>
</buttonConfig>
<fieldConfig>
<field type="number" name="价格" code="price"></field>
<field type="string" name="标题" code="title"></field>
<field type="radio" name="性别" code="age">
<option name="男" value="1"></option>
<option name="女" value="2"></option>
</field>
<field type="checkbox" name="颜色" code="color">
<option name="红色" value="read"></option>
<option name="蓝色" value="blue"></option>
<option name="绿色" value="green"></option>
</field>
</fieldConfig>
</extensionElements>
<startEvent id="startEventNode"></startEvent>
<userTask id="1" name="发起人">
<extensionElements>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
<nodeType><![CDATA[NODE_STARTER]]></nodeType>
<jsonValue><![CDATA[{"id":"1","parentId":"0","type":"NODE_STARTER","name":"发起人"}]]></jsonValue>
</extensionElements>
</userTask>
<sequenceFlow id="SequenceFlowId_fbe2efe332dd4c069fbfcea7a610f33b" sourceRef="startEventNode"
targetRef="1"></sequenceFlow>
<exclusiveGateway id="2" name="排它网关"
default="SequenceFlowId_9a7e74aceea042d6bf8159c2bc1dea4d"></exclusiveGateway>
<sequenceFlow id="SequenceFlowId_ce80d36369994c8c97271caa19724740" sourceRef="1" targetRef="2"></sequenceFlow>
<sequenceFlow id="SequenceFlowId_e2374f39e7fb4c90a79a7c1f6bc620cd" sourceRef="2" targetRef="6">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${(var:eq('type', null))}]]></conditionExpression>
</sequenceFlow>
<userTask id="6" name="班组处理" flowable:assignee="${assigneeName}"
flowable:skipExpression="${_INTERNAL_SKIP_USER_TASK}">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
<approvalMethod value="human" desc="审批方式"></approvalMethod>
<approverScope value="projectWorkspace" desc="审批人所在范围"></approverScope>
<approverSpecify value="fixedPerson" desc="审批人指定">
<![CDATA[["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"]]]></approverSpecify>
<approverModeType value="AND" desc="多人审批时审批模式"></approverModeType>
<approverEmptyHandleType value="autoPassed" desc="审批人为空时"></approverEmptyHandleType>
<fieldPermission></fieldPermission>
<buttonConfig></buttonConfig>
<nodeType><![CDATA[NODE_TASK]]></nodeType>
<jsonValue>
<![CDATA[{"id":"6","parentId":"4","type":"NODE_TASK","name":"班组处理","property":{"approvalMethod":"human","approverScope":"projectWorkspace","approverSpecify":"fixedPerson","specifyValue":["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"],"isMultiTask":true,"multiMode":"AND","approverEmptyHandleType":"autoPassed","groupsType":"and"}}]]></jsonValue>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="[_ASSIGNEE_LIST_INFO_]6"
flowable:elementVariable="assigneeName">
<completionCondition>${nrOfInstances == nrOfCompletedInstances}</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow id="SequenceFlowId_9a7e74aceea042d6bf8159c2bc1dea4d" sourceRef="2" targetRef="3"></sequenceFlow>
<exclusiveGateway id="3" name="排它网关"
default="SequenceFlowId_ceb3ff6d9ee34bec9a4578b1f5a81fc8"></exclusiveGateway>
<sequenceFlow id="SequenceFlowId_86003ade4a074a9fb4c5e356162abc2a" sourceRef="6" targetRef="3"></sequenceFlow>
<sequenceFlow id="SequenceFlowId_602422aa388246a3814e79900e8db677" sourceRef="3" targetRef="10">
<conditionExpression xsi:type="tFormalExpression">
<![CDATA[${(var:eq('type2', null))}]]></conditionExpression>
</sequenceFlow>
<userTask id="10" name="分包处理" flowable:assignee="${assigneeName}"
flowable:skipExpression="${_INTERNAL_SKIP_USER_TASK}">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
<approvalMethod value="human" desc="审批方式"></approvalMethod>
<approverScope value="projectWorkspace" desc="审批人所在范围"></approverScope>
<approverSpecify value="fixedPerson" desc="审批人指定">
<![CDATA[["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"]]]></approverSpecify>
<approverModeType value="AND" desc="多人审批时审批模式"></approverModeType>
<approverEmptyHandleType value="autoPassed" desc="审批人为空时"></approverEmptyHandleType>
<fieldPermission></fieldPermission>
<buttonConfig></buttonConfig>
<nodeType><![CDATA[NODE_TASK]]></nodeType>
<jsonValue>
<![CDATA[{"id":"10","parentId":"7","type":"NODE_TASK","name":"分包处理","property":{"approvalMethod":"human","approverScope":"projectWorkspace","approverSpecify":"fixedPerson","specifyValue":["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"],"isMultiTask":true,"multiMode":"AND","approverEmptyHandleType":"autoPassed","groupsType":"and"}}]]></jsonValue>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="[_ASSIGNEE_LIST_INFO_]10"
flowable:elementVariable="assigneeName">
<completionCondition>${nrOfInstances == nrOfCompletedInstances}</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow id="SequenceFlowId_ceb3ff6d9ee34bec9a4578b1f5a81fc8" sourceRef="3" targetRef="9"></sequenceFlow>
<userTask id="9" name="总包处理" flowable:assignee="${assigneeName}"
flowable:skipExpression="${_INTERNAL_SKIP_USER_TASK}">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
<approvalMethod value="human" desc="审批方式"></approvalMethod>
<approverScope value="projectWorkspace" desc="审批人所在范围"></approverScope>
<approverSpecify value="fixedPerson" desc="审批人指定">
<![CDATA[["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"]]]></approverSpecify>
<approverModeType value="AND" desc="多人审批时审批模式"></approverModeType>
<approverEmptyHandleType value="autoPassed" desc="审批人为空时"></approverEmptyHandleType>
<fieldPermission></fieldPermission>
<buttonConfig></buttonConfig>
<nodeType><![CDATA[NODE_TASK]]></nodeType>
<jsonValue>
<![CDATA[{"id":"9","parentId":"3","type":"NODE_TASK","name":"总包处理","property":{"approvalMethod":"human","approverScope":"projectWorkspace","approverSpecify":"fixedPerson","specifyValue":["{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"],"isMultiTask":true,"multiMode":"AND","approverEmptyHandleType":"autoPassed","groupsType":"and"}}]]></jsonValue>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="false" flowable:collection="[_ASSIGNEE_LIST_INFO_]9"
flowable:elementVariable="assigneeName">
<completionCondition>${nrOfInstances == nrOfCompletedInstances}</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow id="SequenceFlowId_2666f3937f3948448dc9ddf9276d7d46" sourceRef="10" targetRef="9"></sequenceFlow>
<endEvent id="endEventNode"></endEvent>
<sequenceFlow id="SequenceFlowId_f8b0711b9e0d42c58e7516918e139d1f" sourceRef="9"
targetRef="endEventNode"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_id">
<bpmndi:BPMNPlane bpmnElement="id" id="BPMNPlane_id">
<bpmndi:BPMNShape bpmnElement="1" id="BPMNShape_1">
<omgdc:Bounds height="60.0" width="100.0" x="80.0" y="59.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="2" id="BPMNShape_2">
<omgdc:Bounds height="40.0" width="40.0" x="230.0" y="72.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="3" id="BPMNShape_3">
<omgdc:Bounds height="40.0" width="40.0" x="470.0" y="60.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="6" id="BPMNShape_6">
<omgdc:Bounds height="60.0" width="100.0" x="320.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="startEventNode" id="BPMNShape_startEventNode">
<omgdc:Bounds height="30.0" width="30.0" x="0.0" y="74.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="9" id="BPMNShape_9">
<omgdc:Bounds height="60.0" width="100.0" x="710.0" y="36.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endEventNode" id="BPMNShape_endEventNode">
<omgdc:Bounds height="30.0" width="30.0" x="860.0" y="51.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="10" id="BPMNShape_10">
<omgdc:Bounds height="60.0" width="100.0" x="560.0" y="100.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_2666f3937f3948448dc9ddf9276d7d46"
id="BPMNEdge_SequenceFlowId_2666f3937f3948448dc9ddf9276d7d46">
<omgdi:waypoint x="660.0" y="130.0"></omgdi:waypoint>
<omgdi:waypoint x="672.0" y="130.0"></omgdi:waypoint>
<omgdi:waypoint x="672.0" y="66.0"></omgdi:waypoint>
<omgdi:waypoint x="710.0" y="66.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_f8b0711b9e0d42c58e7516918e139d1f"
id="BPMNEdge_SequenceFlowId_f8b0711b9e0d42c58e7516918e139d1f">
<omgdi:waypoint x="810.0" y="66.0"></omgdi:waypoint>
<omgdi:waypoint x="860.0" y="66.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_ceb3ff6d9ee34bec9a4578b1f5a81fc8"
id="BPMNEdge_SequenceFlowId_ceb3ff6d9ee34bec9a4578b1f5a81fc8">
<omgdi:waypoint x="510.0" y="72.5"></omgdi:waypoint>
<omgdi:waypoint x="522.0" y="72.5"></omgdi:waypoint>
<omgdi:waypoint x="522.0" y="66.0"></omgdi:waypoint>
<omgdi:waypoint x="710.0" y="66.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_fbe2efe332dd4c069fbfcea7a610f33b"
id="BPMNEdge_SequenceFlowId_fbe2efe332dd4c069fbfcea7a610f33b">
<omgdi:waypoint x="30.0" y="89.0"></omgdi:waypoint>
<omgdi:waypoint x="80.0" y="89.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_86003ade4a074a9fb4c5e356162abc2a"
id="BPMNEdge_SequenceFlowId_86003ade4a074a9fb4c5e356162abc2a">
<omgdi:waypoint x="420.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="432.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="432.0" y="80.0"></omgdi:waypoint>
<omgdi:waypoint x="470.0" y="80.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_602422aa388246a3814e79900e8db677"
id="BPMNEdge_SequenceFlowId_602422aa388246a3814e79900e8db677">
<omgdi:waypoint x="510.0" y="87.5"></omgdi:waypoint>
<omgdi:waypoint x="522.0" y="87.5"></omgdi:waypoint>
<omgdi:waypoint x="522.0" y="130.0"></omgdi:waypoint>
<omgdi:waypoint x="560.0" y="130.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_e2374f39e7fb4c90a79a7c1f6bc620cd"
id="BPMNEdge_SequenceFlowId_e2374f39e7fb4c90a79a7c1f6bc620cd">
<omgdi:waypoint x="270.0" y="84.5"></omgdi:waypoint>
<omgdi:waypoint x="282.0" y="84.5"></omgdi:waypoint>
<omgdi:waypoint x="282.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="320.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_9a7e74aceea042d6bf8159c2bc1dea4d"
id="BPMNEdge_SequenceFlowId_9a7e74aceea042d6bf8159c2bc1dea4d">
<omgdi:waypoint x="270.0" y="99.5"></omgdi:waypoint>
<omgdi:waypoint x="282.0" y="99.5"></omgdi:waypoint>
<omgdi:waypoint x="282.0" y="80.0"></omgdi:waypoint>
<omgdi:waypoint x="470.0" y="80.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlowId_ce80d36369994c8c97271caa19724740"
id="BPMNEdge_SequenceFlowId_ce80d36369994c8c97271caa19724740">
<omgdi:waypoint x="180.0" y="89.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="89.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="92.0"></omgdi:waypoint>
<omgdi:waypoint x="230.0" y="92.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

View File

@ -1,433 +0,0 @@
{
"name": "考勤补卡",
"description": "极引非东活已运王点越组油门展总想立。年深江亲联热制者条济它部即月。号线信平和者京两马何标这。",
"category": "1",
"jsonModel": {
"noticeConf": {
"notice": {
"noticeMessageId": "590",
"viewJson": "{'a': 'b', 'a': 'b', 'a': 'b'}"
},
"pending": {
"pendingMessageId": "6b2fd313a7e04fcb8d92ca6fa4c675e9",
"viewJson": "456"
},
"sms": {
"smsId": "40",
"viewJson": "789"
}
},
"buttonConf": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": false,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
]
},
"fieldConf": [
{
"name": "价格",
"code": "price",
"type": "number"
},
{
"name": "标题",
"code": "title",
"type": "string"
},
{
"name": "性别",
"code": "age",
"type": "radio",
"options": [
{
"name": "男",
"value": "1"
},
{
"name": "女",
"value": "2"
}
]
},
{
"name": "颜色",
"code": "color",
"type": "checkbox",
"options": [
{
"name": "红色",
"value": "read"
},
{
"name": "蓝色",
"value": "blue"
},
{
"name": "绿色",
"value": "green"
}
]
}
],
"node": {
"id": "1",
"parentId": "0",
"type": "NODE_STARTER",
"name": "发起人",
"children": {
"id": "2",
"parentId": "1",
"type": "NODE_EXCLUSIVE_GATEWAY",
"name": "排它网关",
"children": {
"id": "3",
"parentId": "2",
"type": "NODE_EXCLUSIVE_GATEWAY",
"name": "排它网关",
"children": {
"id": "9",
"parentId": "3",
"type": "NODE_TASK",
"name": "总包处理",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"branches": [
{
"id": "7",
"parentId": "3",
"type": "NODE_CONDITION",
"name": "需要分包审核",
"children": {
"id": "10",
"parentId": "7",
"type": "NODE_TASK",
"name": "分包处理",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
},
"property": {
"groups": [
{
"conditionsType": "or",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "type2",
"operator": "eq"
}
]
}
],
"defaultBranch": false,
"groupsType": "or"
}
},
{
"id": "8",
"parentId": "3",
"type": "NODE_CONDITION",
"name": "不需要分包审核",
"property": {
"defaultBranch": true
}
}
]
},
"branches": [
{
"id": "4",
"parentId": "1",
"type": "NODE_CONDITION",
"name": "工人发起",
"property": {
"groups": [
{
"conditionsType": "or",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "type",
"operator": "eq"
}
]
}
],
"defaultBranch": false,
"groupsType": "or"
},
"children": {
"id": "6",
"parentId": "4",
"type": "NODE_TASK",
"name": "班组处理",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "fixedPerson",
"specifyValue": [
"{\"assignerName\":\"黎炳印\",\"ouId\":\"5140\",\"tenantId\":\"195\",\"personId\":\"80554\",\"assignee\":\"33163\",\"assigneeType\":\"3\"}"
],
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed"
}
}
},
{
"id": "5",
"parentId": "1",
"type": "NODE_CONDITION",
"name": "班组发起",
"property": {
"defaultBranch": true
}
}
]
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,899 +0,0 @@
{
"name": "别动哦,我的模型",
"category": "25",
"remark": "别动哦,我的模型",
"workspaceId": null,
"jsonModel": {
"node": {
"id": "NODE_STARTER",
"parentId": null,
"type": "NODE_STARTER",
"name": "发起人",
"children": {
"id": "node_688766804652",
"parentId": "NODE_STARTER",
"type": "NODE_TASK",
"name": "审批节点",
"children": {
"id": "node_197955885846",
"parentId": "node_688766804652",
"type": "NODE_TASK",
"name": "审批节点",
"children": {
"id": "node_197955885847",
"parentId": "node_197955885846",
"type": "NODE_CARBON_COPY",
"name": "抄送节点",
"children": {
"id": null,
"parentId": null,
"type": null,
"name": null,
"children": null,
"branches": null,
"property": null
},
"branches": null,
"property": {
"carbonCopyConf": [
{
"carbonCopyObjectType": "ent_position",
"specifyValue": "[{\"name\":\"施工单位/安全部主管(部长、经理)\",\"value\":\"coHomelandsecuritymanager\"}]"
},
{
"carbonCopyObjectType": "ent_position",
"specifyValue": "[{\"name\":\"施工单位/安全部主管(部长、经理)\",\"value\":\"coHomelandsecuritymanager\"}]"
}
]
}
},
"branches": null,
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "position",
"specifyValue": "[{\"name\":\"施工单位/安全部主管(部长、经理)\",\"value\":\"coHomelandsecuritymanager\"}]",
"isMultiTask": true,
"isSequential": false,
"multiMode": "OR",
"approverEmptyHandleType": "autoPassed",
"emptyApproverSpecify": null,
"fieldPermission": null,
"buttonPermission": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false,
"type": null
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
]
},
"pending": null,
"defaultBranch": null,
"groups": null,
"groupsType": "or",
"carbonCopyConf": null,
"formKey": null
}
},
"branches": null,
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "position",
"specifyValue": "[{\"name\":\"施工单位/安全总监\",\"value\":\"Safetydirector\"},{\"name\":\"施工单位/安全部主管(部长、经理)\",\"value\":\"coHomelandsecuritymanager\"}]",
"isMultiTask": true,
"isSequential": false,
"multiMode": "OR",
"approverEmptyHandleType": "autoPassed",
"emptyApproverSpecify": null,
"fieldPermission": null,
"buttonPermission": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false,
"type": null
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false,
"type": null
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true,
"type": null
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true,
"type": null
}
]
},
"pending": null,
"defaultBranch": null,
"groups": null,
"groupsType": "or",
"carbonCopyConf": null,
"formKey": null
}
},
"branches": null,
"property": null
},
"noticeConf": {
"notice": {
"noticeMessageId": "",
"viewJson": null
},
"pending": {
"pendingMessageId": "19d34ed3695440e8bc784f801acd5c20",
"viewJson": "{\"templateName\":\"测试新的路由\",\"templateCode\":\"19d34ed3695440e8bc784f801acd5c20\",\"category\":\"APPROVAL_PENDING_MESSAGE\",\"title\":\"1\",\"content\":\"1\",\"groupNodeNamePaths\":[\"OMS代办中心/产研技术审批/权限点发布\"],\"status\":\"ENABLE\"}"
},
"sms": {
"smsId": "",
"viewJson": null
}
},
"buttonConf": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": false
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": true,
"disabled": false
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": true,
"disabled": false
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": false
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": false
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": false
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": false
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"btnName": "同意",
"checked": false,
"disabled": true
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "驳回",
"checked": false,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": false,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": false,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": false,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": false
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": false,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": false,
"disabled": true
}
]
},
"fieldConf": [
{
"code": "a",
"name": "a",
"type": "number",
"options": [
{
"name": "",
"value": ""
}
]
},
{
"code": "b",
"name": "b",
"type": "number",
"options": [
{
"name": "",
"value": ""
}
]
}
]
},
"id": "202312071604000000055"
}

File diff suppressed because one or more lines are too long

View File

@ -1,989 +0,0 @@
{
"name": "新模型",
"description": "极引非东活已运王点越组油门展总想立。年深江亲联热制者条济它部即月。号线信平和者京两马何标这。",
"category": "customCategory",
// "tenantId": "296",
"jsonModel": {
"noticeConf": {
"notice": {
"noticeMessageId": "590",
"viewJson": "{'a': 'b', 'a': 'b', 'a': 'b'}"
},
"pending": {
"pendingMessageId": "6b2fd313a7e04fcb8d92ca6fa4c675e9",
"viewJson": "456"
},
"sms": {
"smsId": "40",
"viewJson": "789"
}
},
"buttonConf": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
]
},
"fieldConf": [
{
"name": "价格",
"code": "price",
"type": "number"
},
{
"name": "标题",
"code": "title",
"type": "string"
},
{
"name": "性别",
"code": "age",
"type": "radio",
"options": [
{
"name": "男",
"value": "1"
},
{
"name": "女",
"value": "2"
}
]
},
{
"name": "颜色",
"code": "color",
"type": "checkbox",
"options": [
{
"name": "红色",
"value": "read"
},
{
"name": "蓝色",
"value": "blue"
},
{
"name": "绿色",
"value": "green"
}
]
}
],
"node": {
"id": "1",
"parentId": "0",
"type": "NODE_STARTER",
"name": "发起人",
"children": {
"id": "2",
"parentId": "1",
"type": "NODE_TASK",
"name": "一级审批",
"children": {
"id": "3",
"parentId": "2",
"type": "NODE_EXCLUSIVE_GATEWAY",
"name": "排它网关",
"children": {
"id": "11",
"parentId": "3",
"type": "NODE_CARBON_COPY",
"name": "主流程抄送节点",
"children": {
"id": "12",
"parentId": "3",
"type": "NODE_EMPTY",
"name": "结束",
"children": null,
"branches": null,
"property": null
},
"branches": null,
"property": null
},
"branches": [
{
"id": "4",
"parentId": "3",
"type": "NODE_CONDITION",
"name": "条件1",
"property": {
"groups": [
{
"conditionsType": "and",
"conditions": [
{
"fieldDataType": "string",
"fieldCode": "title",
"operator": "contains",
"defaultValue": "测试"
},
{
"fieldDataType": "number",
"fieldCode": "price",
"operator": "eq",
"defaultValue": "2"
}
]
}
],
"defaultBranch": false,
"groupsType": "and"
},
"children": {
"id": "7",
"parentId": "4",
"type": "NODE_TASK",
"name": "条件1审核节点",
"children": {
"id": "8",
"parentId": "7",
"type": "NODE_CARBON_COPY",
"name": "条件1抄送节点",
"children": null,
"property": null,
"branches": null
},
"property": {
"approvalMethod": "autoPassed",
"approverScope": "entWorkspace",
"approverSpecify": "position",
"specifyValue": [
"job1",
"job2"
],
"isMultiTask": "true",
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed",
"fieldPermission": null,
"buttonPermission": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
]
}
},
"branches": null
},
"branches": null
},
{
"id": "5",
"parentId": "3",
"type": "NODE_CONDITION",
"name": "条件2",
"property": {
"groups": [
{
"conditionsType": "and",
"conditions": [
{
"fieldDataType": "number",
"fieldCode": "size",
"operator": "between",
"leftValue": "31",
"leftOperator": "le",
"rightValue": "34",
"rightOperator": "gt"
},
{
"fieldDataType": "radio",
"fieldCode": "sex",
"operator": "eq",
"defaultValue": "2"
},
{
"fieldDataType": "checkbox",
"fieldCode": "color",
"operator": "in",
"defaultValues": [
"red",
"blue"
]
}
]
}
],
"defaultBranch": false,
"groupsType": "and"
},
"children": {
"id": "9",
"parentId": "5",
"type": "NODE_BUSINESS",
"name": "条件2业务节点",
"children": {
"id": "10",
"parentId": "9",
"type": "NODE_TASK",
"name": "条件2审批节点",
"children": {
"id": "13",
"parentId": "10",
"type": "NODE_BUSINESS",
"name": "业务节点有审批人",
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "identity",
"specifyValue": [
"worker",
"team_worker"
],
"isMultiTask": "true",
"multiMode": "AND",
"approverEmptyHandleType": "transferToAdmin",
"fieldPermission": null,
"buttonPermission": null
},
"children": null,
"branches": null
},
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "position",
"specifyValue": [
"job1",
"job2"
],
"isMultiTask": "true",
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed",
"fieldPermission": null,
"buttonPermission": null
},
"branches": null
},
"property": {
"approvalMethod": "nobody"
},
"branches": null
},
"branches": null
},
{
"id": "6",
"parentId": "3",
"type": "NODE_CONDITION",
"name": "默认条件",
"property": {
"defaultBranch": true
},
"children": null,
"branches": null
}
],
"property": null
},
"branches": null,
"property": {
"approvalMethod": "human",
"approverScope": "projectWorkspace",
"approverSpecify": "position",
"specifyValue": [
"job1",
"job2"
],
"isMultiTask": "true",
"multiMode": "AND",
"approverEmptyHandleType": "autoPassed",
"fieldPermission": null,
"buttonPermission": {
"initiator": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"carbonCopy": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"history": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
],
"current": [
{
"order": 1,
"btnKey": "BPMN_APPROVE",
"checked": true,
"disabled": true,
"btnName": "同意"
},
{
"order": 2,
"btnKey": "BPMN_REJECT",
"btnName": "拒绝",
"checked": true,
"disabled": true
},
{
"order": 3,
"btnKey": "BPMN_REVOCATION",
"btnName": "撤回",
"checked": true,
"disabled": true
},
{
"order": 4,
"btnKey": "BPMN_TRANSFER",
"btnName": "转交",
"checked": true,
"disabled": true
},
{
"order": 5,
"btnKey": "BPMN_COUNTERSIGN",
"btnName": "加签",
"checked": true,
"disabled": true
},
{
"order": 6,
"btnKey": "BPMN_COMMENT",
"btnName": "评论",
"checked": true,
"disabled": true
},
{
"order": 7,
"btnKey": "BPMN_ROLLBACK",
"btnName": "回退",
"checked": true,
"disabled": true
},
{
"order": 8,
"btnKey": "BPMN_COPY",
"btnName": "抄送",
"checked": true,
"disabled": true
}
]
}
}
},
"branches": null,
"property": null
}
}
}

View File

@ -1,41 +0,0 @@
{
"id": "NODE_STARTER",
"type": "NODE_STARTER",
"name": "发起",
"children": {
"id": "NODE_CONFIG",
"parentId": "NODE_STARTER",
"type": "NODE_TASK",
"name": "权限配置",
"children": {
"id": "NODE_RELEASE_DEV",
"parentId": "NODE_CONFIG",
"type": "NODE_TASK",
"name": "发布 DEV",
"children": {
"id": "NODE_RELEASE_TEST",
"parentId": "NODE_RELEASE_DEV",
"type": "NODE_TASK",
"name": "发布 TEST",
"children": {
"id": "NODE_RELEASE_PRE",
"parentId": "NODE_RELEASE_TEST",
"type": "NODE_TASK",
"name": "发布 PRE",
"children": {
"id": "NODE_RELEASE_PROD",
"parentId": "NODE_RELEASE_PRE",
"type": "NODE_TASK",
"name": "发布生产",
"children": {
"id": "NODE_ACCEPTANCE",
"parentId": "NODE_RELEASE_PROD",
"type": "NODE_TASK",
"name": "产品验收"
}
}
}
}
}
}
}

View File

@ -1,151 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:flowable="http://flowable.org/bpmn"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
targetNamespace="auth_point_category">
<process id="auth_point_key" name="权限点发布" isExecutable="true">
<startEvent id="NODE_STARTER" flowable:initiator="applyUserId"></startEvent>
<userTask id="NODE_CONFIG" name="权限配置">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_3ab879d8c5684d4c8140a7875cf2ab8e" sourceRef="NODE_STARTER"
targetRef="NODE_CONFIG"></sequenceFlow>
<userTask id="NODE_RELEASE_DEV" name="发布 DEV">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_f2390ae5250945e2b0e85d35252cdc2c" sourceRef="NODE_CONFIG"
targetRef="NODE_RELEASE_DEV"></sequenceFlow>
<userTask id="NODE_RELEASE_TEST" name="发布 TEST">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_f2ec870d301044d4a0db3ba70ac8ddd2" sourceRef="NODE_RELEASE_DEV"
targetRef="NODE_RELEASE_TEST"></sequenceFlow>
<userTask id="NODE_RELEASE_PRE" name="发布 PRE">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_d666cfe03d734fb5bbfb69b71c2c411f" sourceRef="NODE_RELEASE_TEST"
targetRef="NODE_RELEASE_PRE"></sequenceFlow>
<userTask id="NODE_RELEASE_PROD" name="发布生产">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_4809c60fc59d47239b9339e7c3de959c" sourceRef="NODE_RELEASE_PRE"
targetRef="NODE_RELEASE_PROD"></sequenceFlow>
<userTask id="NODE_ACCEPTANCE" name="产品验收">
<extensionElements>
<flowable:executionListener event="start"
delegateExpression="${engineExecutionStartListener}"></flowable:executionListener>
<flowable:taskListener event="all"
delegateExpression="${engineTaskEventListener}"></flowable:taskListener>
</extensionElements>
</userTask>
<sequenceFlow id="sequenceFlow_f0e287e9acb4441e9cf8e73be1e14abd" sourceRef="NODE_RELEASE_PROD"
targetRef="NODE_ACCEPTANCE"></sequenceFlow>
<endEvent id="endEventNode"></endEvent>
<sequenceFlow id="sequenceFlow_9b49b56d7ca2455fbb200f6f26aa27af" sourceRef="NODE_ACCEPTANCE"
targetRef="endEventNode"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_auth_point_key">
<bpmndi:BPMNPlane bpmnElement="auth_point_key" id="BPMNPlane_auth_point_key">
<bpmndi:BPMNShape bpmnElement="NODE_RELEASE_PRE" id="BPMNShape_NODE_RELEASE_PRE">
<omgdc:Bounds height="60.0" width="100.0" x="530.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_ACCEPTANCE" id="BPMNShape_NODE_ACCEPTANCE">
<omgdc:Bounds height="60.0" width="100.0" x="830.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_RELEASE_PROD" id="BPMNShape_NODE_RELEASE_PROD">
<omgdc:Bounds height="60.0" width="100.0" x="680.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_CONFIG" id="BPMNShape_NODE_CONFIG">
<omgdc:Bounds height="60.0" width="100.0" x="80.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_RELEASE_TEST" id="BPMNShape_NODE_RELEASE_TEST">
<omgdc:Bounds height="60.0" width="100.0" x="380.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endEventNode" id="BPMNShape_endEventNode">
<omgdc:Bounds height="30.0" width="30.0" x="980.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_RELEASE_DEV" id="BPMNShape_NODE_RELEASE_DEV">
<omgdc:Bounds height="60.0" width="100.0" x="230.0" y="0.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="NODE_STARTER" id="BPMNShape_NODE_STARTER">
<omgdc:Bounds height="30.0" width="30.0" x="0.0" y="15.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_3ab879d8c5684d4c8140a7875cf2ab8e"
id="BPMNEdge_sequenceFlow_3ab879d8c5684d4c8140a7875cf2ab8e">
<omgdi:waypoint x="30.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="42.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="42.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="80.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_f2ec870d301044d4a0db3ba70ac8ddd2"
id="BPMNEdge_sequenceFlow_f2ec870d301044d4a0db3ba70ac8ddd2">
<omgdi:waypoint x="330.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="342.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="342.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="380.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_4809c60fc59d47239b9339e7c3de959c"
id="BPMNEdge_sequenceFlow_4809c60fc59d47239b9339e7c3de959c">
<omgdi:waypoint x="630.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="642.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="642.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="680.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_f2390ae5250945e2b0e85d35252cdc2c"
id="BPMNEdge_sequenceFlow_f2390ae5250945e2b0e85d35252cdc2c">
<omgdi:waypoint x="180.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="192.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="230.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_d666cfe03d734fb5bbfb69b71c2c411f"
id="BPMNEdge_sequenceFlow_d666cfe03d734fb5bbfb69b71c2c411f">
<omgdi:waypoint x="480.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="492.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="492.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="530.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_f0e287e9acb4441e9cf8e73be1e14abd"
id="BPMNEdge_sequenceFlow_f0e287e9acb4441e9cf8e73be1e14abd">
<omgdi:waypoint x="780.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="792.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="792.0" y="30.000000000000007"></omgdi:waypoint>
<omgdi:waypoint x="830.0" y="30.000000000000007"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sequenceFlow_9b49b56d7ca2455fbb200f6f26aa27af"
id="BPMNEdge_sequenceFlow_9b49b56d7ca2455fbb200f6f26aa27af">
<omgdi:waypoint x="930.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="942.0" y="30.0"></omgdi:waypoint>
<omgdi:waypoint x="942.0" y="30.000000000000004"></omgdi:waypoint>
<omgdi:waypoint x="980.0" y="30.000000000000004"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

View File

@ -1,125 +0,0 @@
{
"id": "NODE_STARTER",
"parentId": null,
"type": "NODE_STARTER",
"name": "发起人",
"desc": "任何人",
"props": {
"assignedUser": [],
"formPerms": []
},
"children": {
"id": "node_545590085414",
"parentId": "NODE_STARTER",
"props": {
},
"type": "NODE_TASK",
"name": "审批人",
"children": {
"id": "node_049868581708",
"parentId": "node_545590085414",
"props": {},
"type": "NODE_EXCLUSIVE_GATEWAY",
"name": "条件分支",
"children": {
"id": "node_049868589939",
"parentId": "node_049868581708",
"type": "NODE_EXCLUSIVE_GATEWAY",
"children": {}
},
"branches": [
{
"id": "node_049868586156",
"parentId": "node_049868581708",
"type": "NODE_CONDITION",
"property": {
"defaultCondition": false
},
"name": "条件1",
"children": {
"id": "node_050045756369",
"parentId": "node_049868586156",
"props": {
},
"type": "NODE_TASK",
"name": "审批人",
"children": {
"id": "node_050323594620",
"parentId": "node_050045756369",
"props": {},
"type": "NODE_PARALLEL_GATEWAY",
"name": "并行分支",
"children": {
"id": "node_050323593330",
"parentId": "node_050323594620",
"type": "NODE_PARALLEL_GATEWAY",
"children": {
"id": "node_050494094405",
"parentId": "node_050323593330",
"props": {
},
"type": "NODE_CARBON_COPY",
"name": "抄送人",
"children": {}
}
},
"branches": [
{
"id": "node_050323595280",
"name": "分支1",
"parentId": "node_050323594620",
"type": "NODE_PARALLEL",
"props": {},
"children": {
"id": "node_050359097081",
"parentId": "node_050323595280",
"props": {
},
"type": "NODE_TASK",
"name": "审批人",
"children": {}
},
"typeElse": false
},
{
"id": "node_050323599136",
"name": "分支2",
"parentId": "node_050323594620",
"type": "NODE_PARALLEL",
"props": {},
"children": {
"id": "node_050407266075",
"parentId": "node_050323599136",
"props": {
},
"type": "NODE_TASK",
"name": "审批人",
"children": {}
},
"typeElse": true
}
]
}
}
},
{
"id": "node_049868587288",
"parentId": "node_049868581708",
"type": "NODE_CONDITION",
"property": {
"defaultCondition": true
},
"name": "条件2",
"children": {
"id": "node_050635779081",
"parentId": "node_049868587288",
"props": {
},
"type": "NODE_TRIGGER",
"name": "触发器"
}
}
]
}
}
}