-
1. Re: Dynamic sub-processes
kukeltje Jul 21, 2005 8:56 AM (in response to rorysteele)Sounds like some nice functionality failed to make it form 2 to 3. I'd also like this functionality (afaik, some other commercial vendors brag about having this functionality)
Could you make a jira enhancement request for and post the link to it here? -
2. Re: Dynamic sub-processes
rorysteele Jul 21, 2005 9:32 AM (in response to rorysteele)Registred in JIRA under http://jira.jboss.com/jira/browse/JBPM-295
Rory -
3. Re: Dynamic sub-processes
rorysteele Jul 25, 2005 10:03 AM (in response to rorysteele)Hi
I have tweaked my code in org.jbpm.graph.node.ProcessState (and its associated ProcessState.hbm.xml) to have a processInstantiator Action field - which is used to create instances of ProcessDefinitionInstantiator objects. I have also changed my schema so that process-state elements in the xml have a choice between sub-process and process-config elements (that takes an action element)
public interface ProcessDefinitionInstantiator {
public ProcessDefinition createDefinition(ExecutionContext context);
}
During execution, in the execute(ExecutionContext executionContext) method, if an instantiator exists, it creates the new ProcessDefinition via the action and its delegated ProcessDefinitionInstantiator.
How do I go about checking code (with its associated tests of cource :) in?
Also, the ProcessState object has no specific write method for it's xml - so the sub-process never gets written out - about to register this as a bug
Cheers
Rory