jbpm3 流程定义文件

<?xml version="1.0" encoding="UTF-8"?>

<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="claims">
 <start-state name="Start">
  <transition to="Registration" name="register"></transition>
  <transition to="Evaluation" name="evaluate"></transition>
  <transition to="Confirmation" name="confirm"></transition>
 </start-state>

 <task-node name="Registration" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="Confirmation" name="submit"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <task-node name="Confirmation" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="CaseDecision" name="submit"></transition>
  <transition to="Reversal" name="revert"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <task-node name="Evaluation" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="PaymentCalculation(Auto)" name="submit"></transition>
  <transition to="Reversal" name="revert"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <task-node name="PaymentCalculation" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="PaymentAllocation(Auto)" name="submit"></transition>
  <transition to="Reversal" name="revert"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <task-node name="PaymentAllocation" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="Approval" name="submit"></transition>
  <transition to="Reversal" name="revert"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <task-node name="Approval" end-tasks="true">
  <event type="task-create">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>stagePretreatmentAction</targetBean>
   </action>
  </event>
  <task>
   <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assignmentHandler</targetBean>
   </assignment>
  </task>
  <transition to="ClaimCaseApproved" name="submit"></transition>
  <transition to="Reversal" name="revert"></transition>
  <transition to="Closed" name="close"></transition>
  <transition to="Cancelled" name="cancel"></transition>
 </task-node>

 <node name="PendingNotice(Auto)">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>pendingNoticeAutoAction</targetBean>
   </action>
  </event>
  <transition to="Evaluation"></transition>
 </node>

 <node name="Evaluation(Auto)">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>evaluationAutoAction</targetBean>
   </action>
  </event>
  <transition to="PendingNotice(Auto)"></transition>
 </node>

 <decision name="CaseDecision">
  <handler config-type="bean" class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy">
   <targetBean>caseDecision</targetBean>
   <factoryKey>jbpmConfiguration</factoryKey>
  </handler>
  <transition to="Evaluation(Auto)" name="normal"></transition>
  <transition to="Assessment(Auto)" name="jet"></transition>
 </decision>

 <node name="PaymentCalculation(Auto)">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>paymentCalculationAutoAction</targetBean>
   </action>
  </event>
  <transition to="PaymentCalculation"></transition>
 </node>

 <node name="PaymentAllocation(Auto)">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>paymentAllocationAutoAction</targetBean>
   </action>
  </event>
  <transition to="PaymentAllocation"></transition>
 </node>

 <state name="ClaimCaseApproved">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy">
    <factoryKey>jbpmConfiguration</factoryKey>
    <targetBean>claimCaseApprovedAction</targetBean>
   </action>
  </event>
  <transition to="Reversal" name="revert"></transition>
  <transition to="End" name="submit"></transition>
 </state>

 <node name="Reversal">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>reversalAction</targetBean>
   </action>
  </event>
  <transition to="TransitDecision"></transition>
 </node>

 <node name="Assessment(Auto)">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>assessmentAutoAction</targetBean>
   </action>
  </event>
  <transition to="Approval"></transition>
 </node>

 <decision name="TransitDecision">
  <handler config-type="bean" class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy">
   <targetBean>transitDecision</targetBean>
   <factoryKey>jbpmConfiguration</factoryKey>
  </handler>
  <transition to="Registration" name="register"></transition>
  <transition to="Confirmation" name="confirm"></transition>
  <transition to="Evaluation" name="evaluate"></transition>
  <transition to="PaymentCalculation" name="calculate"></transition>
  <transition to="PaymentAllocation" name="pay"></transition>
  <transition to="Approval" name="approve"></transition>
 </decision>

 <state name="Closed">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>closeAction</targetBean>
   </action>
  </event>
 </state>

 <state name="Void">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>voidAction</targetBean>
   </action>
  </event>
 </state>

 <state name="Cancelled">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>cancelAction</targetBean>
   </action>
  </event>
 </state>

 <state name="End">
  <event type="node-enter">
   <action class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean">
    <factoryKey>jbpmConfiguration</factoryKey>
             <targetBean>endAction</targetBean>
   </action>
  </event>
  <transition to="Void" name="void"></transition>
 </state>
</process-definition>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值