public final class Job extends InheritableJobElement implements Serializable, PropertiesHolder
jsl:Job
type, the root element of job XML.Modifier and Type | Field and Description |
---|---|
static String |
JOB_XML_NAME
Job parameter key to specify job xml name when it differs from job id.
|
static String |
UNRESTARTABLE
Internal value to indicate that a job execution cannot be restarted.
|
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. |
boolean |
equals(Object o) |
String |
getId()
Gets the id of this job element.
|
List<InheritableJobElement> |
getInheritingJobElements()
Gets all direct or indirect job elements in this job that inherit from a parent (ie, has a non-null
parent attribute).
|
List<JobElement> |
getJobElements()
Gets the list of job elements, such as steps, decisions, flows or splits, contained in this job.
|
String |
getJobXmlName()
Gets
jobXmlName , which may be null. |
Properties |
getProperties()
Gets the
org.jberet.job.model.Properties contained in this job element. |
String |
getRestartable()
Gets the job's
restartable attribute value as string. |
boolean |
getRestartableBoolean()
Gets the job's
restartable attribute value as boolean. |
List<Transition> |
getTransitionElements()
Gets the list of transition elements, such as
Transition.End ,
Transition.Fail , Transition.Next ,
Transition.Stop . |
int |
hashCode() |
void |
setJobXmlName(String jobXmlName)
Sets
jobXmlName only if it differs from job id. |
void |
setProperties(Properties properties)
Sets the
org.jberet.job.model.Properties contained in this job element. |
getListeners, isAbstract, setListeners
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getProperties, setProperties
public static final String UNRESTARTABLE
public static final String JOB_XML_NAME
getJobXmlName()
,
setJobXmlName(String)
,
Constant Field Valuespublic String getRestartable()
restartable
attribute value as string.restartable
attribute value as stringpublic boolean getRestartableBoolean()
restartable
attribute value as boolean.restartable
attribute value as booleanpublic void setJobXmlName(String jobXmlName)
jobXmlName
only if it differs from job id.jobXmlName
- the base name of the job xml file, which may be different from job id attributepublic String getJobXmlName()
jobXmlName
, which may be null.id
; otherwise return null.public List<JobElement> getJobElements()
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 List<InheritableJobElement> getInheritingJobElements()
public final String getId()
JobElement
getId
in interface JobElement
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 © 2018 JBoss by Red Hat. All rights reserved.