[jboss-user] [jBPM] New message: "Re: Unable to distingusih between pooled-Actors and Swimlane"

john britto do-not-reply at jboss.com
Thu Jan 21 07:59:14 EST 2010


User development,

A new message was posted in the thread "Unable to distingusih between  pooled-Actors and Swimlane":

http://community.jboss.org/message/521388#521388

Author  : john britto
Profile : http://community.jboss.org/people/brittobics

Message:
--------------------------------------------------------------
http://community.jboss.org/people/homes
 
 
I   have created newly  ProcessDefinition.xml file
 
 
 
<?xml version="1.0" encoding="UTF-8"?>
 
<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="Registrar">
 

    <swimlane name="Buyer">
        <assignment class="com.Re.BuyerAssignment" pooled-actors="Britto,Selva,Sasi"></assignment>
    </swimlane>
 
    <swimlane name="Admin1">
        <assignment pooled-actors="Sam,Lin"></assignment>
    </swimlane>
 

    <start-state name="start-state">
        <task>
            <assignment class="com.Re.BuyerAssignment"></assignment>
        </task>
        <transition to="Admin1Approve" name="Init"></transition>
    </start-state>
 

    <task-node name="Admin1Approve">
        <task>
            <assignment class="com.Re.AdminApproveHandler"></assignment>
        </task>
        <transition to="Admin2Approve" name="Approve1"></transition>
    </task-node>
 
    <task-node name="Admin2Approve">
        <transition to="end" name="Approve2-End"></transition>
    </task-node>
 

    <end-state name="end"></end-state>
 

</process-definition>
 
 
 
-----------------------------------------------------
like this
 
 
and  the task is assigned   at  runtime
 
 
<start-state name="start-state">
         <task>
             <assignment class="com.Re.BuyerAssignment"></assignment>
         </task>
         <transition to="Admin1Approve" name="Init"></transition>
     </start-state>
 
I have used the   "com.Re.BuyerAssignment"   class
inthe class there is only one
 
private static final  long serialVersionUID=1L;
    public void assign(Assignable assignable, ExecutionContext executionContext)
            throws Exception {
        // TODO Auto-generated method stub
        assignable.setActorId("Britto");
    }
 
method.
 
is it correct.
 
 
I do not know clearly.
 
Can u give the sample
 
reagards
britto

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/521388#521388




More information about the jboss-user mailing list