1 5 package com.opensymphony.workflow.ejb; 6 7 import com.opensymphony.workflow.WorkflowContext; 8 9 import javax.ejb.SessionContext ; 10 11 12 25 public class EJBWorkflowContext implements WorkflowContext { 26 28 private SessionContext sessionContext; 29 30 32 public String getCaller() { 33 return sessionContext.getCallerPrincipal().getName(); 34 } 35 36 public void setRollbackOnly() { 37 sessionContext.setRollbackOnly(); 38 } 39 40 public void setSessionContext(SessionContext context) { 41 this.sessionContext = context; 42 } 43 44 public SessionContext getSessionContext() { 45 return sessionContext; 46 } 47 } 48 | Popular Tags |