public final class SplitBuilder extends Object
Split
. After the split is built, the same SplitBuilder
instance should not be reused to build another split.
This class does not support multi-threaded access or modification. Usage example:
Split split = new SplitBuilder(splitName) .flow(new FlowBuilder(flowName) .step(new StepBuilder(stepName).batchlet(batchlet1Name).build()) .build()) .flow(new FlowBuilder(flow2Name) .step(new StepBuilder(step2Name).batchlet(batchlet1Name).build()) .build()) .next(step3Name) .build())
JobBuilder
,
FlowBuilder
,
DecisionBuilder
,
StepBuilder
Constructor and Description |
---|
SplitBuilder(String id)
|
Modifier and Type | Method and Description |
---|---|
Split |
build()
Builds the split.
|
SplitBuilder |
flow(Flow flow)
Adds a flow to the split.
|
SplitBuilder |
next(String next)
Sets the
next attribute value for the split. |
public SplitBuilder(String id)
id
- split idpublic SplitBuilder next(String next)
next
attribute value for the split.next
- id of the next job element after the splitSplitBuilder
public SplitBuilder flow(Flow flow)
flow
- the flow to be added to the splitSplitBuilder
Copyright © 2017 JBoss by Red Hat. All rights reserved.