bpmJson样例

This commit is contained in:
lvshaohua 2023-05-25 14:54:20 +08:00
parent dccc998bcb
commit 29a78e04e0
2 changed files with 918 additions and 0 deletions

View File

@ -0,0 +1,363 @@
{
"id":"root",
"desc":"任何人",
"name":"发起人",
"type":"ROOT",
"props":{
"assignedUser":[
]
},
"children":{
"id":"node_960168688549",
"parentId":"root",
"props":{
"assignedType":"ASSIGN_USER",
"mode":"AND",
"sign":false,
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"timeLimit":{
"timeout":{
"unit":"H",
"value":0
},
"handler":{
"type":"REFUSE",
"notify":{
"once":true,
"hour":1
}
}
},
"assignedUser":[
{
"id":381496,
"name":"旅人",
"type":"user",
"selected":false
}
],
"selfSelect":{
"multiple":false
},
"leaderTop":{
"endCondition":"TOP",
"endLevel":1
},
"leader":{
"level":1
},
"role":[
],
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":""
},
"type":"APPROVAL",
"name":"审批人",
"children":{
"id":"node_960195836162",
"parentId":"node_960168688549",
"props":{
},
"type":"CONDITIONS",
"name":"条件分支",
"children":{
"id":"node_960195832920",
"parentId":"node_960195836162",
"type":"EMPTY",
"children":{
"id":"node_960249495860",
"parentId":"node_960195832920",
"props":{
"assignedType":"ASSIGN_USER",
"mode":"AND",
"sign":false,
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"timeLimit":{
"timeout":{
"unit":"H",
"value":0
},
"handler":{
"type":"REFUSE",
"notify":{
"once":true,
"hour":1
}
}
},
"assignedUser":[
{
"id":489564,
"name":"李秋香",
"type":"user",
"selected":false
}
],
"selfSelect":{
"multiple":false
},
"leaderTop":{
"endCondition":"TOP",
"endLevel":1
},
"leader":{
"level":1
},
"role":[
],
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":""
},
"type":"APPROVAL",
"name":"审批人",
"children":{
}
}
},
"branchs":[
{
"id":"node_960195838564",
"parentId":"node_960195836162",
"type":"CONDITION",
"props":{
"groupsType":"OR",
"groups":[
{
"groupType":"AND",
"cids":[
"root"
],
"conditions":[
{
"id":"root",
"title":"发起人",
"valueType":"User",
"compare":"",
"value":[
{
"id":568898,
"name":"王翠花",
"type":"user",
"selected":false
}
]
}
]
}
],
"expression":"2"
},
"name":"条件1",
"children":{
}
},
{
"id":"node_960195831056",
"parentId":"node_960195836162",
"type":"CONDITION",
"props":{
"groupsType":"OR",
"groups":[
{
"cids":[
"root"
],
"groupType":"OR",
"conditions":[
{
"id":"root",
"title":"发起人",
"valueType":"User",
"compare":"",
"value":[
{
"id":381496,
"name":"旅人",
"type":"user",
"selected":false
}
]
}
]
}
],
"expression":"1"
},
"name":"条件2",
"children":{
"id":"node_960218787447",
"parentId":"node_960195831056",
"props":{
},
"type":"CONDITIONS",
"name":"条件分支",
"children":{
"id":"node_960218785622",
"parentId":"node_960218787447",
"type":"EMPTY",
"children":{
}
},
"branchs":[
{
"id":"node_960218785354",
"parentId":"node_960218787447",
"type":"CONDITION",
"props":{
"groupsType":"OR",
"groups":[
{
"groupType":"AND",
"cids":[
"root"
],
"conditions":[
{
"id":"root",
"title":"发起人",
"valueType":"User",
"compare":"",
"value":[
{
"id":381496,
"name":"旅人",
"type":"user",
"selected":false
}
]
}
]
}
],
"expression":""
},
"name":"条件1",
"children":{
"id":"node_960795025221",
"parentId":"node_960218785354",
"props":{
"assignedType":"ASSIGN_USER",
"mode":"AND",
"sign":false,
"nobody":{
"handler":"TO_PASS",
"assignedUser":[
]
},
"timeLimit":{
"timeout":{
"unit":"H",
"value":0
},
"handler":{
"type":"REFUSE",
"notify":{
"once":true,
"hour":1
}
}
},
"assignedUser":[
{
"id":6418616,
"name":"张三",
"type":"user",
"selected":false
}
],
"selfSelect":{
"multiple":false
},
"leaderTop":{
"endCondition":"TOP",
"endLevel":1
},
"leader":{
"level":1
},
"role":[
],
"refuse":{
"type":"TO_END",
"target":""
},
"formUser":""
},
"type":"APPROVAL",
"name":"审批人",
"children":{
}
}
},
{
"id":"node_960218785997",
"parentId":"node_960218787447",
"type":"CONDITION",
"props":{
"groupsType":"OR",
"groups":[
{
"groupType":"AND",
"cids":[
"root"
],
"conditions":[
{
"id":"root",
"title":"发起人",
"valueType":"User",
"compare":"",
"value":[
{
"id":6418616,
"name":"张三",
"type":"user",
"selected":false
}
]
}
]
}
],
"expression":"2"
},
"name":"条件2",
"children":{
}
}
]
}
}
]
}
},
"parentId":null
}

View File

@ -0,0 +1,555 @@
{
"id": "1684995138655_0.5167144294794443_0",
"type": "startNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995138655_0.5167144294794443_0",
"label": "发起",
"type": 0,
"nodeInfo": {
"node_id": "",
"node_name": "发起",
"node_type": "START",
"ccer": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_ccer_0"
},
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_ccer_1"
}
],
"canCancel": true
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995181659_0.4099499477241211_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995181659_0.4099499477241211_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": false
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "auto",
"user": {}
},
"self_action": 1
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995183355_0.6773240480881357_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995183355_0.6773240480881357_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "dept_manager",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "auto",
"user": {}
},
"self_action": 1
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.03821823577101524_2",
"type": "startConditionalNode",
"style": {
"width": "100px",
"height": "30px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.03821823577101524_2",
"label": "添加条件",
"type": 2,
"nodeInfo": {
"node_id": "",
"node_name": "",
"node_type": "STARTCONDITION"
},
"endConditionId": "1684995184707_0.06653603429256427_4"
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.21700432119131663_3",
"type": "conditionalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.21700432119131663_3",
"label": "条件",
"type": 3,
"nodeInfo": {
"node_id": "",
"node_name": "条件",
"node_type": "CONDITION",
"condition_group": [
[
{
"key": 0.8257921197902618,
"type": "user",
"value": [
{
"scope_type": 1,
"scope_id": 1,
"scope_name": "这是一家企业的根部门"
}
],
"relation": "=",
"form_component_id": "user"
}
],
[
{
"key": 0.51223995888162,
"type": "user",
"value": [],
"relation": "=",
"form_component_id": "user"
}
]
],
"piority": 1
},
"startConditionId": "1684995184707_0.03821823577101524_2",
"endConditionId": "1684995184707_0.06653603429256427_4",
"piority": 1,
"lastCondition": false
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.07137265277640426_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.07137265277640426_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "auto",
"user": {}
},
"self_action": 1
},
"startConditionId": "1684995184707_0.03821823577101524_2",
"endConditionId": "1684995184707_0.06653603429256427_4"
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.06653603429256427_4",
"type": "endConditionalNode",
"style": {
"width": "10px",
"height": "10px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.06653603429256427_4",
"label": "结束条件",
"type": 4,
"nodeInfo": {
"node_id": "",
"node_name": "",
"node_type": "ENDCONDITION"
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995189636_0.12184176290314253_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995189636_0.12184176290314253_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "user",
"user": {
"uid": 65560,
"name": "张大千"
}
},
"self_action": 1
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995138655_0.6790690673860067_-1",
"type": "endNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995138655_0.6790690673860067_-1",
"label": "结束",
"type": -1,
"nodeInfo": {
"node_id": "",
"node_name": "结束",
"node_type": "END",
"ccer": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_ccer_0"
}
]
}
},
"position": {
"x": 0,
"y": 0
}
}
]
}
]
}
]
}
]
},
{
"id": "1684995184707_0.4842665634061263_3",
"type": "conditionalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.4842665634061263_3",
"label": "条件",
"type": 3,
"nodeInfo": {
"node_id": "",
"node_name": "条件",
"node_type": "CONDITION",
"condition_group": [],
"piority": 2
},
"startConditionId": "1684995184707_0.03821823577101524_2",
"endConditionId": "1684995184707_0.06653603429256427_4",
"piority": 2,
"lastCondition": true
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.67852541993214_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.67852541993214_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "auto",
"user": {}
},
"self_action": 1
},
"startConditionId": "1684995184707_0.03821823577101524_2",
"endConditionId": "1684995184707_0.06653603429256427_4"
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995184707_0.06653603429256427_4",
"type": "endConditionalNode",
"style": {
"width": "10px",
"height": "10px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995184707_0.06653603429256427_4",
"label": "结束条件",
"type": 4,
"nodeInfo": {
"node_id": "",
"node_name": "",
"node_type": "ENDCONDITION"
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995189636_0.12184176290314253_1",
"type": "approvalNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995189636_0.12184176290314253_1",
"label": "审批",
"type": 1,
"nodeInfo": {
"node_id": "",
"node_name": "审批人",
"node_type": "TASK",
"approve_type": 1,
"approver": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_approver_0"
}
],
"ccer": [],
"transferable": true,
"empty_action": {
"type": "user",
"user": {
"uid": 65560,
"name": "张大千"
}
},
"self_action": 1
}
},
"position": {
"x": 0,
"y": 0
},
"children": [
{
"id": "1684995138655_0.6790690673860067_-1",
"type": "endNode",
"style": {
"width": "200px",
"height": "70px",
"padding": "0",
"border": "none"
},
"data": {
"id": "1684995138655_0.6790690673860067_-1",
"label": "结束",
"type": -1,
"nodeInfo": {
"node_id": "",
"node_name": "结束",
"node_type": "END",
"ccer": [
{
"type": "leader",
"value": {
"step": 1,
"reverse": true
},
"key": "CopyPerson_ccer_0"
}
]
}
},
"position": {
"x": 0,
"y": 0
}
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}
]
}