Package net.anwiba.commons.workflow
Class WorkflowBuilder<T>
- java.lang.Object
-
- net.anwiba.commons.workflow.WorkflowBuilder<T>
-
- All Implemented Interfaces:
IWorkflowBuilder<T>
public class WorkflowBuilder<T> extends java.lang.Object implements IWorkflowBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description WorkflowBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IWorkflowBuilder<T>add(IApplicable<IState<T>> applicable, IFunction<IState<T>,IExecutable<T>,java.lang.RuntimeException> factory)IWorkflowBuilder<T>add(IApplicable<IState<T>> applicable, IExecutable<T> executable)IWorkflowBuilder<T>add(ITransition<T> transition)IWorkflow<T>build()IWorkflowBuilder<T>setClosureDelegatorFactory(IExecuterFactory<T> closureDelegatorFactory)IWorkflowBuilder<T>setEventDispatchThreadExecuter()IWorkflowBuilder<T>setWorkflowController(IWorkflowController<T> workflowController)
-
-
-
Method Detail
-
add
public IWorkflowBuilder<T> add(IApplicable<IState<T>> applicable, IExecutable<T> executable)
- Specified by:
addin interfaceIWorkflowBuilder<T>
-
add
public IWorkflowBuilder<T> add(ITransition<T> transition)
- Specified by:
addin interfaceIWorkflowBuilder<T>
-
add
public IWorkflowBuilder<T> add(IApplicable<IState<T>> applicable, IFunction<IState<T>,IExecutable<T>,java.lang.RuntimeException> factory)
- Specified by:
addin interfaceIWorkflowBuilder<T>
-
setClosureDelegatorFactory
public IWorkflowBuilder<T> setClosureDelegatorFactory(IExecuterFactory<T> closureDelegatorFactory)
- Specified by:
setClosureDelegatorFactoryin interfaceIWorkflowBuilder<T>
-
setWorkflowController
public IWorkflowBuilder<T> setWorkflowController(IWorkflowController<T> workflowController)
- Specified by:
setWorkflowControllerin interfaceIWorkflowBuilder<T>
-
setEventDispatchThreadExecuter
public IWorkflowBuilder<T> setEventDispatchThreadExecuter()
- Specified by:
setEventDispatchThreadExecuterin interfaceIWorkflowBuilder<T>
-
build
public IWorkflow<T> build()
- Specified by:
buildin interfaceIWorkflowBuilder<T>
-
-