diff --git a/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl index cafe8320..07c7a7f5 100644 --- a/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl +++ b/com.actionsoft.apps.coe.method.process.epc/method/process.epc/diagram.schema.tpl @@ -236,7 +236,7 @@ Schema.addGlobalCommand("method_script_task", [ {action:"move", x:"100*0.15 - 100*0.055", y:"60*0.24 + 60*0.06"}, {action:"line", x:"100*0.15 + 100*0.05", y:"60*0.24 + 60*0.06"} ]); -/***Event需要配置渐变背景*/Schema.addShape({name:"event", title:"事件", text:"事件", category:"process_epc", props:{w:109, h:50}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{color:"255,255,255"}, textBlock:{x:"Math.min(h/2,w/6)", y:"0", w:"w-Math.min(h/2,w/6)*2", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ +/***Event需要配置渐变背景*/Schema.addShape({name:"event", title:"事件", text:"事件", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{color:"255,255,255"}, textBlock:{x:"Math.min(h/2,w/6)", y:"0", w:"w-Math.min(h/2,w/6)*2", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ {actions:[ {action:"move", x:"0", y:"h*0.5"}, {action:"line", x:"Math.min(h/2,w/6)", y:"0"}, @@ -248,7 +248,7 @@ Schema.addGlobalCommand("method_script_task", [ {action:"close"} ]} ]}); -/***Method*/Schema.addShape({name:"method_approval_node", title:"线上审批", text:"线上审批",groupName:"features", category:"process_epc", props:{w:110, h:50}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ +/***Method*/Schema.addShape({name:"method_approval_node", title:"线上审批", text:"线上审批",groupName:"features", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ {actions:[ {action:"move", x:"w*0", y:"5"}, {action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"}, @@ -284,7 +284,7 @@ Schema.addGlobalCommand("business_rule", [ -Schema.addShape({name:"method_service_node", title:"线下审批", text:"线下审批",groupName:"features", category:"process_epc", props:{w:110, h:50}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ +Schema.addShape({name:"method_service_node", title:"线下审批", text:"线下审批",groupName:"features", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ {actions:[ {action:"move", x:"w*0", y:"5"}, {action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"}, @@ -304,69 +304,7 @@ Schema.addShape({name:"method_service_node", title:"线下审批", text:"线下 ]}); - - - -/***Procedure*/Schema.addShape({name:"procedure", title:"流程接口", text:"流程接口", category:"process_epc", props:{w:110, h:60}, lineStyle:{lineWidth:1, lineColor:"197,197,197"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"0", y:"0", w:"w*0.8", h:"h*0.8"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ - {actions:[ - {action:"move", x:"0", y:"4*0.8"}, - {action:"quadraticCurve", x1:"0", y1:"0", x:"4*0.8", y:"0"}, - {action:"line", x:"(w-4)*0.8", y:"0"}, - {action:"quadraticCurve", x1:"w*0.8", y1:"0", x:"w*0.8", y:"4*0.8"}, - {action:"line", x:"w*0.8", y:"(h-4)*0.8"}, - {action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"(w-4)*0.8", y:"h*0.8"}, - {action:"line", x:"4*0.8", y:"h*0.8"}, - {action:"quadraticCurve", x1:"0", y1:"h*0.8", x:"0", y:"(h-4)*0.8"}, - {action:"line", x:"0", y:"4*0.8"}, - {action:"move", x:"w*0.8", y:"6"}, - {action:"line", x:"w", y:"h*0.5"}, - {action:"line", x:"(w-4)*0.8", y:"h"}, - {action:"line", x:"w*3/8", y:"h"}, - {action:"line", x:"w/4", y:"h*0.8"}, - {action:"line", x:"(w-4)*0.8", y:"h*0.8"}, - {action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"w*0.8", y:"(h-4)*0.8"} - ]} -]}); -/***And*/Schema.addShape({name:"and", title:"与", category:"process_epc", attribute:{editable:false}, props:{w:34, h:34}, fillStyle:{color:"175,210,255"}, path:[ - {lineStyle:{lineWidth:0},actions:{ref:"round"}}, - {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ - {action:"move", x:"w/2-w*0.15", y:"h/2+h*0.13"}, - {action:"line", x:"w*0.5", y:"h/2-h*0.15"}, - {action:"line", x:"w/2+w*0.15", y:"h/2+h*0.13"}, - {action:"line", x:"w*0.5", y:"h/2-h*0.15"} - ]}, - {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} -]}); -/***Or*/Schema.addShape({name:"or", title:"或", category:"process_epc", attribute:{editable:false}, props:{w:34, h:34}, fillStyle:{color:"175,210,255"}, path:[ - {lineStyle:{lineWidth:0},actions:{ref:"round"}}, - {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ - {action:"move", x:"w/2-w*0.15", y:"h/2-h*0.13"}, - {action:"line", x:"w*0.5", y:"h/2+h*0.15"}, - {action:"line", x:"w/2+w*0.15", y:"h/2-h*0.13"}, - {action:"line", x:"w*0.5", y:"h/2+h*0.15"} - ]}, - {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} -]}); -/***Xor*/Schema.addShape({name:"xor", title:"异或", category:"process_epc", attribute:{editable:false}, props:{w:34, h:34}, fillStyle:{color:"175,210,255"}, path:[ - {lineStyle:{lineWidth:0},actions:{ref:"round"}}, - {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ - {action:"move", x:"w/2-w*0.15", y:"h/2-h*0.15"}, - {action:"line", x:"w/2+w*0.15", y:"h/2+h*0.15"}, - {action:"move", x:"w/2+w*0.15", y:"h/2-h*0.15"}, - {action:"line", x:"w/2-w*0.15", y:"h/2+h*0.15"} - ]}, - {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} -]}); - - - - - - - - - -/***Method*/Schema.addShape({name:"method_approval_node3", title:"系统任务", text:"系统任务",groupName:"features3", category:"process_epc", props:{w:110, h:50}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ +/***Method*/Schema.addShape({name:"method_approval_node3", title:"系统任务", text:"系统任务",groupName:"features3", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[ {actions:[ {action:"move", x:"w*0", y:"5"}, {action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"}, @@ -413,6 +351,70 @@ Schema.addShape({name:"method_service_node4", title:"人工任务", text:"人工 + + +/***Procedure*/Schema.addShape({name:"procedure", title:"流程接口", text:"流程接口", category:"process_epc", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"197,197,197"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"255,255,255", endColor:"237,237,237", angle:Math.PI * 0.5}, textBlock:{x:"0", y:"0", w:"w*0.8", h:"h*0.8"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[ + {actions:[ + {action:"move", x:"0", y:"4*0.8"}, + {action:"quadraticCurve", x1:"0", y1:"0", x:"4*0.8", y:"0"}, + {action:"line", x:"(w-4)*0.8", y:"0"}, + {action:"quadraticCurve", x1:"w*0.8", y1:"0", x:"w*0.8", y:"4*0.8"}, + {action:"line", x:"w*0.8", y:"(h-4)*0.8"}, + {action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"(w-4)*0.8", y:"h*0.8"}, + {action:"line", x:"4*0.8", y:"h*0.8"}, + {action:"quadraticCurve", x1:"0", y1:"h*0.8", x:"0", y:"(h-4)*0.8"}, + {action:"line", x:"0", y:"4*0.8"}, + {action:"move", x:"w*0.8", y:"6"}, + {action:"line", x:"w", y:"h*0.5"}, + {action:"line", x:"(w-4)*0.8", y:"h"}, + {action:"line", x:"w*3/8", y:"h"}, + {action:"line", x:"w/4", y:"h*0.8"}, + {action:"line", x:"(w-4)*0.8", y:"h*0.8"}, + {action:"quadraticCurve", x1:"w*0.8", y1:"h*0.8", x:"w*0.8", y:"(h-4)*0.8"} + ]} +]}); + + +/***And*/Schema.addShape({name:"and", title:"与", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[ + {lineStyle:{lineWidth:0},actions:{ref:"round"}}, + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"w/2-w*0.15", y:"h/2+h*0.13"}, + {action:"line", x:"w*0.5", y:"h/2-h*0.15"}, + {action:"line", x:"w/2+w*0.15", y:"h/2+h*0.13"}, + {action:"line", x:"w*0.5", y:"h/2-h*0.15"} + ]}, + {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} +]}); +/***Or*/Schema.addShape({name:"or", title:"或", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[ + {lineStyle:{lineWidth:0},actions:{ref:"round"}}, + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"w/2-w*0.15", y:"h/2-h*0.13"}, + {action:"line", x:"w*0.5", y:"h/2+h*0.15"}, + {action:"line", x:"w/2+w*0.15", y:"h/2-h*0.13"}, + {action:"line", x:"w*0.5", y:"h/2+h*0.15"} + ]}, + {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} +]}); +/***Xor*/Schema.addShape({name:"xor", title:"异或", category:"process_epc", attribute:{editable:false}, props:{w:46, h:46}, fillStyle:{color:"175,210,255"}, path:[ + {lineStyle:{lineWidth:0},actions:{ref:"round"}}, + {lineStyle:{lineWidth:1,color:"51,62,75"},actions:[ + {action:"move", x:"w/2-w*0.15", y:"h/2-h*0.15"}, + {action:"line", x:"w/2+w*0.15", y:"h/2+h*0.15"}, + {action:"move", x:"w/2+w*0.15", y:"h/2-h*0.15"}, + {action:"line", x:"w/2-w*0.15", y:"h/2+h*0.15"} + ]}, + {lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}} +]}); + + + + + + + + + + /*泳池/泳道分组*/ Schema.addCategory({name:"lane", text:"泳池/泳道"}); function getPool(a, d) {