138 lines
24 KiB
XML
138 lines
24 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":"6ae34481-ff83-4e44-8345-28f6f93e312e"}" />
|
|
</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},{"status":2},{"status":3}],"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>
|
|
<incoming>Flow_1cryizq</incoming>
|
|
<outgoing>_9fac5c71-636e-41e6-915a-49a1e7b67072</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":true}]},{"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>_9fac5c71-636e-41e6-915a-49a1e7b67072</incoming>
|
|
<outgoing>Flow_1yepfaf</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_07xobdn</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="_9fac5c71-636e-41e6-915a-49a1e7b67072" name="成功" sourceRef="_c4888637-b61c-4ffb-a818-95443aba9610" targetRef="_1f754255-6fd9-4eab-8d0f-10df7976e222">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"sequenceProperty":{"condition":"{\"$type\":\"Forguncy.Model.IfCondition, ServerDesignerCommon\",\"LeftBracket\":0,\"param\":{\"$type\":\"Forguncy.Model.IfConditionProcessFormulaParam, ServerDesignerCommon\",\"FormulaText\":\"=code\",\"IfConditionParamType\":6},\"value\":\"0\",\"RightBracket\":0}"},"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]}}" />
|
|
</extensionElements>
|
|
<conditionExpression xsi:type="tFormalExpression">${sequenceFlowResolver.getConditionResult(execution,'_9fac5c71-636e-41e6-915a-49a1e7b67072')}</conditionExpression>
|
|
</sequenceFlow>
|
|
<exclusiveGateway id="Gateway_07lhqi4">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":400,"commands":[{"enable":true,"id":"1718541350577-5e8907b0","$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":"2"}}],"returnPropertiesTo":[],"serverCommandName":"变更任务状态","isAsync":false}]},{"id":"1","enable":true,"event":401,"commands":[]}]}}" />
|
|
</extensionElements>
|
|
<incoming>Flow_1yepfaf</incoming>
|
|
<outgoing>Flow_07xobdn</outgoing>
|
|
<outgoing>Flow_1cryizq</outgoing>
|
|
</exclusiveGateway>
|
|
<sequenceFlow id="Flow_1yepfaf" name="成功" sourceRef="_1f754255-6fd9-4eab-8d0f-10df7976e222" targetRef="Gateway_07lhqi4">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{"condition":"{\"$type\":\"Forguncy.Model.IfCondition, ServerDesignerCommon\",\"LeftBracket\":0,\"param\":{\"$type\":\"Forguncy.Model.IfConditionProcessFormulaParam, ServerDesignerCommon\",\"FormulaText\":\"=code\",\"IfConditionParamType\":6},\"value\":\"0\",\"RightBracket\":0}"}}" />
|
|
</extensionElements>
|
|
<conditionExpression xsi:type="tFormalExpression">${sequenceFlowResolver.getConditionResult(execution,'Flow_1yepfaf')}</conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="Flow_07xobdn" name="成功" sourceRef="Gateway_07lhqi4" targetRef="_3392ccdd-ae91-44fa-b2ee-f744284c12b0">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{"condition":"{\"$type\":\"Forguncy.Model.IfCondition, ServerDesignerCommon\",\"LeftBracket\":0,\"param\":{\"$type\":\"Forguncy.Model.IfConditionProcessFormulaParam, ServerDesignerCommon\",\"FormulaText\":\"=code\",\"IfConditionParamType\":6},\"value\":\"0\",\"RightBracket\":0}"}}" />
|
|
</extensionElements>
|
|
<conditionExpression xsi:type="tFormalExpression">${sequenceFlowResolver.getConditionResult(execution,'Flow_07xobdn')}</conditionExpression>
|
|
</sequenceFlow>
|
|
<sequenceFlow id="Flow_1cryizq" name="失败" sourceRef="Gateway_07lhqi4" targetRef="_c4888637-b61c-4ffb-a818-95443aba9610">
|
|
<extensionElements>
|
|
<fgc:ForguncyExtension Properties="{"eventSetting":{"eventHandlers":[{"id":"0","enable":true,"event":200,"commands":[]}]},"sequenceProperty":{"condition":"{\"$type\":\"Forguncy.Model.IfCondition, ServerDesignerCommon\",\"LeftBracket\":0,\"param\":{\"$type\":\"Forguncy.Model.IfConditionProcessFormulaParam, ServerDesignerCommon\",\"FormulaText\":\"=code\",\"IfConditionParamType\":6},\"compareType\":1,\"value\":\"0\",\"RightBracket\":0}"}}" />
|
|
</extensionElements>
|
|
<conditionExpression xsi:type="tFormalExpression">${sequenceFlowResolver.getConditionResult(execution,'Flow_1cryizq')}</conditionExpression>
|
|
</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_1cryizq_di" bpmnElement="Flow_1cryizq" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<di:waypoint x="830" y="45" />
|
|
<di:waypoint x="830" y="120" />
|
|
<di:waypoint x="350" y="120" />
|
|
<di:waypoint x="350" y="40" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="599" y="102" width="27" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNEdge>
|
|
<BPMNEdge id="Flow_07xobdn_di" bpmnElement="Flow_07xobdn" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<di:waypoint x="855" y="20" />
|
|
<di:waypoint x="940" y="20" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="885" y="2" width="26" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNEdge>
|
|
<BPMNEdge id="Flow_1yepfaf_di" bpmnElement="Flow_1yepfaf" color:border-color="rgb(172, 172, 172)" color:background-color="rgb(172, 172, 172)">
|
|
<di:waypoint x="650" y="20" />
|
|
<di:waypoint x="805" y="20" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="715" y="2" width="26" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNEdge>
|
|
<BPMNEdge id="_a4482b47-1e47-4d58-85ed-30f504ce12b9" bpmnElement="_9fac5c71-636e-41e6-915a-49a1e7b67072" 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="410" y="20" />
|
|
<waypoint xmlns="http://www.omg.org/spec/DD/20100524/DI" x="530" y="20" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="457" y="2" width="26" height="16" />
|
|
</BPMNLabel>
|
|
</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="940" y="0" width="40" height="40" />
|
|
<BPMNLabel>
|
|
<dc:Bounds x="947" y="47" width="27" height="16" />
|
|
</BPMNLabel>
|
|
</BPMNShape>
|
|
<BPMNShape id="Gateway_07lhqi4_di" bpmnElement="Gateway_07lhqi4" isMarkerVisible="true">
|
|
<dc:Bounds x="805" y="-5" width="50" height="50" />
|
|
</BPMNShape>
|
|
</BPMNPlane>
|
|
</BPMNDiagram>
|
|
</definitions> |