[jboss-user] [JBoss jBPM] - Re: LazyInitializationException on init ProcessInstance.inst

AJanz do-not-reply at jboss.com
Thu Jul 31 09:50:16 EDT 2008


ah ok...at last....there is some light ;-)))

after writing my own command for what i want everything is ok

code is


  | 
  | 
  | 	public Object execute(JbpmContext jbpmContext) throws Exception {
  | 		// TODO Auto-generated method stub
  | 		List returnObject=null;
  | 	    ProcessInstance pi = jbpmContext.getProcessInstance(processInstanceId);
  | 	    Token t = pi.getRootToken();
  | 	    if ( t != null ) {
  | 	    	returnObject= t.getNode().getLeavingTransitions();
  | 	        System.out.println("LeavingTransitions= " + returnObject.size());
  | 	        Iterator it = returnObject.iterator();
  | 	        while ( it.hasNext()) {
  | 	        	Transition ta = (Transition ) it.next();
  | 	        	System.out.println("Transition " + ta.getName());
  | 	        }
  | 	    }
  | 	    else {
  | 	    	System.out.println("noroot token!");
  | 	    }
  | 
  | 		
  | 		return returnObject;
  | 	}
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167916#4167916

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167916



More information about the jboss-user mailing list