(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b586db5a"],{"1a04":function(e,t,n){},"22e9":function(e,t,n){},"289b":function(e,t,n){"use strict";n("28fe")},"28fe":function(e,t,n){},"30b6":function(e,t,n){"use strict";n("b60b")},4025:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("b775");n("3fd3"),window.sessionStorage.getItem("token");function r(e){return Object(a["a"])({url:"/portal/v1/flow/task/flowRecord/"+e.procInsId+"/"+e.deployId,method:"get",params:e})}},"4a33":function(e,t,n){},6098:function(e){e.exports=JSON.parse('{"name":"Flowable","uri":"http://flowable.org/bpmn","prefix":"flowable","xml":{"tagAlias":"lowerCase"},"associations":[],"types":[{"name":"InOutBinding","superClass":["Element"],"isAbstract":true,"properties":[{"name":"source","isAttr":true,"type":"String"},{"name":"sourceExpression","isAttr":true,"type":"String"},{"name":"target","isAttr":true,"type":"String"},{"name":"businessKey","isAttr":true,"type":"String"},{"name":"local","isAttr":true,"type":"Boolean","default":false},{"name":"variables","isAttr":true,"type":"String"}]},{"name":"In","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"Out","superClass":["InOutBinding"],"meta":{"allowedIn":["bpmn:CallActivity"]}},{"name":"AsyncCapable","isAbstract":true,"extends":["bpmn:Activity","bpmn:Gateway","bpmn:Event"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false},{"name":"asyncBefore","isAttr":true,"type":"Boolean","default":false},{"name":"asyncAfter","isAttr":true,"type":"Boolean","default":false},{"name":"exclusive","isAttr":true,"type":"Boolean","default":true}]},{"name":"flowable:in","superClass":["Element"],"properties":[{"name":"source","type":"string","isAttr":true},{"name":"target","type":"string","isAttr":true}]},{"name":"flowable:out","superClass":["Element"],"properties":[{"name":"source","type":"string","isAttr":true},{"name":"target","type":"string","isAttr":true}]},{"name":"BoundaryEvent","superClass":["CatchEvent"],"properties":[{"name":"cancelActivity","default":true,"isAttr":true,"type":"Boolean"},{"name":"attachedToRef","type":"Activity","isAttr":true,"isReference":true}]},{"name":"JobPriorized","isAbstract":true,"extends":["bpmn:Process","flowable:AsyncCapable"],"properties":[{"name":"jobPriority","isAttr":true,"type":"String"}]},{"name":"SignalEventDefinition","isAbstract":true,"extends":["bpmn:SignalEventDefinition"],"properties":[{"name":"async","isAttr":true,"type":"Boolean","default":false}]},{"name":"ErrorEventDefinition","isAbstract":true,"extends":["bpmn:ErrorEventDefinition"],"properties":[{"name":"errorCodeVariable","isAttr":true,"type":"String"},{"name":"errorMessageVariable","isAttr":true,"type":"String"}]},{"name":"Error","isAbstract":true,"extends":["bpmn:Error"],"properties":[{"name":"flowable:errorMessage","isAttr":true,"type":"String"}]},{"name":"PotentialStarter","superClass":["Element"],"properties":[{"name":"resourceAssignmentExpression","type":"bpmn:ResourceAssignmentExpression"}]},{"name":"UserTask","isAbstract":true,"extends":["bpmn:UserTask"],"properties":[{"name":"timerEventDefinition","type":"Expression"},{"name":"multiInstanceLoopCharacteristics","type":"MultiInstanceLoopCharacteristics"}]},{"name":"StartEvent","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"timerEventDefinition","type":"Expression"}]},{"name":"FormSupported","isAbstract":true,"extends":["bpmn:StartEvent","bpmn:UserTask"],"properties":[{"name":"formHandlerClass","isAttr":true,"type":"String"},{"name":"formKey","isAttr":true,"type":"String"}]},{"name":"TemplateSupported","isAbstract":true,"extends":["bpmn:Process","bpmn:FlowElement"],"properties":[{"name":"modelerTemplate","isAttr":true,"type":"String"}]},{"name":"Initiator","isAbstract":true,"extends":["bpmn:StartEvent"],"properties":[{"name":"initiator","isAttr":true,"type":"String"}]},{"name":"ScriptTask","isAbstract":true,"extends":["bpmn:ScriptTask"],"properties":[{"name":"resultVariable","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Process","isAbstract":true,"extends":["bpmn:Process"],"properties":[{"name":"candidateStarterGroups","isAttr":true,"type":"String"},{"name":"candidateStarterUsers","isAttr":true,"type":"String"},{"name":"versionTag","isAttr":true,"type":"String"},{"name":"historyTimeToLive","isAttr":true,"type":"String"},{"name":"isStartableInTasklist","isAttr":true,"type":"Boolean","default":true}]},{"name":"EscalationEventDefinition","isAbstract":true,"extends":["bpmn:EscalationEventDefinition"],"properties":[{"name":"escalationCodeVariable","isAttr":true,"type":"String"}]},{"name":"FormalExpression","isAbstract":true,"extends":["bpmn:FormalExpression"],"properties":[{"name":"resource","isAttr":true,"type":"String"}]},{"name":"Assignable","extends":["bpmn:UserTask"],"properties":[{"name":"candidateGroups","isAttr":true,"type":"String"},{"name":"dueDate","isAttr":true,"type":"String"},{"name":"followUpDate","isAttr":true,"type":"String"},{"name":"priority","isAttr":true,"type":"String"}]},{"name":"CallActivity","extends":["bpmn:CallActivity"],"properties":[{"name":"calledElementBinding","isAttr":true,"type":"String","default":"latest"},{"name":"calledElementVersion","isAttr":true,"type":"String"},{"name":"calledElementVersionTag","isAttr":true,"type":"String"},{"name":"calledElementTenantId","isAttr":true,"type":"String"},{"name":"caseRef","isAttr":true,"type":"String"},{"name":"caseBinding","isAttr":true,"type":"String","default":"latest"},{"name":"caseVersion","isAttr":true,"type":"String"},{"name":"caseTenantId","isAttr":true,"type":"String"},{"name":"variableMappingClass","isAttr":true,"type":"String"},{"name":"variableMappingDelegateExpression","isAttr":true,"type":"String"}]},{"name":"ServiceTaskLike","extends":["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"resultVariable","isAttr":true,"type":"String"}]},{"name":"ExclusiveGateway","isAbstract":true,"extends":["bpmn:ExclusiveGateway"],"properties":[{"name":"serviceClass","isAttr":true,"type":"String"}]},{"name":"DmnCapable","extends":["bpmn:BusinessRuleTask"],"properties":[{"name":"decisionRef","isAttr":true,"type":"String"},{"name":"decisionRefBinding","isAttr":true,"type":"String","default":"latest"},{"name":"decisionRefVersion","isAttr":true,"type":"String"},{"name":"mapDecisionResult","isAttr":true,"type":"String","default":"resultList"},{"name":"decisionRefTenantId","isAttr":true,"type":"String"}]},{"name":"ExternalCapable","extends":["flowable:ServiceTaskLike"],"properties":[{"name":"type","isAttr":true,"type":"String"},{"name":"topic","isAttr":true,"type":"String"}]},{"name":"TaskPriorized","extends":["bpmn:Process","flowable:ExternalCapable"],"properties":[{"name":"taskPriority","isAttr":true,"type":"String"}]},{"name":"Properties","superClass":["Element"],"meta":{"allowedIn":["*"]},"properties":[{"name":"values","type":"Property","isMany":true}]},{"name":"Property","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"value","type":"String","isAttr":true}]},{"name":"Connector","superClass":["Element"],"meta":{"allowedIn":["flowable:ServiceTaskLike"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"}]},{"name":"InputOutput","superClass":["Element"],"meta":{"allowedIn":["bpmn:FlowNode","flowable:Connector"]},"properties":[{"name":"inputOutput","type":"InputOutput"},{"name":"connectorId","type":"String"},{"name":"inputParameters","isMany":true,"type":"InputParameter"},{"name":"outputParameters","isMany":true,"type":"OutputParameter"}]},{"name":"InputOutputParameter","properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"InputOutputParameterDefinition","isAbstract":true},{"name":"List","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"items","isMany":true,"type":"InputOutputParameterDefinition"}]},{"name":"Map","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"entries","isMany":true,"type":"Entry"}]},{"name":"Entry","properties":[{"name":"key","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"},{"name":"definition","type":"InputOutputParameterDefinition"}]},{"name":"Value","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"id","isAttr":true,"type":"String"},{"name":"name","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Script","superClass":["InputOutputParameterDefinition"],"properties":[{"name":"scriptFormat","isAttr":true,"type":"String"},{"name":"resource","isAttr":true,"type":"String"},{"name":"value","isBody":true,"type":"String"}]},{"name":"Field","superClass":["Element"],"meta":{"allowedIn":["flowable:ServiceTaskLike","flowable:ExecutionListener","flowable:TaskListener"]},"properties":[{"name":"name","isAttr":true,"type":"String"},{"name":"expression","isAttr":true,"type":"expression"},{"name":"string","type":"string"},{"name":"stringValue","isAttr":true,"type":"String"}]},{"name":"string","superClass":["Element"],"meta":{"allowedIn":["flowable:Field"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"expression","superClass":["Element"],"meta":{"allowedIn":["flowable:Field"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"InputParameter","superClass":["InputOutputParameter"]},{"name":"OutputParameter","superClass":["InputOutputParameter"]},{"name":"Collectable","isAbstract":true,"extends":["bpmn:MultiInstanceLoopCharacteristics"],"superClass":["flowable:AsyncCapable"],"properties":[{"name":"collection","isAttr":true,"type":"String"},{"name":"elementVariable","isAttr":true,"type":"String"}]},{"name":"SequenceFlow","superClass":["FlowElement"],"properties":[{"name":"isImmediate","isAttr":true,"type":"Boolean"},{"name":"conditionExpression","type":"Expression"},{"name":"sourceRef","type":"FlowNode","isAttr":true,"isReference":true},{"name":"targetRef","type":"FlowNode","isAttr":true,"isReference":true}]},{"name":"MultiInstanceLoopCharacteristics","superClass":["LoopCharacteristics"],"properties":[{"name":"isSequential","default":false,"isAttr":true,"type":"Boolean"},{"name":"behavior","type":"MultiInstanceBehavior","default":"All","isAttr":true},{"name":"loopCardinality","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"loopDataInputRef","type":"ItemAwareElement","isReference":true},{"name":"loopDataOutputRef","type":"ItemAwareElement","isReference":true},{"name":"inputDataItem","type":"DataInput","xml":{"serialize":"property"}},{"name":"outputDataItem","type":"DataOutput","xml":{"serialize":"property"}},{"name":"complexBehaviorDefinition","type":"ComplexBehaviorDefinition","isMany":true},{"name":"completionCondition","type":"Expression","xml":{"serialize":"xsi:type"}},{"name":"oneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true},{"name":"noneBehaviorEventRef","type":"EventDefinition","isAttr":true,"isReference":true}]},{"name":"FailedJobRetryTimeCycle","superClass":["Element"],"meta":{"allowedIn":["flowable:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},"properties":[{"name":"body","isBody":true,"type":"String"}]},{"name":"ExecutionListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"TaskListener","superClass":["Element"],"meta":{"allowedIn":["bpmn:UserTask"]},"properties":[{"name":"expression","isAttr":true,"type":"String"},{"name":"class","isAttr":true,"type":"String"},{"name":"delegateExpression","isAttr":true,"type":"String"},{"name":"event","isAttr":true,"type":"String"},{"name":"script","type":"Script"},{"name":"fields","type":"Field","isMany":true}]},{"name":"FormProperty","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"id","type":"String","isAttr":true},{"name":"name","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"required","type":"String","isAttr":true},{"name":"readable","type":"String","isAttr":true},{"name":"writable","type":"String","isAttr":true},{"name":"variable","type":"String","isAttr":true},{"name":"expression","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"default","type":"String","isAttr":true},{"name":"values","type":"Value","isMany":true}]},{"name":"FormData","superClass":["Element"],"meta":{"allowedIn":["bpmn:StartEvent","bpmn:UserTask"]},"properties":[{"name":"fields","type":"FormField","isMany":true},{"name":"businessKey","type":"String","isAttr":true}]},{"name":"FormField","superClass":["Element"],"properties":[{"name":"id","type":"String","isAttr":true},{"name":"label","type":"String","isAttr":true},{"name":"type","type":"String","isAttr":true},{"name":"datePattern","type":"String","isAttr":true},{"name":"defaultValue","type":"String","isAttr":true},{"name":"properties","type":"Properties"},{"name":"validation","type":"Validation"},{"name":"values","type":"Value","isMany":true}]},{"name":"Validation","superClass":["Element"],"properties":[{"name":"constraints","type":"Constraint","isMany":true}]},{"name":"Constraint","superClass":["Element"],"properties":[{"name":"name","type":"String","isAttr":true},{"name":"config","type":"String","isAttr":true}]},{"name":"ConditionalEventDefinition","isAbstract":true,"extends":["bpmn:ConditionalEventDefinition"],"properties":[{"name":"variableName","isAttr":true,"type":"String"},{"name":"variableEvent","isAttr":true,"type":"String"}]}],"emumerations":[]}')},"6e82":function(e,t,n){"use strict";n("b23a")},"70b3":function(e,t,n){"use strict";n("9a4a")},"771f":function(e,t,n){"use strict";n("1a04")},"91bc":function(e,t,n){"use strict";n("22e9")},9546:function(e,t,n){},"9a4a":function(e,t,n){},"9cf1":function(e,t,n){"use strict";n("4a33")},aa5f:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-card",{staticStyle:{overflow:"auto",height:"600px"}},[n("el-col",{attrs:{span:24}},[n("div",[n("div",{staticStyle:{width:"50%",float:"left"}},[n("span",{staticClass:"el-icon-picture-outline"},[e._v("流程图")]),n("flow",{attrs:{xmlData:e.xmlData,taskData:e.taskData}})],1),n("div",{staticStyle:{width:"50%",float:"left","border-left":"1px solid blue"}},[n("el-timeline",e._l(e.flowRecordList,(function(t,a){return n("el-timeline-item",{key:a,attrs:{icon:e.setIcon(t.finishTime),color:e.setColor(t.finishTime)}},[n("p",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.taskName))]),n("el-card",{attrs:{"body-style":{padding:"10px"}}},[n("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-between","align-items":"flex-start"}},[n("div",[t.taskUserInfos?n("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[e._v("实际办理: "),e._l(t.taskUserInfos,(function(t,a){return n("span",{key:a},[e._v(e._s(t.assigneeName)+",")])}))],2):e._e(),t.candidate?n("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[e._v("候选办理:"+e._s(t.candidate))]):e._e(),n("br"),n("label",{staticStyle:{"font-weight":"normal"}},[e._v("接收时间: ")]),n("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[e._v(e._s(t.createTime))]),n("br"),t.finishTime?n("label",{staticStyle:{"font-weight":"normal"}},[e._v("办理时间: ")]):e._e(),n("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[e._v(e._s(t.finishTime))]),n("br")]),n("div",[t.duration?n("label",{staticStyle:{"font-weight":"normal"}},[e._v("耗时:")]):e._e(),n("label",{staticStyle:{color:"red","font-weight":"normal"}},[e._v(e._s(t.duration))])])]),n("div",[t.comment?n("p",["1"===t.comment.type?n("el-tag",{attrs:{type:"success"}},[e._v(" "+e._s(t.comment.comment))]):e._e(),"2"===t.comment.type?n("el-tag",{attrs:{type:"warning"}},[e._v(" "+e._s(t.comment.comment))]):e._e(),"3"===t.comment.type?n("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(t.comment.comment))]):e._e(),"7"===t.comment.type?n("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(t.comment.comment))]):e._e(),"6"===t.comment.type?n("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(t.comment.comment))]):e._e()],1):e._e()])])],1)})),1)],1)])])],1)],1)},r=[],i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("bpmn-modeler",{ref:"refNode",attrs:{xml:e.xmlData,"is-view":!0,taskList:e.taskData}})],1)},o=[],s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isView,expression:"isView"}],staticClass:"flow-containers",class:{"view-mode":e.isView}},[n("el-container",{staticStyle:{height:"100%"}},[n("el-header",{staticStyle:{"border-bottom":"1px solid rgb(218 218 218)",height:"auto"}},[n("div",{staticStyle:{display:"flex",padding:"10px 0px","justify-content":"space-between"}},[e._v(" "+e._s(e.xml)+" "),n("div",[n("el-upload",{staticStyle:{"margin-right":"10px",display:"inline-block"},attrs:{action:"","before-upload":e.openBpmn}},[n("el-tooltip",{attrs:{effect:"dark",content:"加载xml",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-folder-opened"}})],1)],1),n("el-tooltip",{attrs:{effect:"dark",content:"新建",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-circle-plus"},on:{click:e.newDiagram}})],1),n("el-tooltip",{attrs:{effect:"dark",content:"自适应屏幕",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-rank"},on:{click:e.fitViewport}})],1),n("el-tooltip",{attrs:{effect:"dark",content:"放大",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-zoom-in"},on:{click:function(t){return e.zoomViewport(!0)}}})],1),n("el-tooltip",{attrs:{effect:"dark",content:"缩小",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-zoom-out"},on:{click:function(t){return e.zoomViewport(!1)}}})],1),n("el-tooltip",{attrs:{effect:"dark",content:"后退",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-back"},on:{click:function(t){e.modeler.get("commandStack").undo()}}})],1),n("el-tooltip",{attrs:{effect:"dark",content:"前进",placement:"bottom"}},[n("el-button",{attrs:{size:"mini",icon:"el-icon-right"},on:{click:function(t){e.modeler.get("commandStack").redo()}}})],1)],1),n("div",[n("el-button",{attrs:{size:"mini",icon:"el-icon-view"},on:{click:e.showXML}},[e._v("查看xml")]),n("el-button",{attrs:{size:"mini",icon:"el-icon-download"},on:{click:function(t){return e.saveXML(!0)}}},[e._v("下载xml")]),n("el-button",{attrs:{size:"mini",icon:"el-icon-picture"},on:{click:function(t){return e.saveImg("svg",!0)}}},[e._v("下载svg")]),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.save}},[e._v("保存模型")])],1)])]),n("el-container",{staticStyle:{"align-items":"stretch"}},[n("el-main",{staticStyle:{padding:"0"}},[n("div",{ref:"canvas",staticClass:"canvas"})]),n("el-aside",{staticStyle:{width:"400px","min-height":"650px","background-color":"#f0f2f5"}},[e.modeler?n("panel",{attrs:{modeler:e.modeler,users:e.users,groups:e.groups,categorys:e.categorys},on:{dataType:e.dataType}}):e._e()],1)],1)],1)],1)},l=[],u={"Activate the global connect tool":"激活全局连接工具","Append {type}":"添加 {type}","Add Lane above":"在上面添加道","Divide into two Lanes":"分割成两个道","Divide into three Lanes":"分割成三个道","Add Lane below":"在下面添加道","Append compensation activity":"追加补偿活动","Change type":"修改类型","Connect using Association":"使用关联连接","Connect using Sequence/MessageFlow or Association":"使用顺序/消息流或者关联连接","Connect using DataInputAssociation":"使用数据输入关联连接",Remove:"移除","Activate the hand tool":"激活抓手工具","Activate the lasso tool":"激活套索工具","Activate the create/remove space tool":"激活创建/删除空间工具","Create expanded SubProcess":"创建扩展子过程","Create IntermediateThrowEvent/BoundaryEvent":"创建中间抛出事件/边界事件","Create Pool/Participant":"创建池/参与者","Parallel Multi Instance":"并行多重事件","Sequential Multi Instance":"时序多重事件",DataObjectReference:"数据对象参考",DataStoreReference:"数据存储参考",Loop:"循环","Ad-hoc":"即席","Create {type}":"创建 {type}",Task:"任务","Send Task":"发送任务","Receive Task":"接收任务","User Task":"用户任务","Manual Task":"手工任务","Business Rule Task":"业务规则任务","Service Task":"服务任务","Script Task":"脚本任务","Call Activity":"调用活动","Sub Process (collapsed)":"子流程(折叠的)","Sub Process (expanded)":"子流程(展开的)","Start Event":"开始事件",StartEvent:"开始事件","Intermediate Throw Event":"中间事件","End Event":"结束事件",EndEvent:"结束事件","Create Gateway":"创建网关","Create Intermediate/Boundary Event":"创建中间/边界事件","Message Start Event":"消息开始事件","Timer Start Event":"定时开始事件","Conditional Start Event":"条件开始事件","Signal Start Event":"信号开始事件","Error Start Event":"错误开始事件","Escalation Start Event":"升级开始事件","Compensation Start Event":"补偿开始事件","Message Start Event (non-interrupting)":"消息开始事件(非中断)","Timer Start Event (non-interrupting)":"定时开始事件(非中断)","Conditional Start Event (non-interrupting)":"条件开始事件(非中断)","Signal Start Event (non-interrupting)":"信号开始事件(非中断)","Escalation Start Event (non-interrupting)":"升级开始事件(非中断)","Message Intermediate Catch Event":"消息中间捕获事件","Message Intermediate Throw Event":"消息中间抛出事件","Timer Intermediate Catch Event":"定时中间捕获事件","Escalation Intermediate Throw Event":"升级中间抛出事件","Conditional Intermediate Catch Event":"条件中间捕获事件","Link Intermediate Catch Event":"链接中间捕获事件","Link Intermediate Throw Event":"链接中间抛出事件","Compensation Intermediate Throw Event":"补偿中间抛出事件","Signal Intermediate Catch Event":"信号中间捕获事件","Signal Intermediate Throw Event":"信号中间抛出事件","Message End Event":"消息结束事件","Escalation End Event":"定时结束事件","Error End Event":"错误结束事件","Cancel End Event":"取消结束事件","Compensation End Event":"补偿结束事件","Signal End Event":"信号结束事件","Terminate End Event":"终止结束事件","Message Boundary Event":"消息边界事件","Message Boundary Event (non-interrupting)":"消息边界事件(非中断)","Timer Boundary Event":"定时边界事件","Timer Boundary Event (non-interrupting)":"定时边界事件(非中断)","Escalation Boundary Event":"升级边界事件","Escalation Boundary Event (non-interrupting)":"升级边界事件(非中断)","Conditional Boundary Event":"条件边界事件","Conditional Boundary Event (non-interrupting)":"条件边界事件(非中断)","Error Boundary Event":"错误边界事件","Cancel Boundary Event":"取消边界事件","Signal Boundary Event":"信号边界事件","Signal Boundary Event (non-interrupting)":"信号边界事件(非中断)","Compensation Boundary Event":"补偿边界事件","Exclusive Gateway":"互斥网关","Parallel Gateway":"并行网关","Inclusive Gateway":"相容网关","Complex Gateway":"复杂网关","Event based Gateway":"事件网关",Transaction:"转运","Sub Process":"子流程","Event Sub Process":"事件子流程","Collapsed Pool":"折叠池","Expanded Pool":"展开池","no parent for {element} in {parent}":"在{parent}里,{element}没有父类","no shape type specified":"没有指定的形状类型","flow elements must be children of pools/participants":"流元素必须是池/参与者的子类","out of bounds release":"out of bounds release","more than {count} child lanes":"子道大于{count} ","element required":"元素不能为空","diagram not part of bpmn:Definitions":"流程图不符合bpmn规范","no diagram to display":"没有可展示的流程图","no process or collaboration to display":"没有可展示的流程/协作","element {element} referenced by {referenced}#{property} not yet drawn":"由{referenced}#{property}引用的{element}元素仍未绘制","already rendered {element}":"{element} 已被渲染","failed to import {element}":"导入{element}失败",Id:"标识",Name:"名称",General:"常规",Details:"详情","Message Name":"消息名称",Message:"消息",Initiator:"创建者","Asynchronous Continuations":"持续异步","Asynchronous Before":"异步前","Asynchronous After":"异步后","Job Configuration":"工作配置",Exclusive:"排除","Job Priority":"工作优先级","Retry Time Cycle":"重试时间周期",Documentation:"文档","Element Documentation":"元素文档","History Configuration":"历史配置","History Time To Live":"历史的生存时间",Forms:"表单","Form Key":"表单key","Form Fields":"表单字段","Business Key":"业务key","Form Field":"表单字段",ID:"编号",Type:"类型",Label:"名称","Default Value":"默认值",Validation:"校验","Add Constraint":"添加约束",Config:"配置",Properties:"属性","Add Property":"添加属性",Value:"值",Listeners:"监听器","Execution Listener":"执行监听","Event Type":"事件类型","Listener Type":"监听器类型","Java Class":"Java类",Expression:"表达式","Must provide a value":"必须提供一个值","Delegate Expression":"代理表达式",Script:"脚本","Script Format":"脚本格式","Script Type":"脚本类型","Inline Script":"内联脚本","External Script":"外部脚本",Resource:"资源","Field Injection":"字段注入",Extensions:"扩展","Input/Output":"输入/输出","Input Parameters":"输入参数","Output Parameters":"输出参数",Parameters:"参数","Output Parameter":"输出参数","Timer Definition Type":"定时器定义类型","Timer Definition":"定时器定义",Date:"日期",Duration:"持续",Cycle:"循环",Signal:"信号","Signal Name":"信号名称",Escalation:"升级",Error:"错误","Link Name":"链接名称",Condition:"条件名称","Variable Name":"变量名称","Variable Event":"变量事件","Specify more than one variable change event as a comma separated list.":"多个变量事件以逗号隔开","Wait for Completion":"等待完成","Activity Ref":"活动参考","Version Tag":"版本标签",Executable:"可执行文件","External Task Configuration":"扩展任务配置","Task Priority":"任务优先级",External:"外部",Connector:"连接器","Must configure Connector":"必须配置连接器","Connector Id":"连接器编号",Implementation:"实现方式","Field Injections":"字段注入",Fields:"字段","Result Variable":"结果变量",Topic:"主题","Configure Connector":"配置连接器","Input Parameter":"输入参数",Assignee:"代理人","Candidate Users":"候选用户","Candidate Groups":"候选组","Due Date":"到期时间","Follow Up Date":"跟踪日期",Priority:"优先级","The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00","The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)":"跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",Variables:"变量"},c={"bpmn:Process":"流程","bpmn:StartEvent":"开始事件","bpmn:IntermediateThrowEvent":"中间事件","bpmn:Task":"任务","bpmn:SendTask":"发送任务","bpmn:ReceiveTask":"接收任务","bpmn:UserTask":"用户任务","bpmn:ManualTask":"手工任务","bpmn:BusinessRuleTask":"业务规则任务","bpmn:ServiceTask":"服务任务","bpmn:ScriptTask":"脚本任务","bpmn:EndEvent":"结束事件","bpmn:SequenceFlow":"流程线","bpmn:ExclusiveGateway":"互斥网关","bpmn:ParallelGateway":"并行网关","bpmn:InclusiveGateway":"相容网关","bpmn:ComplexGateway":"复杂网关","bpmn:EventBasedGateway":"事件网关"};function m(e,t){return t=t||{},e=u[e]||e,e.replace(/{([^}]+)}/g,(function(e,n){var a=t[n];return null!==u[t[n]]&&"undefined"!==u[t[n]]&&(a=u[t[n]]),a||"{"+n+"}"}))}var p=n("7024"),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"propertyPanel",staticClass:"property-panel"},[e.nodeName?n("div",{staticClass:"node-name"},[e._v(e._s(e.nodeName))]):e._e(),e.element?n(e.getComponent,{tag:"component",attrs:{element:e.element,modeler:e.modeler,users:e.users,groups:e.groups,categorys:e.categorys},on:{dataType:e.dataType}}):e._e()],1)},f=[],g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},scopedSlots:e._u([{key:"executionListener",fn:function(){return[n("el-badge",{attrs:{value:e.executionListenerLength}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="executionListenerDialog"}}},[e._v("编辑")])],1)]},proxy:!0},{key:"taskListener",fn:function(){return[n("el-badge",{attrs:{value:e.taskListenerLength}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="taskListenerDialog"}}},[e._v("编辑")])],1)]},proxy:!0},{key:"multiInstance",fn:function(){return[n("el-badge",{attrs:{"is-dot":e.hasMultiInstance}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="multiInstanceDialog"}}},[e._v("编辑")])],1)]},proxy:!0}]),model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),"executionListenerDialog"===e.dialogName?n("executionListenerDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishExecutionListener}}):e._e(),"taskListenerDialog"===e.dialogName?n("taskListenerDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishTaskListener}}):e._e(),"multiInstanceDialog"===e.dialogName?n("multiInstanceDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishMultiInstance}}):e._e()],1)},h=[],y=n("9b3c"),b=n.n(y),v=n("a8b6"),x={"bpmn:EndEvent":{},"bpmn:StartEvent":{initiator:!0,formKey:!0},"bpmn:UserTask":{userType:!0,dataType:!0,assignee:!0,candidateUsers:!0,candidateGroups:!0,async:!0,priority:!0,formKey:!0,skipExpression:!0,dueDate:!0,taskListener:!0},"bpmn:ServiceTask":{async:!0,skipExpression:!0,isForCompensation:!0,triggerable:!0,class:!0},"bpmn:ScriptTask":{async:!0,isForCompensation:!0,autoStoreVariables:!0},"bpmn:ManualTask":{async:!0,isForCompensation:!0},"bpmn:ReceiveTask":{async:!0,isForCompensation:!0},"bpmn:SendTask":{async:!0,isForCompensation:!0},"bpmn:BusinessRuleTask":{async:!0,isForCompensation:!0,ruleVariablesInput:!0,rules:!0,resultVariable:!0,exclude:!0}};v["a"].set({input:{},select:{},colorPicker:{showAlpha:!0},xform:{form:{labelWidth:"auto"}}});var w={components:{xForm:b.a.xForm},props:{modeler:{type:Object,required:!0},element:{type:Object,required:!0},categorys:{type:Array,default:function(){return[]}}},watch:{"formData.id":function(e){this.updateProperties({id:e})},"formData.name":function(e){this.updateProperties({name:e})},"formData.documentation":function(e){if(e){var t=this.modeler.get("moddle").create("bpmn:Documentation",{text:e});this.updateProperties({documentation:[t]})}else this.updateProperties({documentation:[]})}},methods:{updateProperties:function(e){var t=this.modeler.get("modeling");t.updateProperties(this.element,e)}},computed:{elementType:function(){var e=this.element.businessObject;return e.eventDefinitions?e.eventDefinitions[0].$type:e.$type},showConfig:function(){return x[this.elementType]||{}}}},E=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:"执行监听器",visible:e.dialogVisible,width:"900px","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:function(t){return e.$emit("close")}}},[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},scopedSlots:e._u([{key:"params",fn:function(t){return[n("el-badge",{attrs:{value:t.row.params?t.row.params.length:0,type:"primary"}},[n("el-button",{attrs:{size:"small"},on:{click:function(n){return e.configParam(t.$index)}}},[e._v("配置")])],1)]}}]),model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.closeDialog}},[e._v("确 定")])],1)],1),e.showParamDialog?n("listenerParam",{attrs:{value:e.formData.executionListener[e.nowIndex].params},on:{close:e.finishConfigParam}}):e._e()],1)},k=[],S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:"监听器参数",visible:e.dialogVisible,width:"700px","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:function(t){return e.$emit("close",e.formData.paramList)}}},[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.closeDialog}},[e._v("确 定")])],1)],1)],1)},T=[];v["a"].set({input:{},select:{},colorPicker:{showAlpha:!0},xform:{form:{labelWidth:"auto"}}});var D={components:{xForm:b.a.xForm}},L={mixins:[D],props:{value:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!0,formData:{paramList:this.value}}},computed:{formConfig:function(){return{inline:!1,item:[{xType:"tabs",tabs:[{label:"监听器参数",name:"paramList",column:[{label:"类型",name:"type",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"字符串",value:"stringValue"},{label:"表达式",value:"expression"}]},{label:"名称",name:"name",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"input"},{label:"值",name:"value",xType:"input",rules:[{required:!0,message:"请输入",trigger:["blur","change"]}]}]}]}]}}},methods:{closeDialog:function(){var e=this;this.$refs.xForm.validate().then((function(){e.dialogVisible=!1})).catch((function(e){return console.error(e)}))}}},C=L,A=(n("6e82"),n("2877")),P=Object(A["a"])(C,S,T,!1,null,null,null),I=P.exports,O={components:{listenerParam:I},mixins:[w],data:function(){return{dialogVisible:!0,showParamDialog:!1,nowIndex:null,formData:{executionListener:[]}}},computed:{formConfig:function(){return{inline:!1,item:[{xType:"tabs",tabs:[{label:"执行监听器",name:"executionListener",column:[{label:"事件",name:"event",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"take",value:"take"}]},{label:"类型",name:"type",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"类",value:"class"},{label:"表达式",value:"expression"},{label:"委托表达式",value:"delegateExpression"}],tooltip:"类:示例 com.company.MyCustomListener,自定义类必须实现 org.flowable.engine.delegate.TaskListener 接口
\n 表达式:示例 ${myObject.callMethod(task, task.eventName)}
\n 委托表达式:示例 ${myListenerSpringBean} ,该 springBean 需要实现 org.flowable.engine.delegate.TaskListener 接口\n "},{label:"java 类名",name:"className",xType:"input",rules:[{required:!0,message:"请输入",trigger:["blur","change"]}]},{xType:"slot",label:"参数",width:120,slot:!0,name:"params"}]}]}]}}},mounted:function(){var e,t;this.formData.executionListener=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t?void 0:t.values.filter((function(e){return"flowable:ExecutionListener"===e.$type})).map((function(e){var t,n,a;return"class"in e&&(a="class"),"expression"in e&&(a="expression"),"delegateExpression"in e&&(a="delegateExpression"),{event:e.event,type:a,className:e[a],params:null!==(t=null===(n=e.fields)||void 0===n?void 0:n.map((function(e){var t;return"stringValue"in e&&(t="stringValue"),"expression"in e&&(t="expression"),{name:e.name,type:t,value:e[t]}})))&&void 0!==t?t:[]}})))&&void 0!==e?e:[]},methods:{configParam:function(e){this.nowIndex=e;var t=this.formData.executionListener[e];t.params||(t.params=[]),this.showParamDialog=!0},finishConfigParam:function(e){this.showParamDialog=!1;var t=this.formData.executionListener[this.nowIndex];t.params=e,this.$set(this.formData.executionListener[this.nowIndex],this.nowIndex,t),this.nowIndex=null},updateElement:function(){var e,t=this;if(null!==(e=this.formData.executionListener)&&void 0!==e&&e.length){var n,a,r=this.element.businessObject.get("extensionElements");r||(r=this.modeler.get("moddle").create("bpmn:ExtensionElements")),r.values=null!==(n=null===(a=r.values)||void 0===a?void 0:a.filter((function(e){return"flowable:ExecutionListener"!==e.$type})))&&void 0!==n?n:[],this.formData.executionListener.forEach((function(e){var n=t.modeler.get("moddle").create("flowable:ExecutionListener");n["event"]=e.event,n[e.type]=e.className,e.params&&e.params.length&&e.params.forEach((function(e){var a=t.modeler.get("moddle").create("flowable:Field");a["name"]=e.name,a[e.type]=e.value,n.get("fields").push(a)})),r.get("values").push(n)})),this.updateProperties({extensionElements:r})}else{var i,o,s=this.element.businessObject["extensionElements"];if(s)s.values=null!==(i=null===(o=s.values)||void 0===o?void 0:o.filter((function(e){return"flowable:ExecutionListener"!==e.$type})))&&void 0!==i?i:[]}},closeDialog:function(){var e=this;this.$refs.xForm.validate().then((function(){e.updateElement(),e.dialogVisible=!1})).catch((function(e){return console.error(e)}))}}},_=O,j=(n("91bc"),Object(A["a"])(_,E,k,!1,null,null,null)),M=j.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:"任务监听器",visible:e.dialogVisible,width:"900px","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:function(t){return e.$emit("close")}}},[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},scopedSlots:e._u([{key:"params",fn:function(t){return[n("el-badge",{attrs:{value:t.row.params?t.row.params.length:0,type:"primary"}},[n("el-button",{attrs:{size:"small"},on:{click:function(n){return e.configParam(t.$index)}}},[e._v("配置")])],1)]}}]),model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.closeDialog}},[e._v("确 定")])],1)],1),e.showParamDialog?n("listenerParam",{attrs:{value:e.formData.taskListener[e.nowIndex].params},on:{close:e.finishConfigParam}}):e._e()],1)},B=[],F={components:{listenerParam:I},mixins:[w],data:function(){return{dialogVisible:!0,showParamDialog:!1,nowIndex:null,formData:{taskListener:[]}}},computed:{formConfig:function(){return{inline:!1,item:[{xType:"tabs",tabs:[{label:"任务监听器",name:"taskListener",column:[{label:"事件",name:"event",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"create",value:"create"},{label:"assignment",value:"assignment"},{label:"complete",value:"complete"},{label:"delete",value:"delete"}],tooltip:"create(创建):当任务已经创建,并且所有任务参数都已经设置时触发。
\n assignment(指派):当任务已经指派给某人时触发。请注意:当流程执行到达用户任务时,在触发create事件之前,会首先触发assignment事件。
\n complete(完成):当任务已经完成,从运行时数据中删除前触发。
\n delete(删除):在任务即将被删除前触发。请注意任务由completeTask正常完成时也会触发。\n "},{label:"类型",name:"type",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"类",value:"class"},{label:"表达式",value:"expression"},{label:"委托表达式",value:"delegateExpression"}]},{label:"java 类名",name:"className",xType:"input",rules:[{required:!0,message:"请输入",trigger:["blur","change"]}]},{xType:"slot",label:"参数",width:120,slot:!0,name:"params"}]}]}]}}},mounted:function(){var e,t;this.formData.taskListener=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t?void 0:t.values.filter((function(e){return"flowable:TaskListener"===e.$type})).map((function(e){var t,n,a;return"class"in e&&(a="class"),"expression"in e&&(a="expression"),"delegateExpression"in e&&(a="delegateExpression"),{event:e.event,type:a,className:e[a],params:null!==(t=null===(n=e.fields)||void 0===n?void 0:n.map((function(e){var t;return"stringValue"in e&&(t="stringValue"),"expression"in e&&(t="expression"),{name:e.name,type:t,value:e[t]}})))&&void 0!==t?t:[]}})))&&void 0!==e?e:[]},methods:{configParam:function(e){this.nowIndex=e;var t=this.formData.taskListener[e];t.params||(t.params=[]),this.showParamDialog=!0},finishConfigParam:function(e){this.showParamDialog=!1;var t=this.formData.taskListener[this.nowIndex];t.params=e,this.$set(this.formData.taskListener[this.nowIndex],this.nowIndex,t),this.nowIndex=null},updateElement:function(){var e,t=this;if(null!==(e=this.formData.taskListener)&&void 0!==e&&e.length){var n,a,r=this.element.businessObject.get("extensionElements");r||(r=this.modeler.get("moddle").create("bpmn:ExtensionElements")),r.values=null!==(n=null===(a=r.values)||void 0===a?void 0:a.filter((function(e){return"flowable:TaskListener"!==e.$type})))&&void 0!==n?n:[],this.formData.taskListener.forEach((function(e){var n=t.modeler.get("moddle").create("flowable:TaskListener");n["event"]=e.event,n[e.type]=e.className,e.params&&e.params.length&&e.params.forEach((function(e){var a=t.modeler.get("moddle").create("flowable:Field");a["name"]=e.name,a[e.type]=e.value,n.get("fields").push(a)})),r.get("values").push(n)})),this.updateProperties({extensionElements:r})}else{var i,o,s=this.element.businessObject["extensionElements"];if(s)s.values=null!==(i=null===(o=s.values)||void 0===o?void 0:o.filter((function(e){return"flowable:TaskListener"!==e.$type})))&&void 0!==i?i:[]}},closeDialog:function(){var e=this;this.$refs.xForm.validate().then((function(){e.updateElement(),e.dialogVisible=!1})).catch((function(e){return console.error(e)}))}}},V=F,$=(n("289b"),Object(A["a"])(V,N,B,!1,null,null,null)),R=$.exports,G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{staticClass:"muti-instance",attrs:{title:"多实例配置",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:function(t){return e.$emit("close")}}},[n("el-alert",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"info",closable:!1,"show-icon":""},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" 按照BPMN2.0规范的要求,用于为每个实例创建执行的父执行,会提供下列变量:"),n("br"),e._v(" nrOfInstances:实例总数。"),n("br"),e._v(" nrOfActiveInstances:当前活动的(即未完成的),实例数量。对于顺序多实例,这个值总为1。"),n("br"),e._v(" nrOfCompletedInstances:已完成的实例数量。"),n("br"),e._v(" loopCounter:给定实例在for-each循环中的index。"),n("br")]},proxy:!0}])}),n("x-form",{ref:"xForm",attrs:{config:e.formConfig},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}})],1)],1)},z=[];function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function K(e){for(var t=1;t不论是因为本身配置的就是静态字符串值,还是表达式计算结果为字符串,
这个字符串都会被当做变量名,并从流程变量中用于获取实际的集合。"},{xType:"input",name:"elementVariable",label:"元素变量",tooltip:"每创建一个用户任务前,先以该元素变量为label,集合中的一项为value,
创建(局部)流程变量,该局部流程变量被用于指派用户任务。
一般来说,该字符串应与指定人员变量相同。"},{xType:"radio",name:"isSequential",label:"执行方式",dic:[{label:"串行",value:!0},{label:"并行",value:!1}]},{xType:"input",name:"completionCondition",label:"完成条件",tooltip:"多实例活动在所有实例都完成时结束,然而也可以指定一个表达式,在每个实例
结束时进行计算。当表达式计算为true时,将销毁所有剩余的实例,并结束多实例
活动,继续执行流程。例如 ${nrOfCompletedInstances/nrOfInstances >= 0.6 },
表示当任务完成60%时,该节点就算完成"}],operate:[{text:"确定",show:!0,click:e.save},{text:"清空",show:!0,click:function(){e.formData={}}}]}}},mounted:function(){var e,t,n=JSON.parse(JSON.stringify(null!==(e=this.element.businessObject.loopCharacteristics)&&void 0!==e?e:{}));n.completionCondition=null===(t=n.completionCondition)||void 0===t?void 0:t.body,this.formData=Y(n)},methods:{updateElement:function(){if(null!==this.formData.isSequential&&void 0!==this.formData.isSequential){var e=this.element.businessObject.get("loopCharacteristics");if(e||(e=this.modeler.get("moddle").create("bpmn:MultiInstanceLoopCharacteristics")),e["isSequential"]=this.formData.isSequential,e["collection"]=this.formData.collection,e["elementVariable"]=this.formData.elementVariable,this.formData.completionCondition){var t=this.modeler.get("moddle").create("bpmn:Expression",{body:this.formData.completionCondition});e["completionCondition"]=t}this.updateProperties({loopCharacteristics:e})}else delete this.element.businessObject.loopCharacteristics},save:function(){this.updateElement(),this.dialogVisible=!1}}},ne=te,ae=(n("771f"),Object(A["a"])(ne,G,z,!1,null,null,null)),re=ae.exports,ie={components:{executionListenerDialog:M,taskListenerDialog:R,multiInstanceDialog:re},mixins:[w],props:{users:{type:Array,required:!0},groups:{type:Array,required:!0}},data:function(){return{userTypeOption:[{label:"指定人员",value:"assignee"},{label:"候选人员",value:"candidateUsers"},{label:"候选组",value:"candidateGroups"}],dataTypeOption:[{label:"固定",value:"fixed"},{label:"动态",value:"dynamic"}],dialogName:"",executionListenerLength:0,taskListenerLength:0,hasMultiInstance:!1,formData:{}}},computed:{formConfig:function(){var e=this;return{inline:!1,item:[{xType:"input",name:"id",label:"节点 id",rules:[{required:!0,message:"Id 不能为空"}]},{xType:"input",name:"name",label:"节点名称",rules:[{required:!0,message:"节点名称不能为空"}]},{xType:"input",name:"documentation",label:"节点描述"},{xType:"slot",name:"executionListener",label:"执行监听器"},{xType:"slot",name:"taskListener",label:"任务监听器",show:!!e.showConfig.taskListener},{xType:"select",name:"userType",label:"人员类型",dic:e.userTypeOption,show:!!e.showConfig.userType},{xType:"radio",name:"dataType",label:"指定方式",dic:e.dataTypeOption,show:!!e.showConfig.dataType,rules:[{required:!0,message:"请指定方式"}]},{xType:"select",name:"assignee",label:"指定人员",allowCreate:!0,filterable:!0,dic:{data:e.users,label:"nickName",value:"userId"},show:!!e.showConfig.assignee&&"assignee"===e.formData.userType},{xType:"select",name:"candidateUsers",label:"候选人员",multiple:!0,allowCreate:!0,filterable:!0,dic:{data:e.users,label:"nickName",value:"userId"},show:!!e.showConfig.candidateUsers&&"candidateUsers"===e.formData.userType},{xType:"select",name:"candidateGroups",label:"候选组",multiple:!0,allowCreate:!0,filterable:!0,dic:{data:e.groups,label:"roleName",value:"roleId"},show:!!e.showConfig.candidateGroups&&"candidateGroups"===e.formData.userType},{xType:"slot",name:"multiInstance",label:"多实例"},{xType:"switch",name:"async",label:"异步",activeText:"是",inactiveText:"否",show:!!e.showConfig.async},{xType:"input",name:"priority",label:"优先级",show:!!e.showConfig.priority},{xType:"input",name:"formKey",label:"表单标识key",show:!!e.showConfig.formKey},{xType:"input",name:"skipExpression",label:"跳过表达式",show:!!e.showConfig.skipExpression},{xType:"switch",name:"isForCompensation",label:"是否为补偿",activeText:"是",inactiveText:"否",show:!!e.showConfig.isForCompensation},{xType:"switch",name:"triggerable",label:"服务任务可触发",activeText:"是",inactiveText:"否",show:!!e.showConfig.triggerable},{xType:"switch",name:"autoStoreVariables",label:"自动存储变量",activeText:"是",inactiveText:"否",show:!!e.showConfig.autoStoreVariables},{xType:"input",name:"ruleVariablesInput",label:"输入变量",show:!!e.showConfig.ruleVariablesInput},{xType:"input",name:"rules",label:"规则",show:!!e.showConfig.rules},{xType:"input",name:"resultVariable",label:"结果变量",show:!!e.showConfig.resultVariable},{xType:"switch",name:"exclude",label:"排除",activeText:"是",inactiveText:"否",show:!!e.showConfig.exclude},{xType:"input",name:"class",label:"类",show:!!e.showConfig.class},{xType:"datePicker",type:"datetime",name:"dueDate",label:"到期时间",show:!!e.showConfig.dueDate}]}}},watch:{"formData.userType":function(e,t){var n=this;if(t){var a=["assignee","candidateUsers","candidateGroups"];a.forEach((function(e){delete n.element.businessObject.$attrs["flowable:".concat(e)],delete n.formData[e]}))}},"formData.dataType":function(e){var t=this,n=this;this.updateProperties({"flowable:dataType":e}),"dynamic"===e&&this.updateProperties({"flowable:userType":n.formData.userType});var a=["assignee","candidateUsers","candidateGroups"];a.forEach((function(e){delete t.element.businessObject.$attrs["flowable:".concat(e)],delete t.formData[e]}));var r={dataType:e,userType:this.formData.userType};this.$emit("dataType",r)},"formData.assignee":function(e){"assignee"===this.formData.userType?this.updateProperties({"flowable:assignee":e}):delete this.element.businessObject.$attrs["flowable:assignee"]},"formData.candidateUsers":function(e){"candidateUsers"===this.formData.userType?this.updateProperties({"flowable:candidateUsers":null===e||void 0===e?void 0:e.join(",")}):delete this.element.businessObject.$attrs["flowable:candidateUsers"]},"formData.candidateGroups":function(e){"candidateGroups"===this.formData.userType?this.updateProperties({"flowable:candidateGroups":null===e||void 0===e?void 0:e.join(",")}):delete this.element.businessObject.$attrs["flowable:candidateGroups"]},"formData.async":function(e){""===e&&(e=null),this.updateProperties({"flowable:async":!0})},"formData.dueDate":function(e){""===e&&(e=null),this.updateProperties({"flowable:dueDate":e})},"formData.formKey":function(e){""===e&&(e=null),this.updateProperties({"flowable:formKey":e})},"formData.priority":function(e){""===e&&(e=null),this.updateProperties({"flowable:priority":e})},"formData.skipExpression":function(e){""===e&&(e=null),this.updateProperties({"flowable:skipExpression":e})},"formData.isForCompensation":function(e){""===e&&(e=null),this.updateProperties({isForCompensation:e})},"formData.triggerable":function(e){""===e&&(e=null),this.updateProperties({"flowable:triggerable":e})},"formData.class":function(e){""===e&&(e=null),this.updateProperties({"flowable:class":e})},"formData.autoStoreVariables":function(e){""===e&&(e=null),this.updateProperties({"flowable:autoStoreVariables":e})},"formData.exclude":function(e){""===e&&(e=null),this.updateProperties({"flowable:exclude":e})},"formData.ruleVariablesInput":function(e){""===e&&(e=null),this.updateProperties({"flowable:ruleVariablesInput":e})},"formData.rules":function(e){""===e&&(e=null),this.updateProperties({"flowable:rules":e})},"formData.resultVariable":function(e){""===e&&(e=null),this.updateProperties({"flowable:resultVariable":e})}},created:function(){var e=W(this.element);e=ee(e),this.formData=e,this.computedExecutionListenerLength(),this.computedTaskListenerLength(),this.computedHasMultiInstance()},methods:{computedExecutionListenerLength:function(){var e,t,n;this.executionListenerLength=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(n=t.values)||void 0===n?void 0:n.filter((function(e){return"flowable:ExecutionListener"===e.$type})).length)&&void 0!==e?e:0},computedTaskListenerLength:function(){var e,t,n;this.taskListenerLength=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(n=t.values)||void 0===n?void 0:n.filter((function(e){return"flowable:TaskListener"===e.$type})).length)&&void 0!==e?e:0},computedHasMultiInstance:function(){this.element.businessObject.loopCharacteristics?this.hasMultiInstance=!0:this.hasMultiInstance=!1},finishExecutionListener:function(){"executionListenerDialog"===this.dialogName&&this.computedExecutionListenerLength(),this.dialogName=""},finishTaskListener:function(){"taskListenerDialog"===this.dialogName&&this.computedTaskListenerLength(),this.dialogName=""},finishMultiInstance:function(){"multiInstanceDialog"===this.dialogName&&this.computedHasMultiInstance(),this.dialogName=""}}},oe=ie,se=Object(A["a"])(oe,g,h,!1,null,null,null),le=se.exports,ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},scopedSlots:e._u([{key:"executionListener",fn:function(){return[n("el-badge",{attrs:{value:e.executionListenerLength}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="executionListenerDialog"}}},[e._v("编辑")])],1)]},proxy:!0}]),model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),"executionListenerDialog"===e.dialogName?n("executionListenerDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishExecutionListener}}):e._e()],1)},ce=[],me={components:{executionListenerDialog:M},data:function(){return{executionListenerLength:0,dialogName:null}},methods:{computedExecutionListenerLength:function(){var e,t,n;this.executionListenerLength=null!==(e=null===(t=this.element.businessObject.extensionElements)||void 0===t||null===(n=t.values)||void 0===n?void 0:n.length)&&void 0!==e?e:0},finishExecutionListener:function(){"executionListenerDialog"===this.dialogName&&this.computedExecutionListenerLength(),this.dialogName=""}}},pe={mixins:[w,me],data:function(){return{formData:{}}},computed:{formConfig:function(){var e=this;return{inline:!1,item:[{xType:"input",name:"id",label:"节点 id",rules:[{required:!0,message:"Id 不能为空"}]},{xType:"input",name:"name",label:"节点名称"},{xType:"input",name:"documentation",label:"节点描述"},{xType:"slot",name:"executionListener",label:"执行监听器"},{xType:"input",name:"initiator",label:"发起人",show:!!e.showConfig.initiator},{xType:"input",name:"formKey",label:"表单标识key",show:!!e.showConfig.formKey}]}}},watch:{"formData.initiator":function(e){""===e&&(e=null),this.updateProperties({"flowable:initiator":e})},"formData.formKey":function(e){""===e&&(e=null),this.updateProperties({"flowable:formKey":e})}},created:function(){this.formData=W(this.element)}},de=pe,fe=Object(A["a"])(de,ue,ce,!1,null,null,null),ge=fe.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},scopedSlots:e._u([{key:"executionListener",fn:function(){return[n("el-badge",{attrs:{value:e.executionListenerLength}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="executionListenerDialog"}}},[e._v("编辑")])],1)]},proxy:!0},{key:"signal",fn:function(){return[n("el-badge",{attrs:{value:e.signalLength}},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogName="signalDialog"}}},[e._v("编辑")])],1)]},proxy:!0}]),model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),"executionListenerDialog"===e.dialogName?n("executionListenerDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishExecutionListener}}):e._e(),"signalDialog"===e.dialogName?n("signalDialog",{attrs:{element:e.element,modeler:e.modeler},on:{close:e.finishExecutionListener}}):e._e()],1)},ye=[],be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-dialog",{attrs:{title:"信号定义",visible:e.dialogVisible,width:"700px","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t},closed:function(t){return e.$emit("close")}}},[n("x-form",{ref:"xForm",attrs:{config:e.formConfig},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.closeDialog}},[e._v("确 定")])],1)],1)],1)},ve=[],xe={mixins:[w],data:function(){return{dialogVisible:!0,formData:{signal:[]}}},computed:{formConfig:function(){return{inline:!1,item:[{xType:"tabs",tabs:[{label:"信号定义",name:"signal",column:[{label:"scope",name:"scope",width:180,rules:[{required:!0,message:"请选择",trigger:["blur","change"]}],xType:"select",dic:[{label:"全局",value:"start"},{label:"流程实例",value:"end"}]},{label:"id",name:"id",width:200,rules:[{required:!0,message:"请输入",trigger:["blur","change"]}],xType:"input"},{label:"名称",name:"name",xType:"input",rules:[{required:!0,message:"请输入",trigger:["blur","change"]}]}]}]}]}}},mounted:function(){},methods:{updateElement:function(){var e;if(null!==(e=this.formData.signal)&&void 0!==e&&e.length){var t=this.element.businessObject.get("extensionElements");t||(t=this.modeler.get("moddle").create("bpmn:signal"));for(var n=t.get("values").length,a=0;a\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},Ze=n("6098");function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(C){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof p?t:p,o=Object.create(i.prototype),s=new T(r||[]);return a(o,"_invoke",{value:w(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var m={};function p(){}function d(){}function f(){}var g={};l(g,i,(function(){return this}));var h=Object.getPrototypeOf,y=h&&h(h(D([])));y&&y!==t&&n.call(y,i)&&(g=y);var b=f.prototype=p.prototype=Object.create(g);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(a,i,o,s){var l=c(e[a],e,i);if("throw"!==l.type){var u=l.arg,m=u.value;return m&&"object"==et(m)&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(m).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function w(e,t,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return L()}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var l=c(e,t,n);if("normal"===l.type){if(a=n.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,a=e.iterator[n];if(void 0===a)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var r=c(a,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function D(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,r=function t(){for(;++a=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var a=n.completion;if("throw"===a.type){var r=a.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},e}function nt(e,t,n,a,r,i,o){try{var s=e[i](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(a,r)}function at(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var i=e.apply(t,n);function o(e){nt(i,a,r,o,s,"next",e)}function s(e){nt(i,a,r,o,s,"throw",e)}o(void 0)}))}}var rt={name:"WorkflowBpmnModeler",components:{panel:ze},props:{xml:{type:String,default:""},users:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},categorys:{type:Array,default:function(){return[]}},isView:{type:Boolean,default:!1},taskList:{type:Array,default:function(){return[]}}},data:function(){return{modeler:null,zoom:1}},watch:{xml:function(e){e&&this.createNewDiagram(e)},taskList:function(){this.createNewDiagram(this.xml)}},mounted:function(){this.modeler=new p["a"]({container:this.$refs.canvas,additionalModules:[{translate:["value",m]}],moddleExtensions:{flowable:Ze}}),console.log("1111111111111111111111111111111"),console.log(this.xml),console.log(this.taskList),console.log("1111111111111111111111111111122"),this.xml?this.createNewDiagram(this.xml):this.newDiagram()},methods:{newDiagram:function(){this.createNewDiagram(Qe())},fitViewport:function(){this.zoom=this.modeler.get("canvas").zoom("fit-viewport");var e=document.querySelector(".flow-containers .viewport").getBBox(),t=this.modeler.get("canvas").viewbox(),n={x:e.x+e.width/2-65,y:e.y+e.height/2};this.modeler.get("canvas").viewbox({x:n.x-t.width/2,y:n.y-t.height/2,width:t.width,height:t.height}),this.zoom=e.width/t.width*1.8},zoomViewport:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.zoom=this.modeler.get("canvas").zoom(),this.zoom+=e?.1:-.1,this.modeler.get("canvas").zoom(this.zoom)},createNewDiagram:function(e){var t=this;return at(tt().mark((function n(){return tt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=e.replace(//g,(function(e,t){return t.replace(/0&&t.fillColor(),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](1),console.error(n.t0.message,n.t0.warnings);case 12:case"end":return n.stop()}}),n,null,[[1,9]])})))()},adjustPalette:function(){try{var e=this.$refs.canvas,t=e.children[0].children[1].children[4],n={width:"130px",padding:"5px",background:"white",left:"20px",borderRadius:0};for(var a in n)t.style[a]=n[a];var r=t.children[0],i=r.children;for(var o in i[0].style["display"]="none",i){var s=i[o];for(var l in s.children){var u=s.children[l],c={display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%",padding:"5px"};if(u.className&&u.dataset&&-1!==u.className.indexOf("entry")){var m=(new We).getControl(u.dataset.action);for(var p in u.innerHTML="".concat(m["title"],"
"),c)u.style[p]=c[p]}}}}catch(d){console.log(d)}},fillColor:function(){var e=this,t=this.modeler.get("canvas");this.modeler._definitions.rootElements[0].flowElements.forEach((function(n){var a,r=e.taskList.find((function(e){return e.key===n.id})),i=e.taskList.find((function(e){return!e.completed})),o=e.taskList[e.taskList.length-1];if("bpmn:UserTask"===n.$type)r&&(t.addMarker(n.id,r.completed?"highlight":"highlight-todo"),null===(a=n.outgoing)||void 0===a||a.forEach((function(a){var o=e.taskList.find((function(e){return e.key===a.targetRef.id}));o?i&&r.key===i.key&&!i.completed?t.addMarker(n.id,"highlight-todo"):(t.addMarker(a.id,o.completed?"highlight":"highlight-todo"),t.addMarker(a.targetRef.id,o.completed?"highlight":"highlight-todo")):i&&r.key===i.key&&!i.completed&&t.addMarker(n.id,"highlight-todo")})));else if("bpmn:ExclusiveGateway"===n.$type){var s;if(r)t.addMarker(n.id,r.completed?"highlight":"highlight-todo"),null===(s=n.outgoing)||void 0===s||s.forEach((function(n){var a=e.taskList.find((function(e){return e.key===n.targetRef.id}));a&&(t.addMarker(n.id,a.completed?"highlight":"highlight-todo"),t.addMarker(n.targetRef.id,a.completed?"highlight":"highlight-todo"))}))}else if("bpmn:ParallelGateway"===n.$type){var l;if(r)t.addMarker(n.id,r.completed?"highlight":"highlight-todo"),null===(l=n.outgoing)||void 0===l||l.forEach((function(n){var a=e.taskList.find((function(e){return e.key===n.targetRef.id}));a&&(t.addMarker(n.id,a.completed?"highlight":"highlight-todo"),t.addMarker(n.targetRef.id,a.completed?"highlight":"highlight-todo"))}))}else if("bpmn:StartEvent"===n.$type)n.outgoing.forEach((function(a){var r=e.taskList.find((function(e){return e.key===a.targetRef.id}));if(r)return t.addMarker(a.id,"highlight"),void t.addMarker(n.id,"highlight")}));else if("bpmn:EndEvent"===n.$type&&o.key===n.id&&o.completed)return void t.addMarker(n.id,"highlight")}))},getProcess:function(){var e=this.getProcessElement();return{id:e.id,name:e.name,category:e.$attrs["flowable:processCategory"]}},getProcessElement:function(){for(var e=this.modeler.getDefinitions().rootElements,t=0;t0&&void 0!==e[0]&&e[0],n.prev=1,n.next=4,t.modeler.saveXML({format:!0});case 4:return r=n.sent,i=r.xml,a&&t.downloadFile("".concat(t.getProcessElement().name,".bpmn20.xml"),i,"application/xml"),n.abrupt("return",i);case 10:n.prev=10,n.t0=n["catch"](1),console.log(n.t0);case 13:case"end":return n.stop()}}),n,null,[[1,10]])})))()},showXML:function(){var e=this;return at(tt().mark((function t(){var n,a;return tt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.modeler.saveXML({format:!0});case 3:n=t.sent,a=n.xml,e.$emit("showXML",a),t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](0),console.log(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})))()},saveImg:function(){var e=arguments,t=this;return at(tt().mark((function n(){var a,r,i;return tt().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.length>0&&void 0!==e[0]?e[0]:"svg",a=e.length>1&&void 0!==e[1]&&e[1],n.prev=2,n.next=5,t.modeler.saveSVG({format:!0});case 5:return r=n.sent,i=r.svg,a&&t.downloadFile(t.getProcessElement().name,i,"image/svg+xml"),n.abrupt("return",i);case 11:n.prev=11,n.t0=n["catch"](2),console.log(n.t0);case 14:case"end":return n.stop()}}),n,null,[[2,11]])})))()},save:function(){var e=this;return at(tt().mark((function t(){var n,a,r,i;return tt().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.getProcess(),t.next=3,e.saveXML();case 3:return a=t.sent,t.next=6,e.saveImg();case 6:r=t.sent,i={process:n,xml:a,svg:r},e.$emit("save",i),window.parent.postMessage(i,"*");case 10:case"end":return t.stop()}}),t)})))()},openBpmn:function(e){var t=this,n=new FileReader;return n.readAsText(e,"utf-8"),n.onload=function(){t.createNewDiagram(n.result)},!1},downloadFile:function(e,t,n){var a=document.createElement("a"),r=window.URL.createObjectURL(new Blob([t],{type:n}));a.href=r,a.download=e,a.click(),window.URL.revokeObjectURL(r)},dataType:function(e){this.$emit("dataType",e)}}},it=rt,ot=(n("30b6"),Object(A["a"])(it,s,l,!1,null,null,null)),st=ot.exports;st.install=function(e){return e.component(st.name,st)};var lt=st,ut={name:"Flow",components:{bpmnModeler:lt},props:{xmlData:{type:String,default:""},taskData:{type:Array,default:function(){return[]}}},data:function(){return{}}},ct=ut,mt=Object(A["a"])(ct,i,o,!1,null,null,null),pt=mt.exports,dt={name:"flowRecords",components:{flow:pt},props:{xmlData:{type:String,default:""},taskData:{type:Array,default:function(){return[]}},flowRecordList:{type:Array,default:function(){return[]}}},data:function(){return{}},created:function(){},methods:{setIcon:function(e){return e?"el-icon-check":"el-icon-time"},setColor:function(e){return e?"#2bc418":"#b3bdbb"}}},ft=dt,gt=(n("9cf1"),Object(A["a"])(ft,a,r,!1,null,"77c4e3b2",null));t["a"]=gt.exports},af84:function(e,t,n){"use strict";n("9546")},b23a:function(e,t,n){},b60b:function(e,t,n){},d032:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return m})),n.d(t,"i",(function(){return p}));var a=n("b775");function r(e,t){return Object(a["a"])({url:"/portal/v1/flow/readXml/"+e,method:"get",params:t})}function i(e,t){return Object(a["a"])({url:"/portal/v1/flow/flowViewer/"+e,method:"get",params:t})}function o(e){return Object(a["a"])({url:"/portal/v1/flow/todoAllTaskList/"+e.params.userSid,method:"post",data:e,headers:{"Content-Type":"application/json"}})}function s(e){return Object(a["a"])({url:"/portal/v1/flow/doneAllTaskList/"+e.params.userSid,method:"post",data:e,headers:{"Content-Type":"application/json"}})}function l(e){return Object(a["a"])({url:"/portal/v1/flow/complete",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function u(e){return Object(a["a"])({url:"/portal/v1/flow/reject/"+e.businessSid,method:"post",data:e,headers:{"Content-Type":"application/json"}})}function c(e){return Object(a["a"])({url:"/portal/v1/flow/breakProcess/"+e.businessSid,method:"post",data:e,headers:{"Content-Type":"application/json"}})}function m(e){return Object(a["a"])({url:"/flowable/v1/flow/breakProcess",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function p(e){return Object(a["a"])({url:"/flowable/v1/flowable/proUrl/selectPcUrlByTaskDefKey",method:"post",data:e,headers:{"Content-Type":"application/json"}})}}}]);