public final class Step extends InheritableJobElement implements PropertiesHolder
jsl:Step
job element type in job XML.Modifier and Type | Method and Description |
---|---|
void |
addTransitionElement(Transition transition)
Adds a
org.jberet.job.model.Transition to the list of transition elements of this job element. |
String |
getAllowStartIfComplete()
Gets the step's
allow-start-if-complete attribute value. |
boolean |
getAllowStartIfCompleteBoolean()
Gets the step's
allow-start-if-complete attribute value as boolean . |
String |
getAttributeNext()
Gets the value of the
next attribute, which specifies the next job element after this step completes. |
RefArtifact |
getBatchlet()
Gets the step's batchlet as a
RefArtifact . |
Chunk |
getChunk()
Gets the step's chunk element.
|
String |
getId()
Gets the id of this job element.
|
Partition |
getPartition()
Gets the step's partition element.
|
Properties |
getProperties()
Gets the
org.jberet.job.model.Properties contained in this job element. |
String |
getStartLimit()
Gets the step's
start-limit attribute value as string. |
int |
getStartLimitInt()
Gets the step's
start-limit attribute value as int . |
List<Transition> |
getTransitionElements()
Gets the list of transition elements, such as
Transition.End ,
Transition.Fail , Transition.Next ,
Transition.Stop . |
void |
setProperties(Properties properties)
Sets the
org.jberet.job.model.Properties contained in this job element. |
getListeners, isAbstract, setListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProperties, setProperties
public String getStartLimit()
start-limit
attribute value as string.start-limit
attribute value as stringpublic int getStartLimitInt()
start-limit
attribute value as int
.start-limit
attribute value as int
public String getAllowStartIfComplete()
allow-start-if-complete
attribute value.allow-start-if-complete
attribute value as stringpublic boolean getAllowStartIfCompleteBoolean()
allow-start-if-complete
attribute value as boolean
.allow-start-if-complete
attribute value as boolean
public String getAttributeNext()
next
attribute, which specifies the next job element after this step completes.next
attribute value (name of the next job element)public RefArtifact getBatchlet()
RefArtifact
. For chunk-type step, this method returns null
.public Chunk getChunk()
null
.public Partition getPartition()
public final String getId()
JobElement
getId
in interface JobElement
public List<Transition> getTransitionElements()
JobElement
Transition.End
,
Transition.Fail
, Transition.Next
,
Transition.Stop
.getTransitionElements
in interface JobElement
public void addTransitionElement(Transition transition)
JobElement
org.jberet.job.model.Transition
to the list of transition elements of this job element.addTransitionElement
in interface JobElement
transition
- a org.jberet.job.model.Transition
public Properties getProperties()
org.jberet.job.model.Properties
contained in this job element.org.jberet.job.model.Properties
contained in this job elementpublic void setProperties(Properties properties)
org.jberet.job.model.Properties
contained in this job element.properties
- org.jberet.job.model.Properties
for this job elementCopyright © 2020 JBoss by Red Hat. All rights reserved.