[jboss-user] [JBoss jBPM] - Re: various instances from the same task
jainer
do-not-reply at jboss.com
Mon Oct 2 16:54:16 EDT 2006
i just modified a little the code of startProcessInstance method in the HomeBean, i just put a decisions, but the code for to create the task instances is the same:
| // create a new process instance to run
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
|
| // create a new taskinstance for the start task
| TaskInstance taskInstance = processInstance.getTaskMgmtInstance().createStartTaskInstance();
|
| // Save the process instance along with the task instance
| jbpmContext.save(processInstance);
|
| // Fill the task backing bean with useful information
| taskBean.initialize(taskInstance);
|
| return "task";
|
Thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975608#3975608
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975608
More information about the jboss-user
mailing list