90 lines
18 KiB
XML
90 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<definitions xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:fgc="http://www.forguncy.com/schema/bpmn/1.0" xmlns:activiti="http://activiti.org/bpmn" id="_f0891378-904d-4a7a-9433-88bd2bac0c55" name="BPMN Model" targetNamespace="http://www.forguncy.com/schema/bpmn/1.0" expressionLanguage="https://www.ecma-international.org/publications/standards/Ecma-334.htm">
|
|
<extension />
|
|
<process id="_0029152c-6da3-486d-9282-4c24a6d2fff1" isExecutable="true">
|
|
<documentation />
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"description":null,"page":null,"tables":["任务表"],"variableSetting":{"variables":[{"name":"code","type":null,"initialValue":{"valueType":1,"fixedValue":"0","tableFieldValue":null}},{"name":"msg","type":null,"initialValue":{"valueType":1,"fixedValue":null,"tableFieldValue":null}}]},"eventSetting":{"eventHandlers":[{"id":"0","event":100,"comment":null,"commands":[],"index":null},{"id":"1","event":101,"comment":null,"commands":[{"$type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition, ServerDesignerCommon","serverCommandName":"变更任务状态","isAsync":false,"inputParams":[{"key":"任务ID","value":{"valueType":2,"fixedValue":null,"tableFieldValue":{"TableName":"任务表","ColumnName":"ID","GUID":"c2c851d2-cdd8-4eb0-9998-d6ef7ad36067","AttachType":null,"RelationBinding":null,"AggregateBindingInfo":null}}},{"key":"状态码","value":{"valueType":1,"fixedValue":"2","tableFieldValue":null}}],"returnCodeTo":"","returnMessageTo":"","returnPropertiesTo":[],"$fgc_java_type":"com.grapecity.forguncy.service.command.impl.callserver.CallServerCommandDefinition","$fgc_csharp_type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition","id":"1718541633462-593d3555","enable":true,"comment":null}],"index":null},{"id":"2","event":102,"comment":null,"commands":[{"$type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition, ServerDesignerCommon","serverCommandName":"变更任务状态","isAsync":false,"inputParams":[{"key":"任务ID","value":{"valueType":2,"fixedValue":null,"tableFieldValue":{"TableName":"任务表","ColumnName":"ID","GUID":"ed83e2d8-95ee-4418-885b-81f4015fde04","AttachType":null,"RelationBinding":null,"AggregateBindingInfo":null}}},{"key":"状态码","value":{"valueType":1,"fixedValue":"-1","tableFieldValue":null}}],"returnCodeTo":"","returnMessageTo":"","returnPropertiesTo":[],"$fgc_java_type":"com.grapecity.forguncy.service.command.impl.callserver.CallServerCommandDefinition","$fgc_csharp_type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition","id":"1718542074903-4b212565","enable":true,"comment":null}],"index":null}]},"timeoutSetting":{"deadlines":[]},"relationSetting":{"processInstanceIdFields":[{"TableName":"任务表","ColumnName":"流程实例ID","GUID":"e8ac0e8b-0205-4c18-bc21-3ac48aacf3cd","AttachType":null,"RelationBinding":null,"AggregateBindingInfo":null}]},"comment":null,"fgcBpmnGuid":"29a136d2-a3ab-4589-b7d6-26e9b7ea9e0a"}" />
|
|
</extensionElements>
|
|
<startEvent id="_f08335ab-b838-4a55-8421-200f30047003" name="开始">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":401,"commands":[]}]},"variableSetting":{"variables":[]}}" />
|
|
</extensionElements>
|
|
<outgoing>_4f4ab1b2-ce52-46c6-bcc8-52c43b0c4a9f</outgoing>
|
|
</startEvent>
|
|
<userTask id="_c4888637-b61c-4ffb-a818-95443aba9610" name="编写任务" activiti:formKey="${formKeyResolver.getFormKey(execution)}" activiti:assignee="${userTaskResolver.getAssignee(execution)}">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"generalSetting":{"page":"任务首页","tables":["任务表"],"actions":[{"key":"0","type":100,"enable":true,"commitOption":{"autoSave":true},"remarks":[{"key":1,"enable":true,"required":false},{"key":2,"enable":false,"required":false}],"title":"提交","condition":"{\"$type\":\"Forguncy.Model.IfCondition, ServerDesignerCommon\",\"LeftBracket\":0,\"param\":{\"$type\":\"Forguncy.Model.IfConditionProcessTableDataParam, ServerDesignerCommon\",\"BindingInfo\":{\"$type\":\"ForguncyDataAccess.BindingInfo, ForguncyDataAccess\",\"TableName\":\"任务表\",\"ColumnName\":\"执行者\"},\"IfConditionParamType\":5},\"compareType\":1,\"value\":\"%Null%\",\"RightBracket\":0}"},{"key":"1644290566823-71614d19","type":200,"enable":true,"remarks":[{"key":1,"enable":true}],"title":"作废","terminateOption":{"type":2}},{"key":"1","type":1000,"enable":true,"title":"暂存","remarks":[]}]},"userSetting":{"assigneeSettings":[{"key":"1641910702820","type":1,"value":{"valueType":2,"tableFieldValue":{"$type":"ForguncyDataAccess.BindingInfo, ForguncyDataAccess","TableName":"任务表","ColumnName":"执行者"}},"enable":true}],"assigneeTarget":2,"isMultiple":false,"isCountersign":false,"isSequential":false,"autoCommitStrategies":[{"status":1,"enable":false},{"status":2,"enable":false},{"status":3,"enable":false}],"nobodyAssignStrategy":{"status":1}},"dataSetting":{"tablePermissions":[]},"timeoutSetting":{"deadlines":[]},"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":400,"commands":[{"enable":true,"id":"1718541499594-4eeeb7c4","$fgc_java_type":"com.grapecity.forguncy.service.command.impl.callserver.CallServerCommandDefinition","$fgc_csharp_type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition","returnCodeTo":"code","returnMessageTo":"msg","inputParams":[{"key":"任务ID","value":{"valueType":2,"tableFieldValue":{"$type":"ForguncyDataAccess.BindingInfo, ForguncyDataAccess","TableName":"任务表","ColumnName":"ID"}}},{"key":"状态码","value":{"valueType":1,"fixedValue":"0"}}],"returnPropertiesTo":[],"serverCommandName":"变更任务状态","isAsync":false}]},{"id":"1","enable":true,"event":300,"commands":[]},{"id":"2","enable":true,"event":302,"commands":[]}]},"variableSetting":{"variables":[]}}" />
|
|
</extensionElements>
|
|
<incoming>_4f4ab1b2-ce52-46c6-bcc8-52c43b0c4a9f</incoming>
|
|
<outgoing>Flow_0otbu5x</outgoing>
|
|
</userTask>
|
|
<userTask id="_1f754255-6fd9-4eab-8d0f-10df7976e222" name="审批任务" activiti:formKey="${formKeyResolver.getFormKey(execution)}" activiti:assignee="${FGC_activitiAssignee}">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"generalSetting":{"page":"任务首页","tables":["任务表"],"actions":[{"key":"0","type":100,"enable":true,"remarks":[{"key":1,"enable":true}],"title":"同意"},{"type":300,"key":"1718540832318-10dd4d08","enable":true,"title":"回退","remarks":[{"key":1,"enable":true,"required":true},{"key":2,"enable":false,"required":false}],"rollbackOption":{"type":1}},{"key":"1644290578551-fb1cce84","type":200,"enable":true,"remarks":[{"key":1,"enable":true,"required":true},{"key":2,"enable":false,"required":false}],"title":"拒绝","terminateOption":{"type":2}}]},"userSetting":{"assigneeSettings":[{"key":"1718540797338-814a28fa","type":1,"value":{"valueType":2,"tableFieldValue":{"$type":"ForguncyDataAccess.BindingInfo, ForguncyDataAccess","TableName":"任务表","ColumnName":"项目ID","RelationBinding":{"$type":"ForguncyDataAccess.RelationBinding, ForguncyDataAccess","RelatedTable":"项目表","RelatedColumn":"ID","DisplayColumn":"项目经理"}}},"enable":true}],"assigneeTarget":1,"isMultiple":true,"isCountersign":false,"isSequential":false,"autoCommitStrategies":[{"status":1,"enable":false},{"status":2,"enable":false},{"status":3,"enable":true}],"nobodyAssignStrategy":{"status":2}},"dataSetting":{"tablePermissions":[]},"timeoutSetting":{"deadlines":[]},"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":400,"commands":[{"enable":true,"id":"1718541653523-04eeb920","$fgc_java_type":"com.grapecity.forguncy.service.command.impl.callserver.CallServerCommandDefinition","$fgc_csharp_type":"ServerDesignerCommon.ProcessEngine.ExtensionModel.CallServerCommandDefinition","returnCodeTo":"code","returnMessageTo":"msg","inputParams":[{"key":"任务ID","value":{"valueType":2,"tableFieldValue":{"$type":"ForguncyDataAccess.BindingInfo, ForguncyDataAccess","TableName":"任务表","ColumnName":"ID"}}},{"key":"状态码","value":{"valueType":1,"fixedValue":"1"}}],"returnPropertiesTo":[],"serverCommandName":"变更任务状态","isAsync":false}]},{"id":"1","enable":true,"event":300,"commands":[]},{"id":"2","enable":true,"event":302,"commands":[]},{"id":"1718541289570-eba8d038","enable":true,"event":401,"commands":[]}]},"variableSetting":{"variables":[]}}" />
|
|
</extensionElements>
|
|
<incoming>Flow_0otbu5x</incoming>
|
|
<outgoing>Flow_1bfvbmv</outgoing>
|
|
<multiInstanceLoopCharacteristics activiti:collection="${userTaskResolver.getCollection(execution)}" activiti:elementVariable="FGC_activitiAssignee">
|
|
<completionCondition>${nrOfCompletedInstances > 0}</completionCondition>
|
|
</multiInstanceLoopCharacteristics>
|
|
</userTask>
|
|
<endEvent id="_3392ccdd-ae91-44fa-b2ee-f744284c12b0" name="结束">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":400,"commands":[]}]},"variableSetting":{"variables":[]}}" />
|
|
</extensionElements>
|
|
<incoming>Flow_1bfvbmv</incoming>
|
|
</endEvent>
|
|
<sequenceFlow id="_4f4ab1b2-ce52-46c6-bcc8-52c43b0c4a9f" name="" sourceRef="_f08335ab-b838-4a55-8421-200f30047003" targetRef="_c4888637-b61c-4ffb-a818-95443aba9610">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{}}" />
|
|
</extensionElements>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="Flow_1bfvbmv" sourceRef="_1f754255-6fd9-4eab-8d0f-10df7976e222" targetRef="_3392ccdd-ae91-44fa-b2ee-f744284c12b0">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{}}" />
|
|
</extensionElements>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="Flow_0otbu5x" sourceRef="_c4888637-b61c-4ffb-a818-95443aba9610" targetRef="_1f754255-6fd9-4eab-8d0f-10df7976e222">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{}}" />
|
|
</extensionElements>
|
|
</sequenceFlow>
|
|
</process>
|
|
<BPMNDiagram xmlns="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="_bc75e97d-3718-40b3-954c-1093a5051bd0" name="" resolution="96">
|
|
<BPMNPlane bpmnElement="_0029152c-6da3-486d-9282-4c24a6d2fff1">
|
|
<BPMNEdge id="Flow_0otbu5x_di" bpmnElement="Flow_0otbu5x" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<di:waypoint x="410" y="20" />
|
|
<di:waypoint x="530" y="20" />
|
|
</BPMNEdge>
|
|
<BPMNEdge id="Flow_1bfvbmv_di" bpmnElement="Flow_1bfvbmv" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<di:waypoint x="650" y="20" />
|
|
<di:waypoint x="750" y="20" />
|
|
</BPMNEdge>
|
|
<BPMNEdge id="_b2af9167-b562-4ac3-a386-acf24b122376" bpmnElement="_4f4ab1b2-ce52-46c6-bcc8-52c43b0c4a9f" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<waypoint xmlns="http://www.omg.org/spec/DD/20100524/DI" x="170" y="20" />
|
|
<waypoint xmlns="http://www.omg.org/spec/DD/20100524/DI" x="290" y="20" />
|
|
</BPMNEdge>
|
|
<BPMNShape id="_77a930b7-a08f-48be-9e93-2006953ed6ad" bpmnElement="_f08335ab-b838-4a55-8421-200f30047003" isHorizontal="false" isExpanded="false" isMarkerVisible="false" isMessageVisible="false">
|
|
<Bounds xmlns="http://www.omg.org/spec/DD/20100524/DC" x="130" y="0" width="40" height="40" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="137" y="47" width="26" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNShape>
|
|
<BPMNShape id="_2e819254-0a57-4077-b12c-2b6b6063cbcd" bpmnElement="_c4888637-b61c-4ffb-a818-95443aba9610" isHorizontal="false" isExpanded="false" isMarkerVisible="false" isMessageVisible="false">
|
|
<Bounds xmlns="http://www.omg.org/spec/DD/20100524/DC" x="290" y="0" width="120" height="40" />
|
|
<BPMNLabel />
|
|
</BPMNShape>
|
|
<BPMNShape id="_2bf92c2b-1b3d-4815-b6c9-f696d0b501a1" bpmnElement="_1f754255-6fd9-4eab-8d0f-10df7976e222" isHorizontal="false" isExpanded="false" isMarkerVisible="false" isMessageVisible="false">
|
|
<Bounds xmlns="http://www.omg.org/spec/DD/20100524/DC" x="530" y="0" width="120" height="40" />
|
|
<BPMNLabel />
|
|
</BPMNShape>
|
|
<BPMNShape id="_dffb7850-c3b4-4469-b322-8af82e48919d" bpmnElement="_3392ccdd-ae91-44fa-b2ee-f744284c12b0" isHorizontal="false" isExpanded="false" isMarkerVisible="false" isMessageVisible="false">
|
|
<Bounds xmlns="http://www.omg.org/spec/DD/20100524/DC" x="750" y="0" width="40" height="40" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="757" y="47" width="27" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNShape>
|
|
</BPMNPlane>
|
|
</BPMNDiagram>
|
|
</definitions> |