[jboss-user] [JBoss Seam] - Re: jBPM processInstance question

xinhua do-not-reply at jboss.com
Mon Jun 25 05:29:41 EDT 2007


i found a solution:

@Name("printSthAction")
  | @AutoCreate
  | public class PrintSthAction {
  | 	@Logger Log log;
  | 	
  | 	@In
  | 	private String content;
  | 	
  | 	@In
  | 	private BusinessProcess businessProcess;
  | 
  | 	@In
  | 	private JbpmContext jbpmContext;
  | 	
  | 	public void printout(){
  | 		
  | 		log.info("=============> process Instance is null?  #0", jbpmContext.getProcessInstance(businessProcess.getProcessId()));
  | 		log.info("=============> print out sth: #0", content);
  | 	}
  | 	
  | }
  | 

Maybe it is not a good way, but i got what i want :D

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

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



More information about the jboss-user mailing list