protected RuleFlowProcessFactory(String id) { RuleFlowProcess process = new RuleFlowProcess(); process.setId(id); setNodeContainer(process); }
public RuleFlowProcessFactory dynamic(boolean dynamic) { getRuleFlowProcess().setDynamic(dynamic); return this; }
public RuleFlowProcessFactory globals(Map<String, String> globals) { getRuleFlowProcess().setGlobals(globals); return this; }
public RuleFlowProcessFactory name(String name) { getRuleFlowProcess().setName(name); return this; }
public RuleFlowProcessFactory packageName(String packageName) { getRuleFlowProcess().setPackageName(packageName); return this; }
public List<Node> getEndNodes() { return getEndNodes(this.getNodes()); }
public List<Node> getStartNodes() { return getStartNodes(this.getNodes()); }
public RuleFlowProcessFactory version(String version) { getRuleFlowProcess().setVersion(version); return this; }
public RuleFlowProcessFactory exceptionHandler(String exception, ExceptionHandler exceptionHandler) { getRuleFlowProcess().getExceptionScope().setExceptionHandler(exception, exceptionHandler); return this; }
public RuleFlowProcessFactory variable(String name, DataType type) { return variable(name, type, null); }
public RuleFlowProcessFactory functionImports(String... functionImports) { getRuleFlowProcess().setFunctionImports(Arrays.asList(functionImports)); return this; }
public ExceptionScope getExceptionScope() { return (ExceptionScope) getDefaultContext(ExceptionScope.EXCEPTION_SCOPE); }
public RuleFlowProcess getProcess() { return getRuleFlowProcess(); } }
protected RuleFlowProcess getRuleFlowProcess() { return (RuleFlowProcess) getNodeContainer(); }
protected NodeContainer createNodeContainer() { return new WorkflowProcessNodeContainer(); }
public static RuleFlowProcessFactory createProcess(String id) { return new RuleFlowProcessFactory(id); }
public RuleFlowProcessFactory variable(String name, DataType type, String metaDataName, Object metaDataValue) { return variable(name, type, null, metaDataName, metaDataValue); }
public VariableScope getVariableScope() { return (VariableScope) getDefaultContext(VariableScope.VARIABLE_SCOPE); }
public CompensationScope getCompensationScope() { return (CompensationScope) getDefaultContext(CompensationScope.COMPENSATION_SCOPE); }
public SwimlaneContext getSwimlaneContext() { return (SwimlaneContext) getDefaultContext(SwimlaneContext.SWIMLANE_SCOPE); }