Hi, 

I have a process which consists of multiple sub-processes. I would like to know 
that after deploying the processes(super as well as sub processes), is it 
necessary for me to set the process states with their sub-process definitions?

What I mean to say is that currently i create my process instance in the 
following way:

ProcessDefinition superDefinition = 
getProcessAdmin().getDefinition("superprocess");
ProcessDefinition subDefinition = 
getProcessAdmin().getDefinition("subprocess1");
//...... do the same for the remaining sub-processes

ProcessState state = (ProcessState) superDefinition.getNode("sp1");
state.setSubProcessDefinition(subDefinition);
//...... repeat the above two steps for the remaining sub-processes.

ProcessInstance instance =  new ProcessInstance(superDefinition);

Then my query here is that do I have to set these sub process definitions or is 
there a way to configure so that when i create the super process instance and 
the sub-processes are picked up automatically and created?

As in is it okay just to have the following steps:

ProcessDefinition superDefinition = 
getProcessAdmin().getDefinition("superprocess");

ProcessInstance instance =  new ProcessInstance(superDefinition);

Hope that its clear.

Thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953442#3953442

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953442

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to