I solve the problem (kind of).
The thing is that for some reason, in my application I have to close the context
(jbpmContext.close()), differring from what they do in the jbpm.webapp example, maybe you
can give me a hint in why is that.
Answering the question you post to get more details, it happens with the same user, or
with different users.
And it doesn't give me any error, it just hangs.
Here is the modification I did to make it work
This is the original startProcess
| {
| long processDefinitionId = JsfHelper.getId("processDefinitionId");
| ProcessDefinition processDefinition =
graphSession.loadProcessDefinition(processDefinitionId);
|
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
|
|
| TaskInstance taskInstance =
processInstance.getTaskMgmtInstance().createStartTaskInstance();
|
| jbpmContext.save(processInstance);
| // Fill the task backing bean with useful information
| this.task.initialize(taskInstance);
|
| return "task"
| }
|
This is the startProcess modified
| {
| JbpmContext jbpmContext = JbpmConfiguration.getInstance().getCurrentJbpmContext();
| if(jbpmContext == null){
| jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
| }
|
| long processDefinitionId = JsfHelper.getId("processDefinitionId");
| ProcessDefinition processDefinition =
graphSession.loadProcessDefinition(processDefinitionId);
|
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
|
| TaskInstance taskInstance =
processInstance.getTaskMgmtInstance().createStartTaskInstance();
|
| jbpmContext.save(processInstance);
|
| // Fill the task backing bean with useful information
| this.task.initialize(taskInstance);
|
| jbpmContext.close();
|
| return taskInstance.getName();//This is for something on my navigation
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050543#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...