i got an LazyInitializationException when i try to get the current state of a
processinstance.
what is wrong?
the code is
| GetProcessInstanceCommand cmd = new
GetProcessInstanceCommand();
| cmd.setProcessInstanceId(process_instance_id);
| returnValue = (ProcessInstance)
executeCommand(cmd);
| System.out.println("Root token:" +
returnValue.getRootToken().getName());
| System.out.println("process name:" +
returnValue.getProcessDefinition().getName());
| System.out.println("process start:" +
returnValue.getStart().toLocaleString());
| TaskInstance taskInstance = (TaskInstance)
|
returnValue.getTaskMgmtInstance().getTaskInstances().iterator().next();
|
|
| System.out.println("Task now is
"+taskInstance.getName());
|
the exception happens on returnValue.getTaskMgmtInstance()
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167840#4167840
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167840
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user