1 5 package com.opensymphony.workflow.ejb; 6 7 import com.opensymphony.workflow.*; 8 9 import java.util.Map ; 10 11 import javax.ejb.*; 12 13 14 44 public abstract class WorkflowEJB extends AbstractWorkflow implements SessionBean { 45 47 public void setSessionContext(SessionContext context) { 48 WorkflowContext workflowContext = (WorkflowContext) loadObject(getPersistenceProperties().getProperty("workflowContext", "com.opensymphony.workflow.ejb.EJBWorkflowContext")); 49 50 if (workflowContext instanceof EJBWorkflowContext) { 51 ((EJBWorkflowContext) workflowContext).setSessionContext(context); 52 } 53 54 super.context = workflowContext; 55 } 56 57 61 public void changeEntryState(long id, int newState) throws WorkflowException { 62 super.changeEntryState(id, newState); 63 } 64 65 69 public void doAction(long id, int actionId, Map inputs) throws WorkflowException { 70 super.doAction(id, actionId, inputs); 71 } 72 73 public void ejbCreate() { 74 } 75 76 public void ejbPostCreate() throws CreateException { 77 } 78 79 83 public void executeTriggerFunction(long id, int triggerId) throws WorkflowException { 84 super.executeTriggerFunction(id, triggerId); 85 } 86 87 91 public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, StoreException, WorkflowException { 92 return super.initialize(workflowName, initialAction, inputs); 93 } 94 } 95 | Popular Tags |