Shark工作流的实现和WMFC&OMG规范的对比
-----第五部分:工作流流程的设计
关键字:Shark 工作流 WMFC OMG 规范
下面是用obe workflow designer 设计的一个员工辞职流程。
上图的XPDL如下:
<?xml version="1.0" encoding="UTF-8"?>
<xpdl:Package xmlns:xpdl="http://www.wfmc.org/standards/docs/xpdl" Id="e40cf4ef-56c5-11d8-8fe6-8f02bbfa91d7" Name="人员辞职流程">
<xpdl:PackageHeader>
<xpdl:XPDLVersion>0.2</xpdl:XPDLVersion>
<xpdl:Vendor>OpenBusinessEngine.org</xpdl:Vendor>
<xpdl:Created>2004-02-04 11:54:53</xpdl:Created>
<xpdl:Description>人员辞职流程</xpdl:Description>
</xpdl:PackageHeader>
<xpdl:WorkflowProcesses>
<xpdl:WorkflowProcess Id="f94b3070-56c5-11d8-8fe6-8f02bbfa91d7" Name="人员辞职流程">
<xpdl:ProcessHeader>
<xpdl:Created>2004-02-04 11:54:55</xpdl:Created>
<xpdl:Description>人员辞职流程</xpdl:Description>
<xpdl:Priority>0</xpdl:Priority>
<xpdl:Limit>0</xpdl:Limit>
<xpdl:ValidFrom>0</xpdl:ValidFrom>
<xpdl:ValidTo>0</xpdl:ValidTo>
<xpdl:TimeEstimation>
<xpdl:WorkingTime>0</xpdl:WorkingTime>
<xpdl:WaitingTime>0</xpdl:WaitingTime>
<xpdl:Duration>1</xpdl:Duration>
</xpdl:TimeEstimation>
</xpdl:ProcessHeader>
<xpdl:Activities>
<xpdl:Activity Id="提交辞职申请" Name="提交辞职申请">
<xpdl:Description>提交辞职申请</xpdl:Description>
<xpdl:Implementation/>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
<xpdl:Activity Id="部门经理批准" Name="部门经理批准">
<xpdl:Description>部门经理批准</xpdl:Description>
<xpdl:Implementation/>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
<xpdl:Activity Id="总经理批准" Name="总经理批准">
<xpdl:Description>总经理批准</xpdl:Description>
<xpdl:Implementation/>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
<xpdl:Activity Id="部门经理复查" Name="部门经理复查">
<xpdl:Description>部门经理复查</xpdl:Description>
<xpdl:Implementation>
<xpdl:Loop Kind="WHILE">
<xpdl:Condition></xpdl:Condition>
</xpdl:Loop>
</xpdl:Implementation>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
<xpdl:Activity Id="财务审查" Name="财务审查">
<xpdl:Description>财务审查</xpdl:Description>
<xpdl:Implementation>
<xpdl:SubFlow Id="782fc727-56c6-11d8-8fe6-8f02bbfa91d7" Execution="SYNCHRONOUS"/>
</xpdl:Implementation>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
<xpdl:Activity Id="人力资源审查" Name="人力资源审查">
<xpdl:Description>人力资源审查</xpdl:Description>
<xpdl:Implementation>
<xpdl:SubFlow Id="81386668-56c6-11d8-8fe6-8f02bbfa91d7" Execution="SYNCHRONOUS"/>
</xpdl:Implementation>
<xpdl:StartMode>AUTOMATIC</xpdl:StartMode>
<xpdl:FinishMode>AUTOMATIC</xpdl:FinishMode>
</xpdl:Activity>
</xpdl:Activities>
<xpdl:Transitions>
<xpdl:Transition Id="3cb3f6d1-56c6-11d8-8fe6-8f02bbfa91d7" From="提交辞职申请" To="部门经理批准" Name=""/>
<xpdl:Transition Id="6264b4f6-56c6-11d8-8fe6-8f02bbfa91d7" From="部门经理复查" To="总经理批准" Name=""/>
<xpdl:Transition Id="b612ac69-56c6-11d8-8fe6-8f02bbfa91d7" From="部门经理批准" To="财务审查" Name=""/>
<xpdl:Transition Id="b762d31a-56c6-11d8-8fe6-8f02bbfa91d7" From="部门经理批准" To="人力资源审查" Name=""/>
<xpdl:Transition Id="b8a983eb-56c6-11d8-8fe6-8f02bbfa91d7" From="人力资源审查" To="部门经理复查" Name=""/>
<xpdl:Transition Id="bd8394ac-56c6-11d8-8fe6-8f02bbfa91d7" From="财务审查" To="部门经理复查" Name=""/>
</xpdl:Transitions>
</xpdl:WorkflowProcess>
<xpdl:WorkflowProcess Id="782fc727-56c6-11d8-8fe6-8f02bbfa91d7" Name="财务审查">
<xpdl:ProcessHeader>
<xpdl:Created>2004-02-04 11:58:47</xpdl:Created>
<xpdl:Description>财务审查</xpdl:Description>
<xpdl:Priority></xpdl:Priority>
<xpdl:Limit>0</xpdl:Limit>
<xpdl:ValidFrom>0</xpdl:ValidFrom>
<xpdl:ValidTo>0</xpdl:ValidTo>
<xpdl:TimeEstimation>
<xpdl:WorkingTime>0</xpdl:WorkingTime>
<xpdl:WaitingTime>0</xpdl:WaitingTime>
<xpdl:Duration>0</xpdl:Duration>
</xpdl:TimeEstimation>
</xpdl:ProcessHeader>
</xpdl:WorkflowProcess>
<xpdl:WorkflowProcess Id="81386668-56c6-11d8-8fe6-8f02bbfa91d7" Name="人力资源审查">
<xpdl:ProcessHeader>
<xpdl:Created>2004-02-04 11:59:06</xpdl:Created>
<xpdl:Description>人力资源审查</xpdl:Description>
<xpdl:Priority></xpdl:Priority>
<xpdl:Limit>0</xpdl:Limit>
<xpdl:ValidFrom>0</xpdl:ValidFrom>
<xpdl:ValidTo>0</xpdl:ValidTo>
<xpdl:TimeEstimation>
<xpdl:WorkingTime>0</xpdl:WorkingTime>
<xpdl:WaitingTime>0</xpdl:WaitingTime>
<xpdl:Duration>0</xpdl:Duration>
</xpdl:TimeEstimation>
</xpdl:ProcessHeader>
</xpdl:WorkflowProcess>
</xpdl:WorkflowProcesses>
</xpdl:Package>
待续
田春峰