1 25 package org.ofbiz.workflow.impl; 26 27 35 public class WfActivityImplementationFact { 36 37 public static final String module = WfActivityImplementationFact.class.getName(); 38 39 45 public static WfActivityAbstractImplementation getConcretImplementation(String type, WfActivityImpl wfActivity) { 46 if (type.equals("WAT_NO")) 47 return new WfActivityNoImplementation(wfActivity); else if (type.equals("WAT_ROUTE")) 49 return new WfActivityRouteImplementation(wfActivity); else if (type.equals("WAT_TOOL")) 51 return new WfActivityToolImplementation(wfActivity); 52 else if (type.equals("WAT_SUBFLOW")) 53 return new WfActivitySubFlowImplementation(wfActivity); 54 else if (type.equals("WAT_LOOP")) 55 return new WfActivityLoopImplementation(wfActivity); 56 else 57 return null; 58 } 59 } 60 | Popular Tags |