0 Replies Latest reply on Jun 21, 2011 4:36 AM by simon shen

    How to expose a legacy of jBPM application by using ESB?

    simon shen Newbie

      I just have an idea that I want to expose my jBPM application as a JMS interface by ESB.

       

      pdl source snippet

      <start-state name="start">
        <task name="fillReimbursementBill">
         <description>
          payment.write.bill
         </description>
         <controller>
          <variable access="write" name="title"></variable>
          <variable access="write" name="moneycount"></variable>
          <variable access="write" name="remark"></variable>
         </controller>
        </task>
        <event type="node-enter">
           <action name="bpmStartAction" class="jbpmweb.reimburse.action.BPMStartAction" config-type="bean"></action>
         </event>
        <transition to="managerApprove"></transition>
      </start-state>


      <task-node name="managerApprove">
        <task name="managerApprove">
         <description>
          payment.manager.approve
         </description>
         <assignment class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy"
          config-type="bean">
          <targetBean>reimburseManagerAssignment</targetBean>
          <factoryKey>jbpmConfiguration</factoryKey>
         </assignment>
         <controller>
          <variable access="read" name="title"></variable>
          <variable access="read" name="moneycount"></variable>
          <variable access="read" name="remark"></variable>
          <variable access="read" name="issueperson"></variable>
         </controller>
        </task>
        <transition to="rejectNotice" name="reject"></transition>
        <transition to="choise" name="agree"></transition>
      </task-node>

      ......

       

      Now, I can submit a reimbursement bill through web page, it will start the work flow, and create task instances.

      If I want to expose the interface of this work flow, for example,

          another system can deliver a message by JMS to this jBPM application,

      How can I do?

       

      Thanks,

      Simon