AnsweredAssumed Answered

Providing inputs to workflow

Question asked by dynamolalit on Jun 2, 2009
Latest reply on Jun 18, 2009 by jpotts
Hi,

I am using Alfresco 3.0+JBoss 4.2.2.I have developed a sample workflow using jpdl designer in eclipse as "

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

<process-definition xmlns="urn:jbpm.org:jpdl-3.2"
   name="Orde-WF2.8">
   <swimlane name="buyer">
      <assignment actor-id="customer"></assignment>
   </swimlane>
   <swimlane name="deliverDepartment">
      <assignment actor-id="deliver-man"></assignment>
   </swimlane>
   <start-state name="start">
      <task name="wf:submitReviewTask" swimlane="buyer">         
      </task>
      <transition name="trPlcaeOrder" to="PlaceOrder">
      </transition>
   </start-state>
   <task-node name="PlaceOrder">
      <task name="placeOrderTask" swimlane="buyer">

      </task>
      <transition name="checkAvailability" to="CheckAvailability"></transition>
   </task-node>
   <decision name="CheckAvailability">
      <handler class="com.sample.action.VerifyOrder"></handler>
      <transition name="trDeliver" to="Deliver"></transition>
      <transition name="trGetFromStock" to="GetFromStock"></transition>
   </decision>
   <state name="GetFromStock">
      <event type="node-enter">
         <action class="com.sample.action.GetFromStockActionHandler"
            name="recharge"></action>
      </event>
      <transition name="checkAvailability" to="CheckAvailability"></transition>
   </state>
   <task-node name="Deliver">
      <transition name="trEnd" to="end"></transition>
   </task-node>
   <end-state name="end"></end-state>
</process-definition>

Now when this workflow is invoked,user should be able to submit some input values say 100.How can i achieve this.Is there anything related to command prompt or workflow console or Web Forms or anything else which needs to be developed to supply inputs to workflow?In brief,how can i supply inputs to a workflow deployed in Alfresco?

Happy to see your suggestions.

Thank You,
Regards,
Lalit

Outcomes