[jboss-user] [JBoss jBPM] - LazyInitializationException on init ProcessInstance.instance
AJanz
do-not-reply at jboss.com
Thu Jul 31 04:52:14 EDT 2008
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
More information about the jboss-user
mailing list