Skip to content

defining workflow engine

Mahmoud Ben Hassine edited this page Jun 30, 2017 · 2 revisions

The WorkFlowEngine API

The WorkFlowEngine interface represents a workflow engine :

public interface WorkFlowEngine {

    WorkReport run(WorkFlow workFlow);

}

Easy Flows provides an implementation of this interface that you can get using the WorkFlowEngineBuilder :

WorkFlowEngine workFlowEngine = aNewWorkFlowEngine().build();

You can then execute a WorkFlow by invoking the run method :

WorkFlow workFlow = ... // create work flow
WorkReport workReport = workFlowEngine.run(workflow);

At the end of execution, a WorkReport is returned.

Clone this wiki locally