I'm using jBPM 4.3.
I instantiate an object using a factory and then I need to set its properties and pass it as an argument to another method. The problem is that i can do this in 2 steps:
I Get the class instance with:
<java class="jbpm.demo.MyClassFactory" method="getMyClass" name="init" var="myInstance">
<transition name="to execute" to="execute"/>
and then I set the properties and call the method with:
<custom class="jbpm.demo.Executor" name="execute">
<field name ="classToExecute">
<property name="name"><string value="John Smith"/></property>
<property name="City"><string value="New York"/></property>
<transition name="to end" to="end"/>
I'd like to merge <java> and <custom> task in one step, but i don't know if it's possible and how to.
<object class="..."> is not possible to use because I instantiate the class with reflection and the class name can differ from case to case.
Thanks in advance.
Retrieving data ...