Skip to content

Files

Latest commit

596d76f · Jun 23, 2019

History

History

sample01

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 25, 2018
Jan 27, 2019
Dec 25, 2018
Dec 25, 2018
Jun 23, 2019

Hello World Sample

Illustrates the basic usage of the fluent API for defining workflows.

public class HelloWorkflow implements Workflow {

    @Override
    public void build(WorkflowBuilder builder) {
        builder
            .startsWith(Hello.class)                
            .then(Goodbye.class);
    }
    ...
}

and how to define steps

public class Hello implements StepBody {

    @Override
    public ExecutionResult run(StepExecutionContext context) {
        System.out.println("Hello world");
        return ExecutionResult.next();
    }    
}