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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...