public class LoopConfiguration extends Object implements Cloneable
Loop
.
Set the setCondition(Activity)
for an activity with an output port
called "loop". The LoopLayer will re-send a job only if this port exist and
it's output can be dereferenced to a string equal to "true".
If isRunFirst()
is false, the loop layer will check the condition
before invoking the job for the first time, otherwise the condition will be
invoked after the job has come back with successful results.
Constructor and Description |
---|
LoopConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoopConfiguration |
clone() |
Activity<?> |
getCondition() |
Properties |
getProperties() |
boolean |
isRunFirst() |
void |
setCondition(Activity<?> activity) |
void |
setProperties(Properties properties) |
void |
setRunFirst(boolean runFirst) |
public Properties getProperties()
public void setProperties(Properties properties)
public LoopConfiguration clone()
public Activity<?> getCondition()
public boolean isRunFirst()
public void setCondition(Activity<?> activity)
public void setRunFirst(boolean runFirst)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.