apps/com.actionsoft.apps.coe.pal/method/process.bpmn2/diagram.schema.tpl
2022-06-27 22:14:40 +08:00

1431 lines
98 KiB
Smarty
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Schema.addCategory({name:"process_bpmn2", text:"BPMN流程图", dataAttributes:[
{name:"Name", type:"string", value:"", category:"default"},
{name:"documentation", type:"string", value:"", category:"default"},
{name:"AWSProperties", type:"string", value:"", category:"default"},
]});
Schema.addGlobalCommand("inneround", [
{action:"move", x:"3", y:"h*0.5"},
{action:"curve", x1:"3", y1:"-h/6+4", x2:"w-3", y2:"-h/6+4", x:"w-3", y:"h*0.5"},
{action:"curve", x1:"w-3", y1:"h+h/6-4", x2:"3", y2:"h+h/6-4", x:"3", y:"h*0.5"}
]);
Schema.addGlobalCommand("message0", [
{action:"move", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.3", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"},
{action:"close"},
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5-h*0.2"},
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"}
]);
Schema.addGlobalCommand("timer0", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5-w*0.3", y:"h*0.5"},
{action:"curve", x1:"w*0.5-w*0.3", y1:"h*0.5-h*0.6*2/3", x2:"w*0.5+w*0.3", y2:"h*0.5-h*0.6*2/3", x:"w*0.5+w*0.3", y:"h*0.5"},
{action:"curve", x1:"w*0.5+w*0.3", y1:"h*0.5+h*0.6*2/3", x2:"w*0.5-w*0.3", y2:"h*0.5+h*0.6*2/3", x:"w*0.5-w*0.3", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("timer0_needle", [
{action:"move", x:"w*0.5+w*0.15", y:"h*0.5"},
{action:"line", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/12*5)", y:"h*0.5-h*0.25*Math.sin(Math.PI/12*5)"},
{action:"line", x:"w*0.5", y:"h*0.5"}
]);
Schema.addGlobalCommand("timer0_num", [
{action:"move", x:"w*0.5+w*0.3*Math.cos(0)", y:"h*0.5+h*0.3*Math.sin(0)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(0)", y:"h*0.5+h*0.25*Math.sin(0)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*2)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*2)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*2)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*2)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*3)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*3)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*3)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*3)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*4)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*4)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*4)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*4)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*5)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*5)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*5)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*5)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*6)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*6)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*6)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*6)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*7)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*7)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*7)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*7)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*8)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*8)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*8)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*8)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*9)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*9)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*9)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*9)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*10)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*10)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*10)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*10)"},
{action:"move", x:"w*0.5+w*0.3*Math.cos(Math.PI/6*11)", y:"h*0.5+h*0.3*Math.sin(Math.PI/6*11)"},
{action:"line", x:"w*0.5+w*0.25*Math.cos(Math.PI/6*11)", y:"h*0.5+h*0.25*Math.sin(Math.PI/6*11)"}
]);
Schema.addGlobalCommand("conditional0", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5-w*0.25", y:"h*0.5-h*0.25"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5-h*0.25"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5-w*0.25", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5-w*0.25", y:"h*0.5-h*0.25"},
{action:"close"},
{action:"move", x:"w*0.5-w*0.2", y:"h*0.5-h*0.05"},
{action:"line", x:"w*0.5+w*0.2", y:"h*0.5-h*0.05"},
{action:"move", x:"w*0.5-w*0.2", y:"h*0.5-h*0.16"},
{action:"line", x:"w*0.5+w*0.2", y:"h*0.5-h*0.16"},
{action:"move", x:"w*0.5-w*0.2", y:"h*0.5+h*0.05"},
{action:"line", x:"w*0.5+w*0.2", y:"h*0.5+h*0.05"},
{action:"move", x:"w*0.5-w*0.2", y:"h*0.5+h*0.16"},
{action:"line", x:"w*0.5+w*0.2", y:"h*0.5+h*0.16"}
]);
Schema.addGlobalCommand("escalation0", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.2", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5", y:"h*0.5-h*0.25"},
{action:"line", x:"w*0.5-w*0.2", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("signal0", [
{action:"move", x:"w*0.5", y:"h*0.5-h*0.32"},
{action:"line", x:"w*0.5+w*0.28", y:"h*0.5+h*0.15"},
{action:"line", x:"w*0.5-w*0.28", y:"h*0.5+h*0.15"},
{action:"line", x:"w*0.5", y:"h*0.5-h*0.32"},
{action:"close"}
]);
Schema.addGlobalCommand("compensation0", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5", y:"h*0.5"},
{action:"close"},
{action:"move", x:"w*0.5-w*0.25", y:"h*0.5"},
{action:"line", x:"w*0.5", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.25", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("error0", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5+w*0.1", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.28", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.1", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.1", y:"h*0.5"},
{action:"line", x:"w*0.5-w*0.28", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.1", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.1", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("multiple0", [
{action:"move", x:"w*0.5", y:"h*0.5-h*0.28"},
{action:"line", x:"w*0.5+w*0.28", y:"h*0.5-h*0.08"},
{action:"line", x:"w*0.5+w*0.17", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5-w*0.17", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5-w*0.28", y:"h*0.5-h*0.08"},
{action:"line", x:"w*0.5", y:"h*0.5-h*0.28"},
{action:"close"}
]);
Schema.addGlobalCommand("parallel0", [
{action:"move", x:"w*0.5+w*0.07", y:"h*0.5-h*0.07"},
{action:"line", x:"w*0.5+w*0.27", y:"h*0.5-h*0.07"},
{action:"line", x:"w*0.5+w*0.27", y:"h*0.5+h*0.07"},
{action:"line", x:"w*0.5+w*0.07", y:"h*0.5+h*0.07"},
{action:"line", x:"w*0.5+w*0.07", y:"h*0.5+h*0.27"},
{action:"line", x:"w*0.5-w*0.07", y:"h*0.5+h*0.27"},
{action:"line", x:"w*0.5-w*0.07", y:"h*0.5+h*0.07"},
{action:"line", x:"w*0.5-w*0.27", y:"h*0.5+h*0.07"},
{action:"line", x:"w*0.5-w*0.27", y:"h*0.5-h*0.07"},
{action:"line", x:"w*0.5-w*0.07", y:"h*0.5-h*0.07"},
{action:"line", x:"w*0.5-w*0.07", y:"h*0.5-h*0.27"},
{action:"line", x:"w*0.5+w*0.07", y:"h*0.5-h*0.27"},
{action:"line", x:"w*0.5+w*0.07", y:"h*0.5-h*0.07"},
{action:"close"}
]);
Schema.addGlobalCommand("gateway0", [
{action:"move", x:"0", y:"h*0.5"},
{action:"line", x:"w*0.5", y:"0"},
{action:"line", x:"w", y:"h*0.5"},
{action:"line", x:"w*0.5", y:"h"},
{action:"line", x:"0", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("link3", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5-w*0.26", y:"h*0.5-h*0.08"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5-h*0.08"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5-h*0.18"},
{action:"line", x:"w*0.5+w*0.26", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5+h*0.18"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5+h*0.08"},
{action:"line", x:"w*0.5-w*0.26", y:"h*0.5+h*0.08"},
{action:"close"}
]);
Schema.addGlobalCommand("cancel3", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5", y:"h*0.5-h*0.1"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5-h*0.25"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5-h*0.16"},
{action:"line", x:"w*0.5+w*0.1", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.25", y:"h*0.5+h*0.16"},
{action:"line", x:"w*0.5+w*0.16", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5", y:"h*0.5+h*0.1"},
{action:"line", x:"w*0.5-w*0.16", y:"h*0.5+h*0.25"},
{action:"line", x:"w*0.5-w*0.25", y:"h*0.5+h*0.16"},
{action:"line", x:"w*0.5-w*0.1", y:"h*0.5"},
{action:"line", x:"w*0.5-w*0.25", y:"h*0.5-h*0.16"},
{action:"line", x:"w*0.5-w*0.16", y:"h*0.5-h*0.25"},
{action:"line", x:"w*0.5", y:"h*0.5-h*0.1"},
{action:"close"}
]);
Schema.addGlobalCommand("message4", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.3", y:"h*0.5+h*0.2"},
{action:"line", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"},
{action:"close"}
]);
Schema.addGlobalCommand("message4_0", [
{action:"move", x:"w*0.5-w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5", y:"h*0.5"},
{action:"line", x:"w*0.5+w*0.3", y:"h*0.5-h*0.2"},
{action:"line", x:"w*0.5", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("g_round", [
{action:"move", x:"w*0.5 - w*0.25", y:"h*0.5"},
{action:"curve", x1:"w*0.5 - w*0.25", y1:"h*0.5 - h*2/3*0.5", x2:"w*0.5 + w*0.25", y2:"h*0.5 - h*2/3*0.5", x:"w*0.5 + w*0.25", y:"h*0.5"},
{action:"curve", x1:"w*0.5 + w*0.25", y1:"h*0.5 + h*2/3*0.5", x2:"w*0.5 - w*0.25", y2:"h*0.5 + h*2/3*0.5", x:"w*0.5 - w*0.25", y:"h*0.5"},
{action:"close"}
]);
Schema.addGlobalCommand("manual_task", [
{action:"move", x:"100*0.15- 100*0.08", y:"60*0.2"},
{action:"line", x:"100*0.15- 100*0.04", y:"60*0.2"},
{action:"line", x:"100*0.15+ 100*0.01", y:"60*0.13"},
{action:"line", x:"100*0.15+ 100*0.04", y:"60*0.13"},
{action:"line", x:"100*0.15 + 100*0.04", y:"60*0.17"},
{action:"line", x:"100*0.15+ 100*0.01", y:"60*0.17"},
{action:"line", x:"100*0.15+ 100*0.1", y:"60*0.17"},
{action:"line", x:"100*0.15+ 100*0.1", y:"60*0.21"},
{action:"line", x:"100*0.15+ 100*0.01", y:"60*0.21"},
{action:"line", x:"100*0.15+ 100*0.06", y:"60*0.21"},
{action:"line", x:"100*0.15+ 100*0.06", y:"60*0.25"},
{action:"line", x:"100*0.15+ 100*0.01", y:"60*0.25"},
{action:"line", x:"100*0.15+ 100*0.06", y:"60*0.25"},
{action:"line", x:"100*0.15+ 100*0.06", y:"60*0.29"},
{action:"line", x:"100*0.15+ 100*0.06", y:"60*0.29"},
{action:"line", x:"100*0.15+ 100*0.04", y:"60*0.29"},
{action:"line", x:"100*0.15+ 100*0.04", y:"60*0.33"},
{action:"line", x:"100*0.15- 100*0.04", y:"60*0.33"},
{action:"line", x:"100*0.15- 100*0.08", y:"60*0.28"},
{action:"line", x:"100*0.15- 100*0.08", y:"60*0.2"},
{action:"close"}
]);
Schema.addGlobalCommand("receive_task", [
{action:"move", x:"100*0.15+ 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15- 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.08"},
{action:"line", x:"100*0.15+ 100*0.08", y:"60*0.24 + 60*0.08"},
{action:"line", x:"100*0.15+ 100*0.08", y:"60*0.24- 60*0.1"},
{action:"close"},
{action:"line", x:"100*0.15 - 0", y:"60*0.24- 60*0.01"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 - 0", y:"60*0.24- 60*0.01"},
{action:"close"}
]);
Schema.addGlobalCommand("receive_task_dark", [
{action:"move", x:"100*0.15+ 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15- 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.08"},
{action:"line", x:"100*0.15+ 100*0.08", y:"60*0.24 + 60*0.08"},
{action:"line", x:"100*0.15+ 100*0.08", y:"60*0.24- 60*0.1"},
{action:"close"},
{action:"line", x:"100*0.15 - 0", y:"60*0.24- 60*0.01"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 - 0", y:"60*0.24- 60*0.01"},
{action:"close"}
]);
Schema.addGlobalCommand("service_task", [
{action:"move", x:"100*0.09 -100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 -100*0.28 *0.16", y:"60*0.14 + 60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.09 - 100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 -100*0.17 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 -100*0.12 *0.16", y:"60*0.14 -60/5*8 *0.02 *0.16"},
{action:"line", x:"100*0.09 -100*0.21 *0.16", y:"60*0.14 -60/5*8 *0.13 *0.16"},
{action:"line", x:"100*0.09 -100*0.18 *0.16", y:"60*0.14 -60/5*8 *0.17 *0.16"},
{action:"line", x:"100*0.09 -100*0.13 *0.16", y:"60*0.14 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.09 -100*0.05 *0.16", y:"60*0.14 -60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.09 +100*0.03 *0.16", y:"60*0.14 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.10 *0.16", y:"60*0.14 -60/5*8 *0.27 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.09 + 100*0.23 *0.16", y:"60*0.14 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.09 + 100*0.30 *0.16", y:"60*0.14 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.09 + 100*0.35 *0.16", y:"60*0.14 -60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.38 *0.16", y:"60*0.14 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.09 + 100*0.32 *0.16", y:"60*0.14 -60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.37 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.46 *0.16", y:"60*0.14 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.09 + 100*0.48 *0.16", y:"60*0.14 + 60/5*8 *0.10 *0.16"},
{action:"line", x:"100*0.09 + 100*0.46 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.37 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 + 100*0.33 *0.16", y:"60*0.14 + 60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 + 100*0.38 *0.16", y:"60*0.14 + 60/5*8 *0.31 *0.16"},
{action:"line", x:"100*0.09 + 100*0.36 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 + 100*0.29 *0.16", y:"60*0.14 + 60/5*8 *0.39 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60/5*8 *0.35 *0.16"},
{action:"line", x:"100*0.09 + 100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 + 100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.09 + 100*0.10 *0.16", y:"60*0.14 + 60/5*8 *0.48 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.09 + 100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.09 -100*0.12 *0.16", y:"60*0.14 + 60/5*8 *0.38 *0.16"},
{action:"line", x:"100*0.09 -100*0.18 *0.16", y:"60*0.14 + 60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.09 -100*0.21 *0.16", y:"60*0.14 + 60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.09 -100*0.14 *0.16", y:"60*0.14 + 60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.09 -100*0.16 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.09 -100*0.26 *0.16", y:"60*0.14 + 60/5*8 *0.16 *0.16"},
{action:"close"},
{action:"move", x:"100*0.09 -100*0.01 *0.16", y:"60*0.14 + 60/5*8 *0.01 *0.16"},
{action:"line", x:"100*0.09 +100*0.01 *0.16", y:"60*0.14 - 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 +100*0.04 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 - 60*0.0 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 + 60*0.02 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 -60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.22 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.04 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.20 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.25 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.20 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.21 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.18 *0.16", y:"60*0.14 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.15 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.12 *0.16", y:"60*0.14 + 60*0.25 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.26 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.08 *0.16", y:"60*0.14 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.05 *0.16", y:"60*0.14 + 60*0.18 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.01 *0.16", y:"60*0.14 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.09 - 100*0.02 *0.16", y:"60*0.14 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.0 *0.16", y:"60*0.14 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.0 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.04 *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0. *0.16", y:"60*0.14 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.09 + 100*0.01 *0.16", y:"60*0.14 + 60*0.05 /5*8 *0.16"},
{action:"line", x:"100*0.09 -100*0.01 *0.16", y:"60*0.14 + 60*0.01 /5*8 *0.16"},
{action:"close"},
{action:"move", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 + 60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 -100*0.28 *0.16", y:"60*0.24 + 60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 -100*0.17 *0.16", y:"60*0.24 + 60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 -100*0.12 *0.16", y:"60*0.24 -60/5*8 *0.02 *0.16"},
{action:"line", x:"100*0.15 -100*0.21 *0.16", y:"60*0.24 -60/5*8 *0.13 *0.16"},
{action:"line", x:"100*0.15 -100*0.18 *0.16", y:"60*0.24 -60/5*8 *0.17 *0.16"},
{action:"line", x:"100*0.15 -100*0.13 *0.16", y:"60*0.24 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.15 -100*0.05 *0.16", y:"60*0.24 -60/5*8 *0.11 *0.16"},
{action:"line", x:"100*0.15 + 100*0.03 *0.16", y:"60*0.24 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.10 *0.16", y:"60*0.24 -60/5*8 *0.27 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 -60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 -60/5*8 *0.15 *0.16"},
{action:"line", x:"100*0.15 + 100*0.23 *0.16", y:"60*0.24 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.15 + 100*0.30 *0.16", y:"60*0.24 -60/5*8 *0.19 *0.16"},
{action:"line", x:"100*0.15 + 100*0.35 *0.16", y:"60*0.24 -60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.38 *0.16", y:"60*0.24 -60/5*8 *0.12 *0.16"},
{action:"line", x:"100*0.15 + 100*0.32 *0.16", y:"60*0.24 -60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.37 *0.16", y:"60*0.24 +60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.46 *0.16", y:"60*0.24 +60/5*8 *0.05 *0.16"},
{action:"line", x:"100*0.15 + 100*0.48 *0.16", y:"60*0.24 +60/5*8 *0.10 *0.16"},
{action:"line", x:"100*0.15 + 100*0.46 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.37 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 + 100*0.33 *0.16", y:"60*0.24 +60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 + 100*0.38 *0.16", y:"60*0.24 +60/5*8 *0.31 *0.16"},
{action:"line", x:"100*0.15 + 100*0.36 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 + 100*0.29 *0.16", y:"60*0.24 +60/5*8 *0.39 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 +60/5*8 *0.35 *0.16"},
{action:"line", x:"100*0.15 + 100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 + 100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.15 + 100*0.10 *0.16", y:"60*0.24 +60/5*8 *0.48 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.46 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 +60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.15 -100*0.12 *0.16", y:"60*0.24 +60/5*8 *0.38 *0.16"},
{action:"line", x:"100*0.15 -100*0.18 *0.16", y:"60*0.24 +60/5*8 *0.37 *0.16"},
{action:"line", x:"100*0.15 -100*0.21 *0.16", y:"60*0.24 +60/5*8 *0.33 *0.16"},
{action:"line", x:"100*0.15 -100*0.14 *0.16", y:"60*0.24 +60/5*8 *0.25 *0.16"},
{action:"line", x:"100*0.15 -100*0.16 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"line", x:"100*0.15 -100*0.26 *0.16", y:"60*0.24 +60/5*8 *0.16 *0.16"},
{action:"close"},
{action:"move", x:"100*0.15 -100*0.01 *0.16", y:"60*0.24 +60/5*8 *0.01 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 - 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.04 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 - 60*0.03 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 - 60*0.0 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 + 60*0.02 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 -60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.22 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.04 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.20 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.25 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.20 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.21 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.18 *0.16", y:"60*0.24 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.15 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.12 *0.16", y:"60*0.24 + 60*0.25 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.26 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.08 *0.16", y:"60*0.24 + 60*0.21 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.05 *0.16", y:"60*0.24 + 60*0.18 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 + 60*0.22 /5*8 *0.16"},
{action:"line", x:"100*0.15 - 100*0.02 *0.16", y:"60*0.24 + 60*0.19 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.0 *0.16", y:"60*0.24 + 60*0.16 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.0 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 + 60*0.12 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.04 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0 *0.16", y:"60*0.24 + 60*0.08 /5*8 *0.16"},
{action:"line", x:"100*0.15 + 100*0.01 *0.16", y:"60*0.24 + 60*0.05 /5*8 *0.16"},
{action:"line", x:"100*0.15 -100*0.01 *0.16", y:"60*0.24 + 60*0.01 /5*8 *0.16"},
{action:"close"}
]);
Schema.addGlobalCommand("script_task", [
{action:"move", x:"100*0.15- 100*0.05", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.05", y:"60*0.24 - 60*0.1"},
{action:"curve", x1:"100*0.15 + 100*0.02", y1:"60*0.24 - 60*0.1", x2:"100*0.15 + 100*0.02", y2:"60*0.24", x:"100*0.15 + 100*0.04", y:"60*0.24"},
{action:"curve", x1:"100*0.15 + 100*0.06", y1:"60*0.24", x2:"100*0.15 + 100*0.06", y2:"60*0.24 + 60*0.1", x:"100*0.15 + 100*0.03", y:"60*0.24 + 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"curve", x1:"100*0.15 - 100*0.05", y1:"60*0.24 + 60*0.1", x2:"100*0.15 - 100*0.05", y2:"60*0.24", x:"100*0.15 - 100*0.07", y:"60*0.24"},
{action:"curve", x1:"100*0.15 - 100*0.09", y1:"60*0.24", x2:"100*0.15 - 100*0.09", y2:"60*0.24 - 60*0.1", x:"100*0.15 - 100*0.05", y:"60*0.24 - 60*0.1"},
{action:"close"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.025", y:"60*0.24 - 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.07", y:"60*0.24 - 0"},
{action:"line", x:"100*0.15 + 100*0.04", y:"60*0.24 - 0"},
{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"}
]);
Schema.addGlobalCommand("business_rule", [
{action:"move", x:"100*0.15- 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24- 60*0.1"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.1"},
{action:"close"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 - 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.0"},
{action:"move", x:"100*0.15 - 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"line", x:"100*0.15 + 100*0.08", y:"60*0.24 + 60*0.05"},
{action:"move", x:"100*0.15 - 100*0.04", y:"60*0.24 - 60*0.1"},
{action:"line", x:"100*0.15 - 100*0.04", y:"60*0.24 + 60*0.1"}
]);
Schema.addGlobalCommand("user_task", [
{action:"move", x:"100*0.05+ 100/11*2*0.5-100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"curve", x1:"100*0.05+ 100/11*2*0.30", y1:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x2:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y2:"60*0.1+ 60/55*16*0.3 - 60/55*16*0.4*2/3", x:"100*0.05+ 100/11*2*0.5+100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"line", x:"100*0.05+ 100/11*2*0.5-100/11*2*0.2", y:"60*0.1+ 60/55*16*0.3"},
{action:"close"},
{action:"move", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.68"},
{action:"quadraticCurve", x1:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.1", y1:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"quadraticCurve", x1:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y1:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.68"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.95", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.77"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.77", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.77"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.23", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.05", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.96"},
{action:"close"},
{action:"move", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.38", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.42"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.40"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.32", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.35"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.32", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.27"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.43", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.27"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.46", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.24"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.68", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.24"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.68", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.35"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.40"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.62", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.42"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.60", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.58"},
{action:"line", x:"100*0.05+ 100/11*2*0.0 + 100/11*2*0.35", y:"60*0.1+ 60/55*16*0.0 + 60/55*16*0.45"},
{action:"close"}
]);
Schema.addGlobalCommand("inner_roundRectangle", [
{action:"move", x:"w * 0 +3", y:"h * 0 + h/30 +3"},
{action:"quadraticCurve", x1:"w * 0 +3 +1", y1:"h * 0 +3 +1", x:"w * 0 + h/30 +3", y:"h * 0 +3"},
{action:"line", x:"w * 1 - h/30 -3", y:"h * 0 +3"},
{action:"quadraticCurve", x1:"w * 1 -3", y1:"h * 0+3", x:"w * 1 -3", y:"h * 0 + h/30 +3"},
{action:"line", x:"w * 1 -3", y:"h * 1 - h/30-3"},
{action:"quadraticCurve", x1:"w * 1 -3", y1:"h * 1 -3", x:"w * 1 - h/30-3", y:"h * 1 -3"},
{action:"line", x:"w * 0 + h/30 +3", y:"h * 1 -3"},
{action:"quadraticCurve", x1:"w * 0+3", y1:"h * 1-3", x:"w * 0 +3", y:"h * 1 - h/30 -3"},
{action:"line", x:"w * 0 + 3", y:"h * 0 + h/30+3"},
{action:"close"}
]);
Schema.addGlobalCommand("exclusive_gateway", [
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5 - w*0.5*0.4 + w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 + w*0.02", y:"h*0.5 + h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 + h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 + h*0.02"},
{action:"close"},
{action:"move", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 - w*0.02", y:"h*0.5 + h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 + w*0.02", y:"h*0.5 + h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 + w*0.02", y:"h*0.5 - h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"close"}
]);
Schema.addGlobalCommand("complex_gateway0", [
{action:"move", x:"w*0.5 - Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02", y:"h*0.5 - Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02", y:"h*0.5 + Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.03"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02", y:"h*0.5 + Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02", y:"h*0.5 - Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02"},
{action:"close"}
]);
Schema.addGlobalCommand("complex_gateway1", [
{action:"move", x:"w*0.5 + Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02", y:"h*0.5 - Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02", y:"h*0.5 + Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02", y:"h*0.5 + Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02", y:"h*0.5 - Math.min(w,h)*0.5*0.3 + Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02", y:"h*0.5 - Math.min(w,h)*0.5*0.3 - Math.min(w,h)*0.02"},
{action:"close"}
]);
Schema.addGlobalCommand("complex_gateway2", [
{action:"move", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"close"}
]);
Schema.addGlobalCommand("complex_gateway3", [
{action:"move", x:"w*0.5 - Math.min(w,h)*0.5*0.4", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.4", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.4", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.4", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.4", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"close"}
]);
Schema.addGlobalCommand("event_based_gateway", [
{action:"move", x:"w*0.5 - w*0.5/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 - w*0.5/55*32", y1:"h*0.5 - h/55*32*2/3", x2:"w*0.5 + w*0.5/55*32", y2:"h*0.5 - h/55*32*2/3", x:"w*0.5 + w*0.5/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 + w*0.5/55*32", y1:"h*0.5 + h/55*32*2/3", x2:"w*0.5 - w*0.5/55*32", y2:"h*0.5 + h/55*32*2/3", x:"w*0.5 - w*0.5/55*32", y:"h*0.5"},
{action:"close"},
{action:"move", x:"w*0.5 - w*0.4/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 - w*0.4/55*32", y1:"h*0.5 - h/55*32*2/3*0.8", x2:"w*0.5+w*0.4/55*32", y2:"h*0.5 - h/55*32*2/3*0.8", x:"w*0.5 + w*0.4/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 + w*0.4/55*32", y1:"h*0.5 + h/55*32*2/3*0.8", x2:"w*0.5 - w*0.4/55*32", y2:"h*0.5 + h/55*32*2/3*0.8", x:"w*0.5 - w*0.4/55*32", y:"h*0.5"},
{action:"close"},
{action:"move", x:"w*0.5", y:"h*0.5 - h/55*32*0.28"},
{action:"line", x:"w*0.5+ w/55*32*0.28", y:"h*0.5- h/55*32*0.08"},
{action:"line", x:"w*0.5+ w/55*32*0.17", y:"h*0.5+h/55*32*0.25"},
{action:"line", x:"w*0.5- w/55*32*0.17", y:"h*0.5+ h/55*32*0.25"},
{action:"line", x:"w*0.5- w/55*32*0.28", y:"h*0.5-h/55*32*0.08"},
{action:"line", x:"w*0.5", y:"h*0.5-h/55*32*0.28"},
{action:"close"}
]);
Schema.addGlobalCommand("event_based_start_gateway", [
{action:"move", x:"w*0.5 - w*0.5/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 - w*0.5/55*32", y1:"h*0.5 - h/55*32*2/3", x2:"w*0.5 + w*0.5/55*32", y2:"h*0.5 - h/55*32*2/3", x:"w*0.5 + w*0.5/55*32", y:"h*0.5"},
{action:"curve", x1:"w*0.5 + w*0.5/55*32", y1:"h*0.5 + h/55*32*2/3", x2:"w*0.5 - w*0.5/55*32", y2:"h*0.5 + h/55*32*2/3", x:"w*0.5 - w*0.5/55*32", y:"h*0.5"},
{action:"close"},
{action:"move", x:"w*0.5", y:"h*0.5 - h/55*32*0.28"},
{action:"line", x:"w*0.5+ w/55*32*0.28", y:"h*0.5- h/55*32*0.08"},
{action:"line", x:"w*0.5+ w/55*32*0.17", y:"h*0.5+h/55*32*0.25"},
{action:"line", x:"w*0.5- w/55*32*0.17", y:"h*0.5+ h/55*32*0.25"},
{action:"line", x:"w*0.5- w/55*32*0.28", y:"h*0.5-h/55*32*0.08"},
{action:"line", x:"w*0.5", y:"h*0.5-h/55*32*0.28"},
{action:"close"}
]);
Schema.addGlobalCommand("parallel_gateway", [
{action:"move", x:"w*0.5 - Math.min(w,h)*0.04", y:"h*0.5 - h*0.5*0.5"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.04", y:"h*0.5 + h*0.5*0.5"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.04", y:"h*0.5 + h*0.5*0.5"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.04", y:"h*0.5 - h*0.5*0.5"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.04", y:"h*0.5 - h*0.5*0.5"},
{action:"close"},
{action:"move", x:"w*0.5 - w*0.5*0.5", y:"h*0.5 - Math.min(w,h)*0.04"},
{action:"line", x:"w*0.5 - w*0.5*0.5", y:"h*0.5 + Math.min(w,h)*0.04"},
{action:"line", x:"w*0.5 + w*0.5*0.5", y:"h*0.5 + Math.min(w,h)*0.04"},
{action:"line", x:"w*0.5 + w*0.5*0.5", y:"h*0.5 - Math.min(w,h)*0.04"},
{action:"line", x:"w*0.5 - w*0.5*0.5", y:"h*0.5 - Math.min(w,h)*0.04"},
{action:"close"}
]);
Schema.addGlobalCommand("parallel_eventbased_gateway", [
{action:"move", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.02"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.4", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.5*0.4", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.4", y:"h*0.5 + Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.5*0.4", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.027"},
{action:"line", x:"w*0.5 + Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"line", x:"w*0.5 - Math.min(w,h)*0.027", y:"h*0.5 - Math.min(w,h)*0.5*0.4"},
{action:"close"}
]);
Schema.addGlobalCommand("data_in_object", [
{action:"move", x:"w/3/4", y:"h/4/3+3"},
{action:"line", x:"w/3/4*3.5", y:"h/4/3+3"},
{action:"line", x:"w/3/4*3.5", y:"h/4/3-h/4/5+3"},
{action:"line", x:"w/3/4*5", y:"h/4/2+3"},
{action:"line", x:"w/3/4*3.5", y:"h/4/2+h/4/2-h/4/3+h/4/5+3"},
{action:"line", x:"w/3/4*3.5", y:"h/4/2+h/4/2-h/4/3+3"},
{action:"line", x:"w/3/4", y:"h/4/2+h/4/2-h/4/3+3"},
{action:"line", x:"w/3/4", y:"h/4/3+3"},
{action:"close"}
]);
Schema.addGlobalCommand("choreography_task", [
{action:"move", x:"0", y:"6"},
{action:"quadraticCurve", x1:"0", y1:"0", x:"6", y:"0"},
{action:"line", x:"w-6", y:"0"},
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"6"},
{action:"line", x:"w", y:"h-6"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-6", y:"h"},
{action:"line", x:"6", y:"h"},
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-6"},
{action:"line", x:"0", y:"6"},
{action:"close"}
]);
Schema.addShape({name:"startEvent", title:startEventText, text:startEventText, category:"process_bpmn2", groupName:"startEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"}, textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, lineStyle:{lineColor:startEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:startEventFillStyleBeginColor, endColor:startEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"userTask", title:userTaskText, text:userTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"renderings", type:"string", value:"", category:"default"},
{name:"implementation", type:"string", value:"", category:"default"},
{name:"resources", type:"string", value:"", category:"default"},
{name:"ioSpecification", type:"string", value:"", category:"default"},
{name:"dataInputAssociations", type:"string", value:"", category:"default"},
{name:"dataOutputAssociations", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:userTaskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:userTaskFillStyleBeginColor, endColor:userTaskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:userTaskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"user_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"exclusiveGateway", title:exclusiveGatewayText, text:exclusiveGatewayText, category:"process_bpmn2", groupName:"bpmnGateway", dataAttributes:[
{name:"gatewayDirection", type:"list", value:"", category:"default", listItems:["Unspecified,Converging,Diverging,Mixed"]},
{name:"default", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:50, h:50}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, lineStyle:{lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"gateway0"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:[
{action:"move", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 - w*0.02", y:"h*0.5 + h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 + w*0.02", y:"h*0.5 + h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 + w*0.02", y:"h*0.5 - h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"close"}
]},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:[
{action:"move", x:"w*0.5", y:"h*0.5"},
{action:"move", x:"w*0.5 - w*0.5*0.4 + w*0.02", y:"h*0.5 - h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 + w*0.02", y:"h*0.5 + h*0.5*0.4 - h*0.02"},
{action:"line", x:"w*0.5 + w*0.5*0.4 - w*0.02", y:"h*0.5 + h*0.5*0.4 + h*0.02"},
{action:"line", x:"w*0.5 - w*0.5*0.4 - w*0.02", y:"h*0.5 - h*0.5*0.4 + h*0.02"},
{action:"close"}
]},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"gateway0"}}
]});
Schema.addShape({name:"messageStartEvent", title:messageStartEventText, text:messageStartEventText, category:"process_bpmn2", groupName:"startEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, lineStyle:{lineColor:startEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:startEventFillStyleBeginColor, endColor:startEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:startEventLineColor}, fillStyle:{type:"solid", color:startEventContentColor}, actions:{ref:"message0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"timerStartEvent", title:timerStartEventText, text:timerStartEventText, category:"process_bpmn2", groupName:"startEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, lineStyle:{lineColor:startEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:startEventFillStyleBeginColor, endColor:startEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:startEventLineColor}, fillStyle:{type:"solid", color:startEventContentColor}, actions:{ref:"timer0"}},
{lineStyle:{lineWidth:1, lineStyle:"solid"}, actions:{ref:"timer0_needle"}},
{lineStyle:{lineStyle:"solid"}, actions:{ref:"timer0_num"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"signalStartEvent", title:signalStartEventText, text:signalStartEventText, category:"process_bpmn2", groupName:"startEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, lineStyle:{lineColor:startEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:startEventFillStyleBeginColor, endColor:startEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:startEventLineColor}, fillStyle:{type:"solid", color:startEventContentColor}, actions:{ref:"signal0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
function drawChoreographyIcon(a, d, c) {
var f = [
{actions:[
{action:"move", x:0, y:4},
{action:"quadraticCurve", x1:0, y1:0, x:4, y:0},
{action:"line", x:a - 4, y:0},
{action:"quadraticCurve", x1:a, y1:0, x:a, y:4},
{action:"line", x:a, y:d - 4},
{action:"quadraticCurve", x1:a, y1:d, x:a - 4, y:d},
{action:"line", x:4, y:d},
{action:"quadraticCurve", x1:0, y1:d, x:0, y:d - 4},
{action:"line", x:0, y:4},
{action:"close"}
]},
{actions:[
{action:"move", x:0, y:4},
{action:"quadraticCurve", x1:0, y1:0, x:4, y:0},
{action:"line", x:a - 4, y:0},
{action:"quadraticCurve", x1:a, y1:0, x:a, y:4},
{action:"line", x:a, y:5},
{action:"line", x:0, y:5},
{action:"line", x:0, y:4},
{action:"close"}
]},
{fillStyle:{color:"194,194,194"}, actions:[
{action:"move", x:0, y:d - 5},
{action:"line", x:a, y:d - 5},
{action:"line", x:a, y:d - 4},
{action:"quadraticCurve", x1:a, y1:d, x:a - 4, y:d},
{action:"line", x:4, y:d},
{action:"quadraticCurve", x1:0, y1:d, x:0, y:d - 4},
{action:"close"}
]}
];
if (c) {
for (var b = 0; b < f.length; b++) {
var e = f[b];
e.lineStyle = {lineWidth:3}
}
}
return f
}
function createParticipant(b) {
var e = "participantA";
var a = "participantB";
if (b.name == "callChoreographyGlobal" || b.name == "callChoreography") {
e = "callParticipantA";
a = "callParticipantB"
}
var d = Model.create(e, b.props.x, b.props.y);
d.props.w = b.props.w;
d.props.zindex = b.props.zindex + 0.5;
d.parent = b.id;
Designer.painter.renderShape(d);
var c = Model.create(a, b.props.x, b.props.y);
c.props.w = b.props.w;
c.props.y = b.props.y + b.props.h - c.props.h;
c.props.zindex = b.props.zindex + 0.5;
c.parent = b.id;
Designer.painter.renderShape(c);
b.children = [d.id, c.id];
Model.addMulti([d, c])
}
Schema.addShape({name:"participantA", title:"Participant", text:"Participant", category:"process_bpmn2", dataAttributes:[
{name:"participantMultiplicity", type:"string", value:"", category:"default"},
{name:"maximum", type:"string", value:"1", category:"default"},
{name:"participantBandKind", type:"string", value:"top_initiating", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], attribute:{linkable:false, rotatable:false, visible:false}, props:{w:150, h:25}, resizeDir:[], anchors:[], textBlock:{x:5, y:0, w:"w-10", h:"h"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, path:[
{actions:[
{action:"move", x:0, y:6},
{action:"quadraticCurve", x1:0, y1:0, x:6, y:0},
{action:"line", x:"w-6", y:0},
{action:"quadraticCurve", x1:"w", y1:0, x:"w", y:6},
{action:"line", x:"w", y:"h"},
{action:"line", x:0, y:"h"},
{action:"line", x:0, y:6},
{action:"close"}
]}
]});
Schema.addShape({name:"participantB", title:"Participant", text:"Participant", category:"process_bpmn2", dataAttributes:[
{name:"participantMultiplicity", type:"string", value:"set", category:"default"},
{name:"maximum", type:"string", value:"1", category:"default"},
{name:"participantBandKind", type:"string", value:"bottom_non_initiating", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], attribute:{linkable:false, rotatable:false, visible:false}, props:{w:150, h:25}, resizeDir:[], anchors:[], textBlock:{x:5, y:0, w:"w-10", h:"h"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{color:"194,194,194"}, path:[
{actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:"h-6"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-6", y:"h"},
{action:"line", x:6, y:"h"},
{action:"quadraticCurve", x1:0, y1:"h", x:0, y:"h-6"},
{action:"close"}
]}
]});
Schema.addShape({name:"callParticipantA", title:"Participant", text:"Participant", category:"process_bpmn2", dataAttributes:[
{name:"participantMultiplicity", type:"string", value:"", category:"default"},
{name:"maximum", type:"string", value:"1", category:"default"},
{name:"participantBandKind", type:"string", value:"top_initiating", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], attribute:{linkable:false, rotatable:false, visible:false}, props:{w:150, h:25}, resizeDir:[], anchors:[], textBlock:{x:5, y:0, w:"w-10", h:"h"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, path:[
{lineStyle:{lineWidth:"lineWidth+ 2"}, actions:[
{action:"move", x:0, y:6},
{action:"quadraticCurve", x1:0, y1:0, x:6, y:0},
{action:"line", x:"w-6", y:0},
{action:"quadraticCurve", x1:"w", y1:0, x:"w", y:6},
{action:"line", x:"w", y:"h"},
{action:"line", x:0, y:"h"},
{action:"line", x:0, y:6},
{action:"close"}
]}
]});
Schema.addShape({name:"callParticipantB", title:"Participant", text:"Participant", category:"process_bpmn2", dataAttributes:[
{name:"participantMultiplicity", type:"string", value:"set", category:"default"},
{name:"maximum", type:"string", value:"1", category:"default"},
{name:"participantBandKind", type:"string", value:"bottom_non_initiating", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], attribute:{linkable:false, rotatable:false, visible:false}, props:{w:150, h:25}, resizeDir:[], anchors:[], textBlock:{x:5, y:0, w:"w-10", h:"h"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{color:"194,194,194"}, path:[
{lineStyle:{lineWidth:"lineWidth+ 2"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:"h-6"},
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-6", y:"h"},
{action:"line", x:6, y:"h"},
{action:"quadraticCurve", x1:0, y1:"h", x:0, y:"h-6"},
{action:"close"}
]}
]});
Schema.addShape({name:"timerIntermediateCatchEvent", title:timerIntermediateCatchEventText, text:timerIntermediateCatchEventText, category:"process_bpmn2", groupName:"intermediateEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"solid", color:intermediateCatchEventContentColor, }, actions:{ref:"timer0"}},
{lineStyle:{lineWidth:1, lineStyle:"solid"}, actions:{ref:"timer0_needle"}},
{lineStyle:{lineWidth:2, lineStyle:"solid"}, actions:{ref:"timer0_num"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"messageIntermediateCatchEvent", title:messageIntermediateCatchEventText, text:messageIntermediateCatchEventText, category:"process_bpmn2", groupName:"intermediateEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"solid", color:intermediateCatchEventContentColor, }, actions:{ref:"message0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"signalIntermediateCatchEvent", title:signalIntermediateCatchEventText, text:signalIntermediateCatchEventText, category:"process_bpmn2", groupName:"intermediateEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"}, textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateCatchEventFillStyleBeginColor, endColor:intermediateCatchEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateCatchEventLineColor}, fillStyle:{type:"solid", color:intermediateCatchEventContentColor, }, actions:{ref:"signal0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"messageIntermediateThrowingEvent", title:messageIntermediateThrowingEventText, text:messageIntermediateThrowingEventText, category:"process_bpmn2", groupName:"intermediateEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:intermediateThrowingEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateThrowingEventFillStyleBeginColor, endColor:intermediateThrowingEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateThrowingEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateThrowingEventFillStyleBeginColor, endColor:intermediateThrowingEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineWidth:1, lineColor:intermediateThrowingEventFillStyleBeginColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"message4"}},
{lineStyle:{lineWidth:1, lineColor:intermediateThrowingEventFillStyleBeginColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"message4_0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"signalIntermediateThrowingEvent", title:signalIntermediateThrowingEventText, text:signalIntermediateThrowingEventText, category:"process_bpmn2", groupName:"intermediateEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:intermediateThrowingEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateThrowingEventFillStyleBeginColor, endColor:intermediateThrowingEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:intermediateThrowingEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:intermediateThrowingEventFillStyleBeginColor, endColor:intermediateThrowingEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"signal0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"messageBoundaryInterrputingEvent", title:messageBoundaryInterrputingEventText, text:messageBoundaryInterrputingEventText, category:"process_bpmn2", groupName:"boundaryEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"solid", color:boundaryEventContentColor}, actions:{ref:"message0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"signalBoundaryInterrputingEvent", title:signalBoundaryInterrputingEventText, text:signalBoundaryInterrputingEventText, category:"process_bpmn2", groupName:"boundaryEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"solid", color:boundaryEventContentColor}, actions:{ref:"signal0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"compensationBoundaryInterrputingEvent", title:compensationBoundaryInterrputingEventText, text:compensationBoundaryInterrputingEventText, category:"process_bpmn2", groupName:"boundaryEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"solid", color:boundaryEventContentColor}, actions:{ref:"compensation0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"errorBoundaryInterrputingEvent", title:errorBoundaryInterrputingEventText, text:errorBoundaryInterrputingEventText, category:"process_bpmn2", groupName:"boundaryEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"}, textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineStyle:"solid", lineColor:boundaryEventLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:boundaryEventFillStyleBeginColor, endColor:boundaryEventFillStyleBndColor, angle:0}, actions:{ref:"inneround"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"solid", color:boundaryEventContentColor}, actions:{ref:"error0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"endEvent", title:endEventText, text:endEventText, category:"process_bpmn2", groupName:"endEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:endEventFillStyleBeginColor, endColor:endEventFillStyleBndColor, angle:0}, lineStyle:{lineColor:endEventLineColor}, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"terminateEndEvent", title:terminateEndEventText, text:terminateEndEventText, category:"process_bpmn2", groupName:"endEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:endEventFillStyleBeginColor, endColor:endEventFillStyleBndColor, angle:0}, lineStyle:{lineColor:endEventLineColor, }, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"g_round"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"messageEndEvent", title:messageEndEventText, text:messageEndEventText, category:"process_bpmn2", groupName:"endEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:endEventFillStyleBeginColor, endColor:endEventFillStyleBndColor, angle:0}, lineStyle:{lineColor:endEventLineColor, }, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineWidth:1, lineColor:endEventFillStyleBndColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"message4"}},
{lineStyle:{lineWidth:1, lineColor:endEventFillStyleBeginColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"message4_0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"signalEndEvent", title:signalEndEventText, text:signalEndEventText, category:"process_bpmn2", groupName:"endEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:endEventFillStyleBeginColor, endColor:endEventFillStyleBndColor, angle:0}, lineStyle:{lineColor:endEventLineColor, }, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"signal0"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"errorEndEvent", title:errorEndEventText, text:errorEndEventText, category:"process_bpmn2", groupName:"endEvent", props:{w:40, h:40}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:endEventFillStyleBeginColor, endColor:endEventFillStyleBndColor, angle:0}, lineStyle:{lineColor:endEventLineColor, }, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"round"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50"}, actions:{ref:"cancel3"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"round"}}
]});
Schema.addShape({name:"serviceTask", title:serviceTaskText, text:serviceTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"implementation", type:"string", value:"", category:"default"},
{name:"operationRef", type:"string", value:"", category:"default"},
{name:"ioSpecification", type:"string", value:"", category:"default"},
{name:"dataInputAssociations", type:"string", value:"", category:"default"},
{name:"dataOutputAssociations", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:servicesTaskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:servicesTaskFillStyleBeginColor, endColor:servicesTaskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:servicesTaskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"service_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"manualTask", title:manualTaskText, text:manualTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:taskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:taskFillStyleBeginColor, endColor:taskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:taskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"manual_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"receiveTask", title:receiveTaskText, text:receiveTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:taskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:taskFillStyleBeginColor, endColor:taskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:taskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"receive_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"sendTask", title:sendTaskText, text:sendTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:taskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:taskFillStyleBeginColor, endColor:taskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:taskFillStyleBeginColor, lineStyle:"solid"}, fillStyle:{type:"solid", color:"50,50,50", }, actions:{ref:"receive_task_dark"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"scriptTask", title:scriptTaskText, text:scriptTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:taskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:taskFillStyleBeginColor, endColor:taskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:taskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"script_task"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"businessRuleTask", title:businessRuleTaskText, text:businessRuleTaskText, category:"process_bpmn2", groupName:"task", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, lineStyle:{lineColor:taskLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:taskFillStyleBeginColor, endColor:taskFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:1, lineColor:taskLineColor, lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"business_rule"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"callActivityCallingProcess", title:callActivityCallingProcessText, text:callActivityCallingProcessText, category:"process_bpmn2", groupName:"", dataAttributes:[
{name:"loopCharacteristics", type:"list", value:"", category:"default", listItems:["", "StandardLoopCharacteristics", "MultipleLoopCharacteristics"]},
{name:"isSequantial", type:"boolean", value:"true", category:"default"},
{name:"isForCompensation", type:"boolean", value:"false", category:"default"},
{name:"renderings", type:"string", value:"", category:"default"},
{name:"implementation", type:"string", value:"", category:"default"},
{name:"resources", type:"string", value:"", category:"default"},
{name:"ioSpecification", type:"string", value:"", category:"default"},
{name:"dataInputAssociations", type:"string", value:"", category:"default"},
{name:"dataOutputAssociations", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], attribute:{container:true,rotatable:false,visible:true,editable:true,linkable:true,markers:["expand"],markerOffset:5}, props:{w:100, h:70}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:"201,201,252", endColor:"160,160,211", angle:0}, path:[
{lineStyle:{lineWidth:"lineWidth + 2", lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"transaction", title:transactionText, text:transactionText, category:"process_bpmn2", groupName:"", attribute:{container:true}, dataAttributes:[
{name:"startQuantity", type:"number", value:"1", category:"default"},
{name:"completionQuantity", type:"number", value:"1", category:"default"},
{name:"default", type:"string", value:"", category:"default"},
{name:"ioSpecification", type:"string", value:"", category:"default"},
{name:"dataInputAssociations", type:"string", value:"", category:"default"},
{name:"dataOutputAssociations", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:200, h:140}, path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"inner_roundRectangle"}}
]});
Schema.addShape({name:"inclusiveGateway", title:inclusiveGatewayText, text:inclusiveGatewayText, category:"process_bpmn2", groupName:"bpmnGateway", dataAttributes:[
{name:"gatewayDirection", type:"list", value:"", category:"default", listItems:["Unspecified,Converging,Diverging,Mixed"]},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:50, h:50}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"gateway0"}},
{lineStyle:{lineStyle:"solid", lineColor:gatewayLineColor}, fillStyle:{type:"solid", color:gatewayContentColor}, actions:{ref:"g_round"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"gateway0"}}
]});
Schema.addShape({name:"complexGateway", title:complexGatewayText, text:complexGatewayText, category:"process_bpmn2", groupName:"bpmnGateway", dataAttributes:[
{name:"gatewayDirection", type:"list", value:"", category:"default", listItems:["Unspecified,Converging,Diverging,Mixed"]},
{name:"sequeneceFlow", type:"string", value:"", category:"default"},
{name:"activationCondition", type:"string", value:"", category:"default"},
{name:"activationCount", type:"number", value:"", category:"default"},
{name:"waitingForStart", type:"boolean", value:"true", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:50, h:50}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"gateway0"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:{ref:"complex_gateway0"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:{ref:"complex_gateway1"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:{ref:"complex_gateway2"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:{ref:"complex_gateway3"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"gateway0"}}
]});
Schema.addShape({name:"eventBasedGateway", title:eventBasedGatewayText, text:eventBasedGatewayText, category:"process_bpmn2", groupName:"bpmnGateway", dataAttributes:[
{name:"gatewayDirection", type:"list", value:"", category:"default", listItems:["Unspecified,Converging,Diverging,Mixed"]},
{name:"instantiate", type:"boolean", value:"false", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:50, h:50}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"gateway0"}},
{lineStyle:{lineStyle:"solid", lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, actions:{ref:"event_based_gateway"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"gateway0"}}
]});
Schema.addShape({name:"parallelGateway", title:parallelGatewayText, text:parallelGatewayText, category:"process_bpmn2", groupName:"bpmnGateway", dataAttributes:[
{name:"gatewayDirection", type:"list", value:"", category:"default", listItems:["Unspecified,Converging,Diverging,Mixed"]},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:50, h:50}, textBlock:{x:"w/2-60", y:"h", w:"120", h:"30"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, lineStyle:{lineColor:gatewayLineColor}, fillStyle:{type:"gradient", color:"255,255,255", gradientType:"linear", beginColor:gatewayFillStyleBeginColor, endColor:gatewayFillStyleBndColor, angle:0}, path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"gateway0"}},
{lineStyle:{lineWidth:0, lineStyle:"solid"}, fillStyle:{type:"solid", color:gatewayLineColor}, actions:{ref:"parallel_gateway"}},
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"gateway0"}}
]});
Schema.addShape({name:"group", title:groupText, text:groupText, category:"process_bpmn2", attribute:{container:true,editable:true}, props:{w:200, h:140}, textBlock:{x:"10", y:"0", w:"w-20", h:"h"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, fontStyle:{textAlign:"top", vAlign:"left"}, path:[
{lineStyle:{lineWidth:2, lineStyle:"dashed"}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
]});
Schema.addShape({name:"textAnnotation", title:textAnnotationText, text:textAnnotationText, category:"process_bpmn2", dataAttributes:[
{name:"text", type:"string", value:"", category:"default"},
{name:"default", type:"string", value:"", category:"default",linksArray:[],attributesContent:"",attributesJsonArray:[],privateAttribute:[],privateAttributeContent:[],shapeDesc:"",shapeGroupId:"",upFilesArray :[],isCopy:"",relevanceShapes :[]}
], props:{w:100, h:70}, anchors:[
{x:"0", y:"h*0.5"},
{x:"0", y:"h*0.5"},
{x:"0", y:"h*0.5"},
{x:"0", y:"h*0.5"}
], path:[
{fillStyle:{type:"none"}, lineStyle:{lineWidth:0}, actions:{ref:"rectangle"}},
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:"w/6", y:"0"},
{action:"line", x:"0", y:"0"},
{action:"line", x:"0", y:"h"},
{action:"line", x:"w/6", y:"h"}
]},
{fillStyle:{type:"none"}, lineStyle:{lineWidth:0}, actions:{ref:"rectangle"}}
]});
Schema.addCategory({name:"lane", text:"泳池/泳道"});
function getPool(a, d) {
for (var b = Model.orderList.length - 1; b >= 0; b--) {
var e = Model.orderList[b].id;
var c = Model.getShapeById(e);
if (c.name == d) {
if (Utils.rectCross(c.props, a.props)) {
return c
}
}
}
return null
}
function getVerticalPoolWidth(c) {
var a = 0;
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name != "horizontalSeparator") {
a += e.props.w
}
}
return a
}
function getHorizontalPoolHeight(c) {
var a = 0;
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name != "horizontalSeparator") {
a += e.props.w
}
}
return a
}
function getChild(c, a) {
for (var b = 0; b < c.children.length; b++) {
var d = c.children[b];
var e = Model.getShapeById(d);
if (e.name == a) {
return e
}
}
return null
}
Schema.addShape({name:"verticalPool", title:verticalPoolText, text:verticalPoolText, category:"lane", attribute:{rotatable:false, linkable:false, container:true}, children:[], props:{w:250, h:540}, fontStyle:{size:16}, textBlock:{x:10, y:0, w:"w-20", h:40},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, anchors:[], resizeDir:["l", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:40},
{action:"line", x:0, y:40},
{action:"close"}
]}
], drawIcon:function (b, c) {
b += 8;
var a = -4;
return[
{fillStyle:{type:"none"}, actions:[
{action:"move", x:a, y:0},
{action:"line", x:b, y:0},
{action:"line", x:b, y:c},
{action:"line", x:a, y:c},
{action:"close"}
]},
{actions:[
{action:"move", x:a, y:0},
{action:"line", x:b, y:0},
{action:"line", x:b, y:4},
{action:"line", x:a, y:4},
{action:"close"}
]},
{actions:[
{action:"move", x:(a + b) / 2, y:4},
{action:"line", x:(a + b) / 2, y:c}
]}
]
}});
Schema.addShape({name:"verticalLane", title:verticalLaneText, text:verticalLaneText, category:"lane", attribute:{container:true, rotatable:false, linkable:false}, props:{w:250, h:500}, textBlock:{x:10, y:0, w:"w-20", h:30},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, anchors:[], resizeDir:["l", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:"w", y:0},
{action:"line", x:"w", y:30},
{action:"line", x:0, y:30},
{action:"close"}
]}
], drawIcon:function (a, b) {
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:a, y:0},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:a, y:0},
{action:"line", x:a, y:4},
{action:"line", x:0, y:4},
{action:"close"}
]}
]
}, onCreated:function () {
Utils.unselect();
var d = getPool(this, "verticalPool");
if (d == null) {
d = Model.create("verticalPool", this.props.x, this.props.y - 40);
d.children = [this.id];
Model.add(d)
} else {
if (!d.children) {
d.children = []
}
var f = [d];
var a = d.props.x;
var tmpW = this.props.w;
var c = 0;
var b = 0;
var tmp = -1;
//props.y来排序
function compare(prop) {
return function(a, b) {
var aa = Model.getShapeById(a);
var bb = Model.getShapeById(b);
var value1 = aa.props[prop];
var value2 = bb.props[prop];
return value1 - value2;
}
}
d.children.sort(compare('x'));
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "verticalLane") {
if (Utils.rectCross(g.props, this.props)) {
tmp = c + 1;
break;
}
}
}
for (var m = 0; tmp > 0 && m < tmp; m++) {
var e = d.children[m];
var g = Model.getShapeById(e);
if (g.name == "verticalLane") {
a += g.props.w;
c++
} else {
if (g.name == "verticalSeparatorBar") {
a += g.props.w;
b++
}
}
}
/*for (var d = 0; d < e.children.length; d++) {
var f = e.children[d];
var h = Model.getShapeById(f);
if (h.name == "verticalLane") {
a += h.props.w;
c++
} else {
if (h.name == "verticalSeparatorBar") {
a += h.props.w;
b++
}
}
}*/
this.props.x = a;
this.props.y = d.props.y + 40;
this.props.h = d.props.h - 40;
if (c == 0) {
if (b == 0) {
this.props.w = d.props.w
} else {
this.props.w = d.props.w - 20
}
}
Designer.painter.renderShape(this);
f.push(this);
var rightLanes = [];
for (var c = tmp; tmp > 0 && c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
rightLanes.push(g);
}
var containedShapes = Utils.getContainedShapes(rightLanes);
var containedLinkers = Utils.getOutlinkers(containedShapes);
containedShapes = containedShapes.concat(containedLinkers);
for (var i = 0; i < containedShapes.length; i++) {
var shape = Model.getShapeById(containedShapes[i].id);
Designer.painter.renderShape(shape);
f.push(shape);
}
Designer.op.moveShape(containedShapes, {
x : tmpW * Designer.config.scale,
y : 0
});
Designer.op.hideTip();
for (var c = tmp; tmp > 0 && c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
g.props.x = g.props.x + tmpW;
Designer.painter.renderShape(g);
f.push(g);
}
if (d.children.length > 0) {
d.props.w = d.props.w + tmpW;
}
//e.props.w = this.props.x + this.props.w - e.props.x;
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var h = Model.getShapeById(e);
if (h.name == "horizontalSeparator") {
h.props.w = d.props.w;
Designer.painter.renderShape(h);
f.push(h)
}
}
d.children.push(this.id);
Model.updateMulti(f);
}
Designer.painter.renderShape(d);
this.parent = d.id
}});
Schema.addShape({name:"verticalSeparatorBar", title:"Vertical SeparatorBar", text:"", category:"lane", attribute:{rotatable:false, linkable:false, visible:false, editable:false}, props:{w:20, h:500}, anchors:[], resizeDir:[], path:[
{lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}}
]});
Schema.addShape({name:"horizontalPool", title:horizontalPoolText, text:horizontalPoolText, category:"lane", attribute:{rotatable:false, linkable:false, container:true}, children:[], props:{w:640, h:200}, fontStyle:{size:16, orientation:"horizontal"}, textBlock:{x:0, y:10, w:40, h:"h-20"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, anchors:[], resizeDir:["t", "r", "b"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:40, y:0},
{action:"line", x:40, y:"h"},
{action:"line", x:0, y:"h"},
{action:"close"}
]}
], drawIcon:function (a, b) {
b += 8;
var c = -4;
return[
{fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:c},
{action:"line", x:a, y:c},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{actions:[
{action:"move", x:0, y:c},
{action:"line", x:4, y:c},
{action:"line", x:4, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{actions:[
{action:"move", x:4, y:(c + b) / 2},
{action:"line", x:a, y:(c + b) / 2}
]}
]
}});
Schema.addShape({name:"horizontalLane", title:horizontalLaneText, text:horizontalLaneText, category:"lane", attribute:{container:true, rotatable:false, linkable:false}, props:{w:600, h:200}, fontStyle:{orientation:"horizontal"}, textBlock:{x:0, y:10, w:30, h:"h-20"},textBlockFinal:{x:5, y:0, w:"w-10", h:"h"}, anchors:[], resizeDir:["t", "b", "r"], path:[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
{lineStyle:{lineStyle:"solid"}, fillStyle:{type:"none"}, actions:[
{action:"move", x:0, y:0},
{action:"line", x:30, y:0},
{action:"line", x:30, y:"h"},
{action:"line", x:0, y:"h"},
{action:"close"}
]}
], drawIcon:function (a, b) {
b += 3;
return[
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:-1},
{action:"line", x:a, y:-1},
{action:"line", x:a, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]},
{lineStyle:{lineStyle:"solid"}, actions:[
{action:"move", x:0, y:-1},
{action:"line", x:4, y:-1},
{action:"line", x:4, y:b},
{action:"line", x:0, y:b},
{action:"close"}
]}
]
}, onCreated:function () {
Utils.unselect();
var d = getPool(this, "horizontalPool");
if (d == null) {
d = Model.create("horizontalPool", this.props.x - 40, this.props.y);
d.children = [this.id];
Model.add(d)
} else {
if (!d.children) {
d.children = []
}
var f = [d];
var h = d.props.y;
var tmpH = this.props.h;
var b = 0;
var a = 0;
var tmp = -1;
//props.y来排序
function compare(prop) {
return function(a, b) {
var aa = Model.getShapeById(a);
var bb = Model.getShapeById(b);
var value1 = aa.props[prop];
var value2 = bb.props[prop];
return value1 - value2;
}
}
d.children.sort(compare('y'));
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "horizontalLane") {
if (Utils.rectCross(g.props, this.props)) {
tmp = c + 1;
break;
}
}
}
for (var c = 0; tmp > 0 && c < tmp; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "horizontalLane") {
h += g.props.h;
b++
} else {
if (g.name == "horizontalSeparatorBar") {
h += g.props.h;
a++
}
}
}
this.props.y = h;
this.props.x = d.props.x + 40;
this.props.w = d.props.w - 40;
if (b == 0) {
if (a == 0) {
this.props.h = d.props.h
} else {
this.props.h = d.props.h - 20
}
}
Designer.painter.renderShape(this);
f.push(this);
var bottomLanes = [];
for (var c = tmp; tmp > 0 && c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
bottomLanes.push(g);
}
var containedShapes = Utils.getContainedShapes(bottomLanes);
var containedLinkers = Utils.getOutlinkers(containedShapes);
containedShapes = containedShapes.concat(containedLinkers);
for (var i = 0; i < containedShapes.length; i++) {
var shape = Model.getShapeById(containedShapes[i].id);
Designer.painter.renderShape(shape);
f.push(shape);
}
Designer.op.moveShape(containedShapes, {
x : 0,
y : tmpH * Designer.config.scale
});
Designer.op.hideTip();
for (var c = tmp; tmp > 0 && c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
g.props.y = g.props.y + tmpH;
Designer.painter.renderShape(g);
f.push(g);
}
if (d.children.length > 0) {
d.props.h = d.props.h + tmpH;
}
//d.props.h = this.props.y + this.props.h - d.props.y;
for (var c = 0; c < d.children.length; c++) {
var e = d.children[c];
var g = Model.getShapeById(e);
if (g.name == "verticalSeparator") {
g.props.h = d.props.h;
Designer.painter.renderShape(g);
f.push(g)
}
}
d.children.push(this.id);
Model.updateMulti(f);
}
Designer.painter.renderShape(d);
this.parent = d.id
}});