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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to