1 5 package com.opensymphony.workflow.spi.ejb; 6 7 import com.opensymphony.workflow.spi.ejb.PreviousStepPK; 8 9 import javax.ejb.CreateException ; 10 11 12 47 public abstract class PreviousCurrentStepEJB extends PreviousStepEJB { 48 50 53 public PreviousStepPK ejbCreate(long id, long previousId) throws CreateException { 54 try { 55 Long pkA = new Long (id); 56 Long pkB = new Long (previousId); 57 setId(pkA); 58 setPreviousId(pkB); 59 60 return new PreviousStepPK(pkA, pkB); 61 } catch (Exception e) { 62 throw new CreateException (e.getMessage()); 63 } 64 } 65 66 public void ejbPostCreate(long id, long previousId) throws CreateException { 67 } 68 } 69 | Popular Tags |