[jboss-user] [jBPM] New message: "Jbpm 4.3 Event Listeners"

Tony D do-not-reply at jboss.com
Mon Feb 15 03:57:52 EST 2010


User development,

A new message was posted in the thread "Jbpm 4.3 Event Listeners":

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

Author  : Tony D
Profile : http://community.jboss.org/people/tony2010

Message:
--------------------------------------------------------------
Hi,
 
 I have written my cusom event listener and defined at process definition level.
 
<on event="start">
            <event-listener class="x.WorkflowStatusEvent">
                <field name="Id">
                    <object expr="#{id}" />
                </field>
                <field name="status">
                    <string value="IN_PROGRESS" />
                </field>
                <field name="tcn">
                    <object expr="#{param1}" />
                </field>
            </event-listener>            
        </on>
 

    <on event="end">
        <event-listener class="x.WorkflowStatusEvent">
            <field name="Id">
                <object expr="#{id}" />
            </field>
            <field name="status">
                <string value="COMPLETED" />
            </field>
            <field name="tcn">
                <object expr="#{param1}" />
            </field>
        </event-listener>
    </on>
 
I am passing paramters to these event listeners #{id} and  #{param1}. During the first execution of this process the parameters are passed fine but during the second execution of the process and different parameter values for #{id} and  #{param1} it does not pass the new parameters. instead it takes the parameters of the first execution cycle.
 
Any Help would be highly appreciated.
 
Thanks.


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

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




More information about the jboss-user mailing list