Hello,
Does anybody know how to get at runtime the information about
configuration of custom ActionHadler classes. Here is what I try to do:
Snippet from my processdefinition.xml
<transition name='success' to='new-request-suspend'> <action class='MyActionHandler' config-type='field'> <services> <element>service1</element> <element>service2</element> </services> </action> </transition>
public class MyActionHandler implements org.jbpm.graph.def.ActionHandler
{
private List<String> services;
public void execute (ExecutionContext context) throws Exception
// more code
}
Event event = ... // get the event I am interested in
List<Action> actions = event.getActions ();
for (Action action: actions)
{
// how do I get the value of the MyActionHandler.services field?
}