And here's the generated code. Note my task name has no spaces:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <process-definition 
  |   xmlns="urn:jbpm.org:jpdl-3.2"
  |   name="simple">
  | 
  | 
  |     <swimlane name="Submitter">
  |             <assignment expression="group(pr_submitter)"></assignment>
  |     </swimlane>
  | 
  |     <swimlane name="PR Approver">
  |             <assignment expression="group(pr_approver)"></assignment>
  |     </swimlane>
  | 
  |     <swimlane name="Vice President">
  |             <assignment expression="group(vice_president)"></assignment>
  |     </swimlane>
  | 
  |     <swimlane name="Accounting">
  |             <assignment expression="group(accounting)"></assignment>
  |     </swimlane>
  | 
  |     <swimlane name="Purchasing">
  |             <assignment expression="group(purchasing)"></assignment>
  |     </swimlane>
  | 
  | 
  |     <start-state name="Start">
  |             <task name="Submit_PR" swimlane="Submitter">
  |                     <controller>
  |                             <variable access="read,write,required" 
name="Location" mapped-name="location"></variable>
  |                             <variable access="read,write,required" name="PR 
Number" mapped-name="prNumber"></variable>
  |                             <variable access="read,write,required" 
name="Contact Info" mapped-name="contactInfo"></variable>
  |                             <variable access="read,write,required" 
name="Date Needed" mapped-name="dateNeeded"></variable>
  |                             <variable access="read,write,required" name="GL 
Account" mapped-name="glAccount"></variable>
  |                             <variable access="read,write,required" name="GL 
Department" mapped-name="glDept"></variable>
  |                             <variable access="read,write,required" 
name="Purchase Type" mapped-name="purchaseType"></variable>
  |                             <variable access="read,write,required" 
name="Manager" mapped-name="manager"></variable>                         
  |                             <variable access="read,write,required" name="PO 
Assigned" mapped-name="poAssigned"></variable>
  |                             <variable access="read,write,required" 
name="Buyer" mapped-name="buyer"></variable>
  |                             <variable access="read,write,required" 
name="Supplier" mapped-name="supplier"></variable>
  |                             <variable access="read,write,required" 
name="Remarks" mapped-name="remarks"></variable>
  |                     </controller>
  |             </task>
  |             <transition to="Manager Approval"></transition>
  |     </start-state>
  | 
  | 
  |     <task-node name="VP Approval">
  |             <transition to="Accounting Approval" name="Yes"></transition>
  |             <transition to="Send Rejection Notice" name="No"></transition>
  |     </task-node>
  | 
  |     <task-node name="Accounting Approval">
  |             <transition to="Route to purchasing" name="Yes"></transition>
  |             <transition to="Send Rejection Notice" name="No"></transition>
  |     </task-node>
  | 
  |     <decision name="Is Amount greater than 500?">
  |             <transition to="VP Approval" name="Yes"></transition>
  |             <transition to="Accounting Approval" name="No"></transition>
  |     </decision>
  | 
  |     <task-node name="Route to purchasing">
  |             <transition to="Completed"></transition>
  |     </task-node>
  | 
  |     <decision name="Manager Approval">
  |             <transition to="Is Amount greater than 500?" 
name="Yes"></transition>
  |     </decision>
  | 
  |     <task-node name="Send Rejection Notice">
  |             <transition to="Start"></transition>
  |     </task-node>
  | 
  | 
  |     <end-state name="Completed"></end-state>
  | 
  | 
  | </process-definition>

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201067#4201067

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201067
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to