Before using spring-modules I have this type of code in the processdefinition:
The parameters could be retrieved in the actionhandler.Code:<action name="validate" class="com.handlers.MyActionHandler" config-type="bean"> <callbackjndiname>PersonCallback</callbackjndiname> <callbackmethod>validate</callbackmethod> <signalType>1</signalType> </action>
Now when I have started to use spring-modules for jbpm I canīt figure out how to add the parameters to get access to them in the actionhandler specified in the targetBean tag.
I have this code in a processdefinition:
[/CODE]Code:<action name="validate" class="org.springmodules.workflow.jbpm31.JbpmHandlerProxy" config-type="bean"> <targetBean>workflowNodeActionHandler</targetBean> <callbackjndiname>PersonCallback</callbackjndiname> <callbackmethod>validate</callbackmethod> <signalType>1</signalType> </action>
But this donīt work because the actionhandler isnīt the action class. Hopefully there is a way to solve it but I havenīt yet figured out how to specify the parameters and to make it possible to get access to them from the real actionhandler.
Thanks in advance!
/Henrik
I have found one solution for my problem but donīt know if it is the best. I inherited the JbpmHandlerProxy and put my extra attributes in that class. Then I can access them in this way from my handler:
Code:MyJbpmHandlerProxy proxy = (MyJbpmHandlerProxy) executionContext.getNode().getAction().getActionDelegation().getInstance(); proxy.getXXX


