1 package org.jbpm.websale; 2 3 import org.apache.commons.logging.Log; 4 import org.apache.commons.logging.LogFactory; 5 import org.jbpm.graph.def.ActionHandler; 6 import org.jbpm.graph.exe.ExecutionContext; 7 8 public class RemindActor implements ActionHandler { 9 10 private static final long serialVersionUID = 1L; 11 12 String swimlane; 13 14 public void execute(ExecutionContext executionContext) throws Exception { 15 16 String actorId = executionContext.getTaskMgmtInstance() 17 .getSwimlaneInstance(swimlane) 18 .getActorId(); 19 20 String taskName = executionContext.getTaskInstance().getName(); 21 22 log.info("###############################################"); 23 log.info("### "+actorId+", task '"+taskName+"' is waiting for you."); 24 log.info("###############################################"); 25 26 } 27 28 private static final Log log = LogFactory.getLog(RemindActor.class); 29 } 30 | Popular Tags |