flowchart图形修改,属性配置
This commit is contained in:
parent
decf2b5e7e
commit
f0dbb38185
@ -1,21 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
特性设置(非必须),(多个app提供该Method Attribute时追加定义),作用范围:该MethodId对象。
|
||||
被ResourceScanner扫描器检查更新
|
||||
-->
|
||||
<attributes>
|
||||
<!--
|
||||
分组
|
||||
<attributes>
|
||||
|
||||
name 组名称
|
||||
|
||||
parentName 上级组名称,若根此处可空
|
||||
|
||||
desc 简要说明
|
||||
|
||||
<group name="AWS" parentName="" desc="AWS BPMS名称"/>
|
||||
<group name="Process" parentName="AWS" desc="Process名称"/>-->
|
||||
<group name="baseAttribute" parentName="" desc="基本属性"/>
|
||||
<group name="process" parentName="" desc="流程分析"/>
|
||||
<group name="organization" parentName="" desc="组织"/>
|
||||
@ -24,70 +13,41 @@
|
||||
<group name="itsystem_normal" parentName="" desc="IT系统"/>
|
||||
<group name="control" parentName="" desc="控制"/>
|
||||
<group name="process_model" parentName="" desc="流程"/>
|
||||
<!--
|
||||
扩展特性(属性)
|
||||
|
||||
key 全局唯一标识名
|
||||
|
||||
title 属性标题
|
||||
|
||||
type 属性类型,支持string(普通字符串),number(数字),boolean(是非),list(多选值),link(链接),relation(关联关系),textarea(多行文本)
|
||||
|
||||
value 默认值//支持@公式
|
||||
|
||||
ref 当type=list时,参考值
|
||||
|
||||
readonly 是否只读
|
||||
|
||||
groupPath 特性绑定在哪个组别上
|
||||
|
||||
scope 应用范围(methodId、methodId.shapeId),多个用逗号隔开%代表文件属性 *代表对所有的图形有效,不是文件属性
|
||||
- 组织-执行部门
|
||||
- 流程分析-处理时间
|
||||
- 流程分析-等待时间
|
||||
- 流程分析-执行频率
|
||||
- 绩效-流程绩效
|
||||
- 产品服务-产品
|
||||
- 产品服务-服务
|
||||
- 流程执行-信息系统
|
||||
- 风险控制 - 制度
|
||||
- 风险控制 - 制度条款
|
||||
- 风险控制- 风险
|
||||
- 风险控制 - 控制
|
||||
|
||||
-->
|
||||
<attribute key="number" title="编号" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,decision,predefinedProcess,manualOperation,group,document" isValid="true"/>
|
||||
<attribute key="desc" title="描述" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,*" isValid="true"/>
|
||||
<attribute key="input" title="输入" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,predefinedProcess,manualOperation,group" isValid="true"/>
|
||||
<attribute key="out" title="输出" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,predefinedProcess,manualOperation,group" isValid="true"/>
|
||||
<attribute key="bpm_department" title="责任部门" type="awsorg" value="" ref="{scope:['department'],'single':true}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="bpm_person" title="责任人" type="awsorg" value="" ref="{scope:['user'],'single':true}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="department" title="责任部门" type="relation" value="" ref="{method:'org.normal',multiple:true,type:'shape'}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="person" title="责任人" type="relation" value="" ref="{method:'org.normal',multiple:true,type:'shape'}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
|
||||
<attribute key="securityclass" title="密级" type="select" value="" ref="绝密,机密,秘密,内部,外部公开" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="importancescore" title="重要度分数" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="importancelevel" title="重要度等级" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="executive_arm" title="执行部门" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="predefinedProcess,manualOperation,%" isValid="true"/>
|
||||
<attribute key="handle_time" title="处理时间" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="wait_time" title="等待时间" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="frequency" title="执行频率" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="performance" title="流程绩效" type="string" value="" ref="" readonly="false" groupPath="org_performance" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="note" title="注释" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,*" isValid="true"/>
|
||||
<attribute key="level" title="层次" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="duty_r" title="责任者(R)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="approval_a" title="审批者(A)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="counselor_c" title="咨询者(C)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="notify_i" title="知会者(I)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_duty_r" title="责任者(R)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_approval_a" title="审批者(A)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_counselor_c" title="咨询者(C)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_notify_i" title="知会者(I)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="business" title="业务规则" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="process,group" isValid="true"/>
|
||||
<attribute key="form" title="表单" type="relation" value="" ref="{method:'data',multiple:true,type:'shape'}" readonly="true" groupPath="data_form" scope="process,group" isValid="true"/>
|
||||
<attribute key="itsystem" title="IT系统" type="relation" value="" ref="{method:'itsystem',multiple:true,type:'shape'}" readonly="true" groupPath="itsystem_normal" scope="process,group" isValid="true"/>
|
||||
<attribute key="danger" title="风险" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="regulate" title="控制" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="institution" title="制度" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="kpi" title="指标" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
|
||||
<attribute key="auditor" title="审核人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="审核人" isRequired="false"/>
|
||||
<attribute key="reviewer" title="复核人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="复核人" isRequired="false"/>
|
||||
<attribute key="approver" title="审批人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="审批人" isRequired="false"/>
|
||||
<attribute key="application" title="适用范围" type="textarea" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="适用范围" isRequired="true"/>
|
||||
<attribute key="file_number" title="文件编码" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="文件编码" isRequired="false"/>
|
||||
<attribute key="Process_Architecture_L1" title="流程架构L1" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构L1" isRequired="true"/>
|
||||
<attribute key="Process_Architecture_L2" title="流程架构L2" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构l2" isRequired="true"/>
|
||||
<attribute key="Process_Architecture_L3" title="流程架构L3" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构L3" isRequired="true"/>
|
||||
<attribute key="ARIS" title="ARIS地址" type="textarea" value="" ref="" readonly="false" groupPath="organization" scope="%" isValid="true" desc="ARIS地址" isRequired="false"/>
|
||||
<attribute key="P_versions" title="版本" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="版本" isRequired="true"/>
|
||||
<attribute key="Drafted_and_revised_by" title="拟制/修订人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="拟制/修订人" isRequired="true"/>
|
||||
<attribute key="T_supplementary_articles" title="附则" type="textarea" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="附则" isRequired="false"/>
|
||||
<attribute key="goal" title="目的" type="textarea" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="目的" isRequired="true"/>
|
||||
<attribute key="activity_number" title="活动序号" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="活动序号" isRequired="false"/>
|
||||
<attribute key="Process_performance_metrics" title="流程绩效" type="relation" value="" ref="{"method":"control.kpi","type":"shape","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true" desc="流程绩效" isRequired="false"/>
|
||||
<attribute key="activity_description" title="活动描述" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="活动描述" isRequired="true"/>
|
||||
<attribute key="output" title="输出" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="输出" isRequired="true"/>
|
||||
<attribute key="R_relevant_flies" title="相关文件" type="relation" value="" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true" desc="相关文件" isRequired="false"/>
|
||||
<attribute key="relevant_flies" title="相关知识" type="link" value="" desc="相关知识" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="input" title="输入" type="textarea" value="" desc="输入" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="relevant_demand" title="相关要求" type="relation" value="" desc="相关要求" isRequired="false" ref="{"method":"itsystem","type":"shape","multiple":false,"value":""}" readonly="true" groupPath="baseAttribute" scope="*" isValid="false"/>
|
||||
<attribute key="post" title="岗位" type="relation" value="" desc="岗位" isRequired="false" ref="{"method":"org.normal","type":"shapeAndFile","multiple":true}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="role" title="角色" type="relation" value="" desc="角色" isRequired="false" ref="{"method":"org.role","type":"shape","multiple":false}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="term" title="术语" type="table" value="" desc="术语" isRequired="false" ref="{"firstColumn":"术语","secondColumn":"定义"}" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="information_systems" title="信息系统" type="relation" value="" desc="信息系统" isRequired="false" ref="{"method":"itsystem.normal","type":"shape","multiple":true}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="Organizational_role" title="组织/角色与职责" type="table" value="" desc="组织/角色与职责" isRequired="true" ref="{"firstColumn":"名称","secondColumn":"职责"}" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Drafted_and_revised_date" title="拟制/修订日期" type="DateTimePicker" value="" desc="拟制/修订日期" isRequired="true" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="effective_date" title="生效日期" type="DateTimePicker" value="" desc="生效日期" isRequired="true" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Issuing_department" title="发布部门" type="awsorg" value="" desc="发布部门" isRequired="true" ref="{"scope":["department"],"multiple":false}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Process_owner" title="流程责任人" type="awsorg" value="" desc="流程责任人" isRequired="true" ref="{"scope":["user"],"multiple":false}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="isPublish" title="是否发布" type="string" value="" desc="是否发布" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="ARIS_process_name" title="ARIS流程名称" type="string" value="" desc="ARIS流程名称" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="lead_process" title="前置流程" type="relation" value="" desc="前置流程" isRequired="false" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="rear_process" title="后置流程" type="relation" value="" desc="后置流程" isRequired="false" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="support_files" title="支持文件" type="relation" value="" desc="支持文件" isRequired="false" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Contents_and_reasons_for_revision" title="修订内容及理由" type="textarea" value="" desc="修订内容及理由" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
</attributes>
|
||||
|
||||
@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
特性设置(非必须),(多个app提供该Method Attribute时追加定义),作用范围:该MethodId对象。
|
||||
被ResourceScanner扫描器检查更新
|
||||
-->
|
||||
<attributes>
|
||||
<!--
|
||||
分组
|
||||
|
||||
name 组名称
|
||||
|
||||
parentName 上级组名称,若根此处可空
|
||||
|
||||
desc 简要说明
|
||||
|
||||
<group name="AWS" parentName="" desc="AWS BPMS名称"/>
|
||||
<group name="Process" parentName="AWS" desc="Process名称"/>-->
|
||||
<group name="baseAttribute" parentName="" desc="基本属性"/>
|
||||
<group name="process" parentName="" desc="流程分析"/>
|
||||
<group name="organization" parentName="" desc="组织"/>
|
||||
<group name="org_performance" parentName="" desc="绩效"/>
|
||||
<group name="data_form" parentName="" desc="数据"/>
|
||||
<group name="itsystem_normal" parentName="" desc="IT系统"/>
|
||||
<group name="control" parentName="" desc="控制"/>
|
||||
<group name="process_model" parentName="" desc="流程"/>
|
||||
<!--
|
||||
扩展特性(属性)
|
||||
|
||||
key 全局唯一标识名
|
||||
|
||||
title 属性标题
|
||||
|
||||
type 属性类型,支持string(普通字符串),number(数字),boolean(是非),list(多选值),link(链接),relation(关联关系),textarea(多行文本)
|
||||
|
||||
value 默认值//支持@公式
|
||||
|
||||
ref 当type=list时,参考值
|
||||
|
||||
readonly 是否只读
|
||||
|
||||
groupPath 特性绑定在哪个组别上
|
||||
|
||||
scope 应用范围(methodId、methodId.shapeId),多个用逗号隔开%代表文件属性 *代表对所有的图形有效,不是文件属性
|
||||
- 组织-执行部门
|
||||
- 流程分析-处理时间
|
||||
- 流程分析-等待时间
|
||||
- 流程分析-执行频率
|
||||
- 绩效-流程绩效
|
||||
- 产品服务-产品
|
||||
- 产品服务-服务
|
||||
- 流程执行-信息系统
|
||||
- 风险控制 - 制度
|
||||
- 风险控制 - 制度条款
|
||||
- 风险控制- 风险
|
||||
- 风险控制 - 控制
|
||||
|
||||
-->
|
||||
<attribute key="number" title="编号" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,decision,predefinedProcess,manualOperation,group,document" isValid="true"/>
|
||||
<attribute key="desc" title="描述" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,*" isValid="true"/>
|
||||
<attribute key="input" title="输入" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,predefinedProcess,manualOperation,group" isValid="true"/>
|
||||
<attribute key="out" title="输出" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,process,predefinedProcess,manualOperation,group" isValid="true"/>
|
||||
<attribute key="bpm_department" title="责任部门" type="awsorg" value="" ref="{scope:['department'],'single':true}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="bpm_person" title="责任人" type="awsorg" value="" ref="{scope:['user'],'single':true}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="department" title="责任部门" type="relation" value="" ref="{method:'org.normal',multiple:true,type:'shape'}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
<attribute key="person" title="责任人" type="relation" value="" ref="{method:'org.normal',multiple:true,type:'shape'}" readonly="true" groupPath="baseAttribute" scope="%,predefinedProcess,manualOperation" isValid="true"/>
|
||||
|
||||
<attribute key="securityclass" title="密级" type="select" value="" ref="绝密,机密,秘密,内部,外部公开" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="importancescore" title="重要度分数" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="importancelevel" title="重要度等级" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="executive_arm" title="执行部门" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="predefinedProcess,manualOperation,%" isValid="true"/>
|
||||
<attribute key="handle_time" title="处理时间" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="wait_time" title="等待时间" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="frequency" title="执行频率" type="string" value="" ref="" readonly="false" groupPath="process" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="performance" title="流程绩效" type="string" value="" ref="" readonly="false" groupPath="org_performance" scope="process,predefinedProcess,manualOperation,group,%" isValid="true"/>
|
||||
<attribute key="note" title="注释" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="%,*" isValid="true"/>
|
||||
<attribute key="level" title="层次" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="duty_r" title="责任者(R)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="approval_a" title="审批者(A)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="counselor_c" title="咨询者(C)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="notify_i" title="知会者(I)" type="relation" value="" ref="{method:'org',multiple:true,type:'shape'}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_duty_r" title="责任者(R)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_approval_a" title="审批者(A)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_counselor_c" title="咨询者(C)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="bpm_notify_i" title="知会者(I)" type="awsorg" value="" ref="{'scope':['department','position','role','user'],'multiple':true}" readonly="true" groupPath="organization" scope="process,group,verticalLane,horizontalLane" isValid="true"/>
|
||||
<attribute key="business" title="业务规则" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="process,group" isValid="true"/>
|
||||
<attribute key="form" title="表单" type="relation" value="" ref="{method:'data',multiple:true,type:'shape'}" readonly="true" groupPath="data_form" scope="process,group" isValid="true"/>
|
||||
<attribute key="itsystem" title="IT系统" type="relation" value="" ref="{method:'itsystem',multiple:true,type:'shape'}" readonly="true" groupPath="itsystem_normal" scope="process,group" isValid="true"/>
|
||||
<attribute key="danger" title="风险" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="regulate" title="控制" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="institution" title="制度" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
<attribute key="kpi" title="指标" type="relation" value="" ref="{method:'control',multiple:true,type:'shape'}" readonly="true" groupPath="control" scope="process,group" isValid="true"/>
|
||||
</attributes>
|
||||
@ -13,289 +13,214 @@
|
||||
{name:"Risk", type:"string", value:"", category:"default"},
|
||||
{name:"Remarks", type:"string", value:"", category:"default"}
|
||||
]});
|
||||
/***矩形*/Schema.addShape({name:"process", title:"流程", text:"流程", category:"process_flowchart", props:{w:110, h:50},fillStyle:{type: "gradient",gradientType: "linear",beginColor: "245,250,255",endColor: "232,242,255",angle: Math.PI*0.5}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"137,188,255"},actions:{ref:"rectangle"}}
|
||||
]});
|
||||
/***菱形:Decision*/Schema.addShape({name:"decision", title:"判定", text:"判定", category:"process_flowchart", props:{w:90, h:50},fillStyle:{color:"175,210,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"0"},
|
||||
{action:"line", x:"w", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"h"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***胶囊型:Terminator*/Schema.addShape({name:"terminator", title:"开始/结束", text:"开始/结束", category:"process_flowchart", props:{w:100, h:50},lineStyle:{lineColor:"137,188,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"line", x:"w-Math.min(w,h)/3", y:"0"},
|
||||
{action:"curve", x1:"w+Math.min(w,h)/3/3", y1:"0", x2:"w+Math.min(w,h)/3/3", y2:"h", x:"w-Math.min(w,h)/3", y:"h"},
|
||||
{action:"line", x:"Math.min(w,h)/3", y:"h"},
|
||||
{action:"curve", x1:"-Math.min(w,h)/3/3", y1:"h", x2:"-Math.min(w,h)/3/3", y2:"0", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***下边波浪矩形:Document*/Schema.addShape({name:"document", title:"文档", text:"文档", category:"process_flowchart", props:{w:110, h:50}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
],fillStyle:{type: "gradient",gradientType: "linear",beginColor: "255,255,255",endColor: "237,237,237",angle: Math.PI*0.5}, textBlock:{x:"0", y:"0", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"197,197,197"},actions:[
|
||||
{action:"move", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(h/8,w/12)", x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(h/8,w/12)", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***平行四边形:Data*/Schema.addShape({name:"data", title:"数据", text:"数据", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(h/3,w/3)/2", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"Math.min(h/3,w/3)/2", y:"h*0.5"}
|
||||
], textBlock:{x:"w*0.15", y:"0", w:"w*0.7", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/3,w/3)", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***三分矩形:Predefinedprocess*/Schema.addShape({name:"predefinedProcess", title:"子流程", text:"子流程", category:"process_flowchart", props:{w:110, h:50},fillStyle:{type: "gradient",gradientType: "linear",beginColor: "245,250,255",endColor: "232,242,255",angle: Math.PI*0.5}, textBlock:{x:"Math.min(w/6,20)", y:"0", w:"w-Math.min(w/6,20)*2", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"137,188,255"},actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"Math.min(w/6,20)", y:"h"},
|
||||
{action:"move", x:"w- Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"w- Math.min(w/6,20)", y:"h"}
|
||||
]}
|
||||
]});
|
||||
/***横圆柱矩形:Storeddata*/Schema.addShape({name:"storedData", title:"外部数据", text:"外部数据", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(w/8,h/8)", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
], textBlock:{x:"w*0.1", y:"0", w:"w*0.75", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w/6", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"curve", x1:"w-w/6", y1:"0", x2:"w-w/6", y2:"h", x:"w", y:"h"},
|
||||
{action:"line", x:"w/6", y:"h"},
|
||||
{action:"curve", x1:"-w/17", y1:"h", x2:"-w/17", y2:"0", x:"w/7", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***四分矩形:Internalstorage*/Schema.addShape({name:"internalStorage", title:"内部存储", text:"内部存储", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"Math.min(w/6,20)", y:"Math.min(h/5,20)", w:"w - Math.min(w/6,20)", h:"h- Math.min(h/5,20)"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"Math.min(w/6,20)", y:"h"},
|
||||
{action:"move", x:"0", y:"Math.min(h/5,20)"},
|
||||
{action:"line", x:"w", y:"Math.min(h/5,20)"}
|
||||
]}
|
||||
]});
|
||||
/***圆Q:Sequentialdata*/Schema.addShape({name:"sequentialData", title:"队列数据", text:"队列数据", category:"process_flowchart", props:{w:70, h:70}, textBlock:{x:"w*0.1", y:"h*0.2", w:"w*0.8", h:"h*0.6"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w/2", y:"h"},
|
||||
{action:"curve", x1:"w/2-w*2/3", y1:"h", x2:"w/2-w*2/3", y2:"0", x:"w/2", y:"0"},
|
||||
{action:"curve", x1:"w/2+w*2/3", y1:"0", x2:"w/2+w*2/3", y2:"h", x:"w/2", y:"h"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***横立体圆柱:Directdata*/Schema.addShape({name:"directData", title:"数据库", text:"数据库", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"0", y:"0", w:"w*0.8", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0.15", y:"0"},
|
||||
{action:"line", x:"w-h/6", y:"0"},
|
||||
{action:"curve", x1:"w+h/22", y1:"0", x2:"w+h/22", y2:"h", x:"w-h/6", y:"h"},
|
||||
{action:"line", x:"w*0.15", y:"h"},
|
||||
{action:"curve", x1:"-w*0.05", y1:"h", x2:"-w*0.05", y2:"0", x:"w*0.15", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"w-h/6", y:"0"},
|
||||
{action:"curve", x1:"w-h/8*3", y1:"0", x2:"w-h/8*3", y2:"h", x:"w-h/6", y:"h"},
|
||||
{action:"curve", x1:"w-h/8*3", y1:"h", x2:"w-h/8*3", y2:"0", x:"w-h/6", y:"0"}
|
||||
]}
|
||||
]});
|
||||
/***横梯形:Manualinput*/Schema.addShape({name:"manualInput", title:"人工输入", text:"人工输入", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"0", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"Math.min(h/2,w/6)/2"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"}
|
||||
], textBlock:{x:"0", y:"h*0.1", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***纸牌:Card*/Schema.addShape({name:"card", title:"卡片", text:"卡片", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/4)"},
|
||||
{action:"line", x:"Math.min(h/2,w/4)", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/4)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***旗:Papertape*/Schema.addShape({name:"paperTape", title:"条带", text:"条带", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"0", y:"h*0.1", w:"w", h:"h*0.8"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[
|
||||
{x:"w*0.5", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"3*Math.min(Math.min(w,h)/8,w/12)", x:"w*0.5", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"-Math.min(Math.min(w,h)/8,w/12)", x:"w", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"line", x:"w", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(Math.min(w,h)/8,w/12)", x:"w*0.5", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(Math.min(w,h)/8,w/12)", x:"0", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"line", x:"0", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***左角按钮:Display*/Schema.addShape({name:"display", title:"展示", text:"展示", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w-w/6", y:"0"},
|
||||
{action:"line", x:"w/6", y:"0"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"line", x:"w/6", y:"h"},
|
||||
{action:"line", x:"w-w/6", y:"h"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w", y:"h*0.5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w-w/6", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***倒梯形:Manualoperation*/Schema.addShape({name:"manualOperation", title:"人工操作", text:"人工操作", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"w*0.1", y:"0", w:"w*0.8", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(h/2,w/6)/2", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"Math.min(h/2,w/6)/2", y:"h*0.5"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***水晶棱形:Preparation*/Schema.addShape({name:"preparation", title:"预备", text:"预备", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"h*0.5"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w", y:"h/2"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***两条水平线:Parallelmode*/Schema.addShape({name:"parallelMode", title:"并行模式", text:"并行模式", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"w*0.5", y:"h"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"move", x:"0", y:"h"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineWidth:0}, actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***棺型:Looplimit*/Schema.addShape({name:"loopLimit", title:"循环限值", text:"循环限值", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***圆形:On-pagereference*/Schema.addShape({name:"onPageReference", title:"页面内引用", text:"页面内引用", category:"process_flowchart", props:{w:70, h:70}, fontStyle:{size:8}, path:[
|
||||
{actions:{ref:"round"}}
|
||||
]});
|
||||
/***下三角锥型:Off-pagereference*/Schema.addShape({name:"offPageReference", title:"跨页引用", text:"跨页引用", category:"process_flowchart", props:{w:70, h:60}, textBlock:{x:"0", y:"0", w:"w", h:"h-Math.min(h,w)/3"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h-Math.min(h,w)/3"},
|
||||
{action:"line", x:"w*0.5", y:"h"},
|
||||
{action:"line", x:"0", y:"h-Math.min(h,w)/3"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***特殊线矩形:Annotation*/Schema.addShape({name:"annotation", title:"注释", text:"注释", category:"process_flowchart", 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***组:Group*/Schema.addShape({name:"group", title:"组", text:"组", category:"process_flowchart", 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.addGlobalCommand("method_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("method_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("method_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("method_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"},
|
||||
@ -383,7 +308,7 @@ Schema.addGlobalCommand("method_script_task", [
|
||||
{action:"close"}
|
||||
]},
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"method_script_task"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"method_service_task"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
]});
|
||||
|
||||
@ -420,11 +345,148 @@ Schema.addShape({name:"method_service_node4", title:"人工任务", text:"人工
|
||||
]},
|
||||
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"business_rule"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"method_user_task"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
|
||||
|
||||
]});
|
||||
/***胶囊型:Terminator*/Schema.addShape({name:"terminator", title:"开始/结束", text:"开始/结束", category:"process_flowchart", props:{w:150, h:66},lineStyle:{lineColor:"137,188,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"line", x:"w-Math.min(w,h)/3", y:"0"},
|
||||
{action:"curve", x1:"w+Math.min(w,h)/3/3", y1:"0", x2:"w+Math.min(w,h)/3/3", y2:"h", x:"w-Math.min(w,h)/3", y:"h"},
|
||||
{action:"line", x:"Math.min(w,h)/3", y:"h"},
|
||||
{action:"curve", x1:"-Math.min(w,h)/3/3", y1:"h", x2:"-Math.min(w,h)/3/3", y2:"0", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***菱形:Decision*/Schema.addShape({name:"decision", title:"判定", text:"判定", category:"process_flowchart", props:{w:90, h:50},fillStyle:{color:"175,210,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"0"},
|
||||
{action:"line", x:"w", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"h"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
|
||||
/***下边波浪矩形:Document*/Schema.addShape({name:"document", title:"文档", text:"文档", category:"process_flowchart", props:{w:150, h:66}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
],fillStyle:{type: "gradient",gradientType: "linear",beginColor: "255,255,255",endColor: "237,237,237",angle: Math.PI*0.5}, textBlock:{x:"0", y:"0", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"197,197,197"},actions:[
|
||||
{action:"move", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(h/8,w/12)", x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(h/8,w/12)", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***平行四边形:Data*/Schema.addShape({name:"data", title:"数据", text:"数据", category:"process_flowchart", props:{w:150, h:66}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(h/3,w/3)/2", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"Math.min(h/3,w/3)/2", y:"h*0.5"}
|
||||
], textBlock:{x:"w*0.15", y:"0", w:"w*0.7", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"150", h:"66"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/3,w/3)", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/***两条水平线:Parallelmode*/Schema.addShape({name:"parallelMode", title:"并行模式", text:"并行模式", category:"process_flowchart", props:{w:150, h:66}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"w*0.5", y:"h"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"move", x:"0", y:"h"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineWidth:0}, actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
|
||||
/***圆形:On-pagereference*/Schema.addShape({name:"onPageReference", title:"页面内引用", text:"页面内引用", category:"process_flowchart", props:{w:66, h:66}, fontStyle:{size:8}, path:[
|
||||
{actions:{ref:"round"}}
|
||||
]});
|
||||
|
||||
/***特殊线矩形:Annotation*/Schema.addShape({name:"annotation", title:"注释", text:"注释", category:"process_flowchart", props:{w:150, h:66}, 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***组:Group*/Schema.addShape({name:"group", title:"组", text:"组", category:"process_flowchart", attribute:{container:true,editable:true}, props:{w:150, h:66}, 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.addGlobalCommand("method_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"}
|
||||
]);
|
||||
|
||||
|
||||
|
||||
|
||||
/*泳池/泳道分组*/
|
||||
@ -473,40 +535,7 @@ function getChild(c, a) {
|
||||
}
|
||||
return null
|
||||
}
|
||||
Schema.addShape({name:"verticalPool", title:"泳池(垂直)",text:"泳池(垂直)", 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:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[], resizeDir:["l", "b", "r"],
|
||||
path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{fillStyle:{color:"232,242,255"},lineStyle:{lineStyle:"solid"}, 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:"泳道(垂直)", text:"泳道(垂直)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["l", "b", "r"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
@ -657,40 +686,6 @@ Schema.addShape({name:"verticalLane", title:"泳道(垂直)", text:"泳道(垂
|
||||
Designer.painter.renderShape(d);
|
||||
this.parent = d.id
|
||||
}});
|
||||
Schema.addShape({name:"horizontalPool", title:"泳池(水平)",text:"泳池(水平)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["t", "r", "b"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{fillStyle:{color:"232,242,255"},lineStyle:{lineStyle:"solid"}, 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:"泳道(水平)",text:"泳道(水平)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["t", "b", "r"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
|
||||
@ -0,0 +1,986 @@
|
||||
Schema.addCategory({name:"process_flowchart", text:"流程图", dataAttributes:[
|
||||
{name:"No.", type:"number", value:"", category:"default"},
|
||||
{name:"Name", type:"string", value:"", category:"default"},
|
||||
{name:"Owner", type:"string", value:"", category:"default"},
|
||||
{name:"Link", type:"link", value:"", category:"default"},
|
||||
{name:"Memo", type:"string", value:"", category:"default"},
|
||||
{name:"Cost", type:"number", value:"", category:"default"},
|
||||
{name:"Time", type:"number", value:"", category:"default"},
|
||||
{name:"Manner", type:"list", value:"", category:"default"},
|
||||
{name:"Department", type:"string", value:"", category:"default"},
|
||||
{name:"Input", type:"string", value:"", category:"default"},
|
||||
{name:"Output", type:"string", value:"", category:"default"},
|
||||
{name:"Risk", type:"string", value:"", category:"default"},
|
||||
{name:"Remarks", type:"string", value:"", category:"default"}
|
||||
]});
|
||||
/***矩形*/Schema.addShape({name:"process", title:"流程", text:"流程", category:"process_flowchart", props:{w:110, h:50},fillStyle:{type: "gradient",gradientType: "linear",beginColor: "245,250,255",endColor: "232,242,255",angle: Math.PI*0.5}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"137,188,255"},actions:{ref:"rectangle"}}
|
||||
]});
|
||||
/***菱形:Decision*/Schema.addShape({name:"decision", title:"判定", text:"判定", category:"process_flowchart", props:{w:90, h:50},fillStyle:{color:"175,210,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"0"},
|
||||
{action:"line", x:"w", y:"h/2"},
|
||||
{action:"line", x:"w/2", y:"h"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***胶囊型:Terminator*/Schema.addShape({name:"terminator", title:"开始/结束", text:"开始/结束", category:"process_flowchart", props:{w:100, h:50},lineStyle:{lineColor:"137,188,255"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"line", x:"w-Math.min(w,h)/3", y:"0"},
|
||||
{action:"curve", x1:"w+Math.min(w,h)/3/3", y1:"0", x2:"w+Math.min(w,h)/3/3", y2:"h", x:"w-Math.min(w,h)/3", y:"h"},
|
||||
{action:"line", x:"Math.min(w,h)/3", y:"h"},
|
||||
{action:"curve", x1:"-Math.min(w,h)/3/3", y1:"h", x2:"-Math.min(w,h)/3/3", y2:"0", x:"Math.min(w,h)/3", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***下边波浪矩形:Document*/Schema.addShape({name:"document", title:"文档", text:"文档", category:"process_flowchart", props:{w:110, h:50}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
],fillStyle:{type: "gradient",gradientType: "linear",beginColor: "255,255,255",endColor: "237,237,237",angle: Math.PI*0.5}, textBlock:{x:"0", y:"0", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"197,197,197"},actions:[
|
||||
{action:"move", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(h/8,w/12)", x:"w*0.5", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(h/8,w/12)", x:"0", y:"h-Math.min(h/8,w/12)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***平行四边形:Data*/Schema.addShape({name:"data", title:"数据", text:"数据", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(h/3,w/3)/2", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"Math.min(h/3,w/3)/2", y:"h*0.5"}
|
||||
], textBlock:{x:"w*0.15", y:"0", w:"w*0.7", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/3,w/3)", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"Math.min(h/3,w/3)", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***三分矩形:Predefinedprocess*/Schema.addShape({name:"predefinedProcess", title:"子流程", text:"子流程", category:"process_flowchart", props:{w:110, h:50},fillStyle:{type: "gradient",gradientType: "linear",beginColor: "245,250,255",endColor: "232,242,255",angle: Math.PI*0.5}, textBlock:{x:"Math.min(w/6,20)", y:"0", w:"w-Math.min(w/6,20)*2", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineWidth:1,lineColor:"137,188,255"},actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"Math.min(w/6,20)", y:"h"},
|
||||
{action:"move", x:"w- Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"w- Math.min(w/6,20)", y:"h"}
|
||||
]}
|
||||
]});
|
||||
/***横圆柱矩形:Storeddata*/Schema.addShape({name:"storedData", title:"外部数据", text:"外部数据", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(w/8,h/8)", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
], textBlock:{x:"w*0.1", y:"0", w:"w*0.75", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w/6", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"curve", x1:"w-w/6", y1:"0", x2:"w-w/6", y2:"h", x:"w", y:"h"},
|
||||
{action:"line", x:"w/6", y:"h"},
|
||||
{action:"curve", x1:"-w/17", y1:"h", x2:"-w/17", y2:"0", x:"w/7", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***四分矩形:Internalstorage*/Schema.addShape({name:"internalStorage", title:"内部存储", text:"内部存储", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"Math.min(w/6,20)", y:"Math.min(h/5,20)", w:"w - Math.min(w/6,20)", h:"h- Math.min(h/5,20)"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"Math.min(w/6,20)", y:"0"},
|
||||
{action:"line", x:"Math.min(w/6,20)", y:"h"},
|
||||
{action:"move", x:"0", y:"Math.min(h/5,20)"},
|
||||
{action:"line", x:"w", y:"Math.min(h/5,20)"}
|
||||
]}
|
||||
]});
|
||||
/***圆Q:Sequentialdata*/Schema.addShape({name:"sequentialData", title:"队列数据", text:"队列数据", category:"process_flowchart", props:{w:70, h:70}, textBlock:{x:"w*0.1", y:"h*0.2", w:"w*0.8", h:"h*0.6"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w/2", y:"h"},
|
||||
{action:"curve", x1:"w/2-w*2/3", y1:"h", x2:"w/2-w*2/3", y2:"0", x:"w/2", y:"0"},
|
||||
{action:"curve", x1:"w/2+w*2/3", y1:"0", x2:"w/2+w*2/3", y2:"h", x:"w/2", y:"h"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***横立体圆柱:Directdata*/Schema.addShape({name:"directData", title:"数据库", text:"数据库", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"0", y:"0", w:"w*0.8", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0.15", y:"0"},
|
||||
{action:"line", x:"w-h/6", y:"0"},
|
||||
{action:"curve", x1:"w+h/22", y1:"0", x2:"w+h/22", y2:"h", x:"w-h/6", y:"h"},
|
||||
{action:"line", x:"w*0.15", y:"h"},
|
||||
{action:"curve", x1:"-w*0.05", y1:"h", x2:"-w*0.05", y2:"0", x:"w*0.15", y:"0"},
|
||||
{action:"close"},
|
||||
{action:"move", x:"w-h/6", y:"0"},
|
||||
{action:"curve", x1:"w-h/8*3", y1:"0", x2:"w-h/8*3", y2:"h", x:"w-h/6", y:"h"},
|
||||
{action:"curve", x1:"w-h/8*3", y1:"h", x2:"w-h/8*3", y2:"0", x:"w-h/6", y:"0"}
|
||||
]}
|
||||
]});
|
||||
/***横梯形:Manualinput*/Schema.addShape({name:"manualInput", title:"人工输入", text:"人工输入", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"0", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"Math.min(h/2,w/6)/2"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"}
|
||||
], textBlock:{x:"0", y:"h*0.1", w:"w", h:"h*0.9"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***纸牌:Card*/Schema.addShape({name:"card", title:"卡片", text:"卡片", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/4)"},
|
||||
{action:"line", x:"Math.min(h/2,w/4)", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/4)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***旗:Papertape*/Schema.addShape({name:"paperTape", title:"条带", text:"条带", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"0", y:"h*0.1", w:"w", h:"h*0.8"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[
|
||||
{x:"w*0.5", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{x:"w", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{x:"0", y:"h*0.5"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"3*Math.min(Math.min(w,h)/8,w/12)", x:"w*0.5", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"-Math.min(Math.min(w,h)/8,w/12)", x:"w", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"line", x:"w", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.75", y1:"h-3*Math.min(Math.min(w,h)/8,w/12)", x:"w*0.5", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"quadraticCurve", x1:"w*0.25", y1:"h+Math.min(Math.min(w,h)/8,w/12)", x:"0", y:"h-Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"line", x:"0", y:"Math.min(Math.min(w,h)/8,w/12)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***左角按钮:Display*/Schema.addShape({name:"display", title:"展示", text:"展示", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w-w/6", y:"0"},
|
||||
{action:"line", x:"w/6", y:"0"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"line", x:"w/6", y:"h"},
|
||||
{action:"line", x:"w-w/6", y:"h"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w", y:"h*0.5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w-w/6", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***倒梯形:Manualoperation*/Schema.addShape({name:"manualOperation", title:"人工操作", text:"人工操作", category:"process_flowchart", props:{w:100, h:70}, textBlock:{x:"w*0.1", y:"0", w:"w*0.8", h:"h"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w-Math.min(h/2,w/6)/2", y:"h*0.5"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"Math.min(h/2,w/6)/2", y:"h*0.5"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***水晶棱形:Preparation*/Schema.addShape({name:"preparation", title:"预备", text:"预备", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"h*0.5"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w", y:"h/2"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"h"},
|
||||
{action:"line", x:"0", y:"h/2"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***两条水平线:Parallelmode*/Schema.addShape({name:"parallelMode", title:"并行模式", text:"并行模式", category:"process_flowchart", props:{w:100, h:70}, anchors:[
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"0"},
|
||||
{x:"w*0.5", y:"h"},
|
||||
{x:"w*0.5", y:"h"}
|
||||
], path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"move", x:"0", y:"h"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineWidth:0}, actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***棺型:Looplimit*/Schema.addShape({name:"loopLimit", title:"循环限值", text:"循环限值", category:"process_flowchart", props:{w:100, h:70}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w-Math.min(h/2,w/6)", y:"0"},
|
||||
{action:"line", x:"w", y:"Math.min(h/2,w/6)"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"Math.min(h/2,w/6)"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***圆形:On-pagereference*/Schema.addShape({name:"onPageReference", title:"页面内引用", text:"页面内引用", category:"process_flowchart", props:{w:70, h:70}, fontStyle:{size:8}, path:[
|
||||
{actions:{ref:"round"}}
|
||||
]});
|
||||
/***下三角锥型:Off-pagereference*/Schema.addShape({name:"offPageReference", title:"跨页引用", text:"跨页引用", category:"process_flowchart", props:{w:70, h:60}, textBlock:{x:"0", y:"0", w:"w", h:"h-Math.min(h,w)/3"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h-Math.min(h,w)/3"},
|
||||
{action:"line", x:"w*0.5", y:"h"},
|
||||
{action:"line", x:"0", y:"h-Math.min(h,w)/3"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***特殊线矩形:Annotation*/Schema.addShape({name:"annotation", title:"注释", text:"注释", category:"process_flowchart", 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"line", x:"0", y:"0"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{fillStyle:{type:"none"}, 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:[
|
||||
{action:"move", x:"0", y:"0"},
|
||||
{action:"line", x:"w", y:"0"},
|
||||
{action:"line", x:"w", y:"h"},
|
||||
{action:"line", x:"0", y:"h"},
|
||||
{action:"close"}
|
||||
]}
|
||||
]});
|
||||
/***组:Group*/Schema.addShape({name:"group", title:"组", text:"组", category:"process_flowchart", 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.addGlobalCommand("method_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"}
|
||||
]);
|
||||
|
||||
/***Method*/Schema.addShape({name:"method_approval_node", title:"线上审批", text:"线上审批",groupName:"features", category:"process_flowchart", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0", y:"5"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
|
||||
{action:"line", x:"w-5", y:"0"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
|
||||
{action:"line", x:"w", y:"h-5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
|
||||
{action:"line", x:"5", y:"h"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
|
||||
{action:"line", x:"0", y:"5"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"method_script_task"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
]});
|
||||
|
||||
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.addShape({name:"method_service_node", title:"线下审批", text:"线下审批",groupName:"features", category:"process_flowchart", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0", y:"5"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
|
||||
{action:"line", x:"w-5", y:"0"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
|
||||
{action:"line", x:"w", y:"h-5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
|
||||
{action:"line", x:"5", y:"h"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
|
||||
{action:"line", x:"0", y:"5"},
|
||||
{action:"close"}
|
||||
]},
|
||||
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"business_rule"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
|
||||
|
||||
]});
|
||||
/***Method*/Schema.addShape({name:"method_approval_node3", title:"系统任务", text:"系统任务",groupName:"features3", category:"process_flowchart", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0", y:"5"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
|
||||
{action:"line", x:"w-5", y:"0"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
|
||||
{action:"line", x:"w", y:"h-5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
|
||||
{action:"line", x:"5", y:"h"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
|
||||
{action:"line", x:"0", y:"5"},
|
||||
{action:"close"}
|
||||
]},
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid", color:"255,255,255"}, actions:{ref:"method_script_task"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
]});
|
||||
|
||||
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.addShape({name:"method_service_node4", title:"人工任务", text:"人工任务",groupName:"features3", category:"process_flowchart", props:{w:150, h:66}, lineStyle:{lineWidth:1, lineColor:"137,188,255"}, fillStyle:{type:"gradient", gradientType:"linear", beginColor:"245,250,255", endColor:"232,242,255", angle:Math.PI * 0.5}, path:[
|
||||
{actions:[
|
||||
{action:"move", x:"w*0", y:"5"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"0", x:"5", y:"0"},
|
||||
{action:"line", x:"w-5", y:"0"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"0", x:"w", y:"5"},
|
||||
{action:"line", x:"w", y:"h-5"},
|
||||
{action:"quadraticCurve", x1:"w", y1:"h", x:"w-5", y:"h"},
|
||||
{action:"line", x:"5", y:"h"},
|
||||
{action:"quadraticCurve", x1:"0", y1:"h", x:"0", y:"h-5"},
|
||||
{action:"line", x:"0", y:"5"},
|
||||
{action:"close"}
|
||||
]},
|
||||
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"roundRectangle"}},
|
||||
{lineStyle:{lineWidth:1, lineColor:"137,188,255", lineStyle:"solid"}, fillStyle:{type:"solid"}, actions:{ref:"business_rule"}},
|
||||
{lineStyle:{lineWidth:0}, fillStyle:{type:"none"}, actions:{ref:"roundRectangle"}}
|
||||
|
||||
|
||||
]});
|
||||
|
||||
|
||||
/*泳池/泳道分组*/
|
||||
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:"泳池(垂直)",text:"泳池(垂直)", 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:"w/2-60", y:"h", w:"120", h:"30"}, anchors:[], resizeDir:["l", "b", "r"],
|
||||
path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{fillStyle:{color:"232,242,255"},lineStyle:{lineStyle:"solid"}, 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:"泳道(垂直)", text:"泳道(垂直)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["l", "b", "r"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{lineStyle:{lineStyle:"solid"}, 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:"horizontalPool", title:"泳池(水平)",text:"泳池(水平)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["t", "r", "b"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{fillStyle:{color:"232,242,255"},lineStyle:{lineStyle:"solid"}, 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:"泳道(水平)",text:"泳道(水平)", 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:"w/2-60", y:"h", w:"120", h:"30"},
|
||||
anchors:[], resizeDir:["t", "b", "r"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}},
|
||||
{lineStyle:{lineStyle:"solid"}, 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
|
||||
}});
|
||||
|
||||
Schema.addShape({name:"verticalSeparatorBar", title:"水平分隔条", category:"lane", attribute:{rotatable:false, linkable:false, visible:false}, props:{w:20, h:500}, anchors:[], resizeDir:[], textBlock:{}, textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"},path:[
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}}
|
||||
]});
|
||||
Schema.addShape({name:"horizontalSeparator", title:"分隔符(水平)", category:"lane", attribute:{rotatable:false, linkable:false}, props:{w:300, h:0}, fontStyle:{orientation:"horizontal", textAlign:"left"}, textBlock:{x:0, y:5, w:20, h:"h-10"},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, text:"阶段",
|
||||
anchors:[], resizeDir:["b"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
|
||||
{action:"move", x:0, y:"h"},
|
||||
{action:"line", x:"w", y:"h"}
|
||||
]},
|
||||
{actions:[
|
||||
{action:"move", x:0, y:0},
|
||||
{action:"line", x:20, y:0},
|
||||
{action:"line", x:20, y:"h"},
|
||||
{action:"line", x:0, y:"h"},
|
||||
{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}
|
||||
]}
|
||||
]
|
||||
}, onCreated:function () {
|
||||
var g = getPool(this, "verticalPool");
|
||||
if (g == null) {
|
||||
return false
|
||||
}
|
||||
var j = getChild(g, "verticalSeparatorBar");
|
||||
if (j == null) {
|
||||
j = Model.create("verticalSeparatorBar", g.props.x - 20, g.props.y + 40);
|
||||
j.props.h = g.props.h - 40;
|
||||
j.parent = g.id;
|
||||
Model.add(j);
|
||||
Designer.painter.renderShape(j);
|
||||
g.props.x -= j.props.w;
|
||||
g.props.w += j.props.w;
|
||||
g.children.push(j.id);
|
||||
Designer.painter.renderShape(g)
|
||||
}
|
||||
var a = this.props.y + this.props.h;
|
||||
var h = g.props.y + 40;
|
||||
var f = null;
|
||||
for (var e = 0; e < g.children.length; e++) {
|
||||
var d = g.children[e];
|
||||
var b = Model.getShapeById(d);
|
||||
if (b.name != "horizontalSeparator") {
|
||||
continue
|
||||
}
|
||||
var c = b.props.y + b.props.h;
|
||||
if (c <= a) {
|
||||
h += b.props.h
|
||||
} else {
|
||||
if (f == null || b.props.y < f.props.y) {
|
||||
f = b
|
||||
}
|
||||
}
|
||||
}
|
||||
this.props.x = g.props.x;
|
||||
this.props.w = g.props.w;
|
||||
this.props.h = a - h;
|
||||
this.props.y = h;
|
||||
g.children.push(this.id);
|
||||
this.parent = g.id;
|
||||
if (a > g.props.y + g.props.h) {
|
||||
this.props.h = g.props.y + g.props.h - h
|
||||
}
|
||||
Designer.painter.renderShape(this);
|
||||
if (f != null) {
|
||||
f.props.y += this.props.h;
|
||||
f.props.h -= this.props.h;
|
||||
Designer.painter.renderShape(f);
|
||||
Model.updateMulti([g, f])
|
||||
} else {
|
||||
Model.update(g)
|
||||
}
|
||||
this.props.zindex = Model.maxZIndex + 1
|
||||
}});
|
||||
Schema.addShape({name:"horizontalSeparatorBar", title:"垂直分隔条", category:"lane", attribute:{rotatable:false, linkable:false, visible:false}, props:{w:600, h:20}, anchors:[], resizeDir:[], textBlock:{},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, path:[
|
||||
{lineStyle:{lineStyle:"solid"}, actions:{ref:"rectangle"}}
|
||||
]});
|
||||
Schema.addShape({name:"verticalSeparator", title:"分隔符(垂直)", category:"lane", attribute:{rotatable:false, linkable:false}, props:{w:0, h:300}, fontStyle:{textAlign:"right"}, textBlock:{x:5, y:0, w:"w-10", h:20},textBlockFinal:{x:"w/2-60", y:"h", w:"120", h:"30"}, text:"阶段", anchors:[], resizeDir:["r"], path:[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
|
||||
{action:"move", x:"w", y:0},
|
||||
{action:"line", x:"w", y:"h"}
|
||||
]},
|
||||
{actions:[
|
||||
{action:"move", x:0, y:0},
|
||||
{action:"line", x:"w", y:0},
|
||||
{action:"line", x:"w", y:20},
|
||||
{action:"line", x:0, y:20},
|
||||
{action:"close"}
|
||||
]}
|
||||
], drawIcon:function (a, b) {
|
||||
return[
|
||||
{fillStyle:{type:"none"}, lineStyle:{lineStyle:"solid"}, actions:[
|
||||
{action:"move", x:0, y:0},
|
||||
{action:"line", x:0, y:b}
|
||||
]}
|
||||
]
|
||||
}, onCreated:function () {
|
||||
var e = getPool(this, "horizontalPool");
|
||||
if (e == null) {
|
||||
return false
|
||||
}
|
||||
var g = getChild(e, "horizontalSeparatorBar");
|
||||
if (g == null) {
|
||||
g = Model.create("horizontalSeparatorBar", e.props.x + 40, e.props.y - 20);
|
||||
e.props.y -= g.props.h;
|
||||
e.props.h += g.props.h;
|
||||
e.children.push(g.id);
|
||||
Designer.painter.renderShape(e);
|
||||
g.props.w = e.props.w - 40;
|
||||
g.parent = e.id;
|
||||
Model.add(g);
|
||||
Designer.painter.renderShape(g)
|
||||
}
|
||||
var j = this.props.x + this.props.w;
|
||||
var h = e.props.x + 40;
|
||||
var d = null;
|
||||
for (var c = 0; c < e.children.length; c++) {
|
||||
var b = e.children[c];
|
||||
var a = Model.getShapeById(b);
|
||||
if (a.name != "verticalSeparator") {
|
||||
continue
|
||||
}
|
||||
var f = a.props.x + a.props.w;
|
||||
if (f <= j) {
|
||||
h += a.props.w
|
||||
} else {
|
||||
if (d == null || a.props.x < d.props.x) {
|
||||
d = a
|
||||
}
|
||||
}
|
||||
}
|
||||
this.props.x = h;
|
||||
this.props.w = j - h;
|
||||
this.props.y = e.props.y;
|
||||
this.props.h = e.props.h;
|
||||
if (j > e.props.x + e.props.w) {
|
||||
this.props.w = e.props.x + e.props.w - h
|
||||
}
|
||||
Designer.painter.renderShape(this);
|
||||
e.children.push(this.id);
|
||||
this.parent = e.id;
|
||||
if (d != null) {
|
||||
d.props.x += this.props.w;
|
||||
d.props.w -= this.props.w;
|
||||
Designer.painter.renderShape(d);
|
||||
Model.updateMulti([e, d])
|
||||
} else {
|
||||
Model.update(e)
|
||||
}
|
||||
this.props.zindex = Model.maxZIndex + 1
|
||||
}});
|
||||
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<attributes type="customer">
|
||||
<attribute key="auditor" title="审核人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="审核人" isRequired="false"/>
|
||||
<attribute key="reviewer" title="复核人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="复核人" isRequired="false"/>
|
||||
<attribute key="approver" title="审批人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="审批人" isRequired="false"/>
|
||||
<attribute key="application" title="适用范围" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="适用范围" isRequired="false"/>
|
||||
<attribute key="file_number" title="文件编码" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="文件编码" isRequired="false"/>
|
||||
<attribute key="Process_Architecture_L1" title="流程架构L1" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构L1" isRequired="false"/>
|
||||
<attribute key="Process_Architecture_L2" title="流程架构L2" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构L2" isRequired="false"/>
|
||||
<attribute key="Process_Architecture_L3" title="流程架构L3" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="流程架构L3" isRequired="false"/>
|
||||
<attribute key="ARIS" title="ARIS地址" type="string" value="" ref="" readonly="false" groupPath="organization" scope="%" isValid="true" desc="ARIS地址" isRequired="false"/>
|
||||
<attribute key="P_versions" title="版本" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="版本" isRequired="true"/>
|
||||
<attribute key="Drafted_and_revised_by" title="拟制/修订人" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="拟制/修订人" isRequired="false"/>
|
||||
<attribute key="T_supplementary_articles" title="附则" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="附则" isRequired="false"/>
|
||||
<attribute key="goal" title="目的" type="string" value="" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true" desc="目的" isRequired="true"/>
|
||||
<attribute key="activity_number" title="活动序号" type="string" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="活动序号" isRequired="false"/>
|
||||
<attribute key="Process_performance_metrics" title="流程绩效" type="relation" value="" ref="{"method":"control.kpi","type":"shape","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true" desc="流程绩效" isRequired="false"/>
|
||||
<attribute key="activity_description" title="活动描述" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="活动描述" isRequired="true"/>
|
||||
<attribute key="output" title="输出" type="textarea" value="" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true" desc="输出" isRequired="false"/>
|
||||
<attribute key="R_relevant_flies" title="相关文件" type="relation" value="" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true" desc="相关文件" isRequired="false"/>
|
||||
<attribute key="support_files" title="支持文件" type="relation" value="" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true" desc="支持文件" isRequired="false"/>
|
||||
<attribute key="relevant_flies" title="相关知识" type="link" value="" desc="相关知识" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="input" title="输入" type="textarea" value="" desc="输入" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="relevant_demand" title="相关要求" type="relation" value="" desc="相关要求" isRequired="false" ref="{"method":"itsystem","type":"shape","multiple":false,"value":""}" readonly="true" groupPath="baseAttribute" scope="*" isValid="false"/>
|
||||
<attribute key="post" title="岗位" type="relation" value="" desc="岗位" isRequired="false" ref="{"method":"org.normal","type":"shape","multiple":true}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="role" title="角色" type="relation" value="" desc="角色" isRequired="false" ref="{"method":"org.normal","type":"shape","multiple":false}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="term" title="术语" type="table" value="" desc="术语" isRequired="false" ref="{"firstColumn":"术语","secondColumn":"定义"}" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="information_systems" title="信息系统" type="relation" value="" desc="信息系统" isRequired="false" ref="{"method":"itsystem.normal","type":"shape","multiple":false}" readonly="true" groupPath="baseAttribute" scope="*" isValid="true"/>
|
||||
<attribute key="Organizational_role" title="组织/角色与职责" type="table" value="" desc="组织/角色与职责" isRequired="false" ref="{"firstColumn":"名称","secondColumn":"职责"}" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Drafted_and_revised_date" title="拟制/修订日期" type="DateTimePicker" value="" desc="拟制/修订日期" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="effective_date" title="生效日期" type="DateTimePicker" value="" desc="生效日期" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Issuing_department" title="发布部门" type="awsorg" value="" desc="发布部门" isRequired="false" ref="{"scope":["department"],"multiple":false}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Process_owner" title="流程责任人" type="awsorg" value="" desc="流程责任人" isRequired="false" ref="{"scope":["user"],"multiple":false}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Whether_issued" title="是否发布" type="string" value="" desc="是否发布" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
<attribute key="ARIS_process_name" title="ARIS流程名称" type="string" value="" desc="ARIS流程名称" isRequired="false" ref="" readonly="false" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="lead_process" title="前置流程" type="relation" value="" desc="前置流程" isRequired="false" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="rear_process" title="后置流程" type="relation" value="" desc="后置流程" isRequired="false" ref="{"method":"process","type":"file","multiple":true}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="Contents_and_reasons_for_revision" title="修订内容及理由" type="textarea" value="" desc="修订内容及理由" isRequired="false" ref="" readonly="false" groupPath="baseAttribute" scope="%" isValid="true"/>
|
||||
</attributes>
|
||||
@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
特性设置(非必须),(多个app提供该Method Attribute时追加定义),作用范围:该MethodId对象。
|
||||
被ResourceScanner扫描器检查更新
|
||||
-->
|
||||
<attributes>
|
||||
<!--
|
||||
分组
|
||||
|
||||
name 组名称
|
||||
|
||||
parentName 上级组名称,若根此处可空
|
||||
|
||||
desc 简要说明
|
||||
|
||||
<group name="AWS" parentName="" desc="AWS BPMS名称"/>
|
||||
<group name="Process" parentName="AWS" desc="Process名称"/>-->
|
||||
<group name="baseAttribute" parentName="" desc="基本属性"/>
|
||||
<group name="process" parentName="" desc="流程分析"/>
|
||||
<group name="organization" parentName="" desc="组织"/>
|
||||
<group name="org_performance" parentName="" desc="绩效"/>
|
||||
<group name="data_form" parentName="" desc="数据"/>
|
||||
<group name="itsystem_normal" parentName="" desc="IT系统"/>
|
||||
<group name="control" parentName="" desc="控制"/>
|
||||
<group name="process_model" parentName="" desc="流程"/>
|
||||
<!--
|
||||
扩展特性(属性)
|
||||
|
||||
key 全局唯一标识名
|
||||
|
||||
title 属性标题
|
||||
|
||||
type 属性类型,支持string(普通字符串),number(数字),boolean(是非),list(多选值),link(链接),relation(关联关系),textarea(多行文本)
|
||||
|
||||
value 默认值//支持@公式
|
||||
|
||||
ref 当type=list时,参考值
|
||||
|
||||
readonly 是否只读
|
||||
|
||||
groupPath 特性绑定在哪个组别上
|
||||
|
||||
scope 应用范围(methodId、methodId.shapeId),多个用逗号隔开%代表文件属性 *代表对所有的图形有效,不是文件属性
|
||||
- 组织-执行部门
|
||||
- 流程分析-处理时间
|
||||
- 流程分析-等待时间
|
||||
- 流程分析-执行频率
|
||||
- 绩效-流程绩效
|
||||
- 产品服务-产品
|
||||
- 产品服务-服务
|
||||
- 流程执行-信息系统
|
||||
- 风险控制 - 制度
|
||||
- 风险控制 - 制度条款
|
||||
- 风险控制- 风险
|
||||
- 风险控制 - 控制
|
||||
-->
|
||||
<attribute key="lead_process" title="前置流程" type="relation" value="" ref="{method:'process',multiple:true,type:'file'}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
<attribute key="rear_process" title="后置流程" type="relation" value="" ref="{method:'process',multiple:true,type:'file'}" readonly="true" groupPath="process_model" scope="%" isValid="true"/>
|
||||
</attributes>
|
||||
Loading…
Reference in New Issue
Block a user