public interface TaskletInputContext
Modifier and Type | Method and Description |
---|---|
long[] |
getAssociatedTasklets()
IDs of all tasklets that ran before this tasklet and for which this tasklet has
an association with.
|
java.lang.String |
getCookie(java.lang.String name,
Tasklet.Scope scope)
If a cookie is set using
TaskletOutputContext.setCookie() it can
be shared with future run jobs/Tasklets. |
java.lang.String |
getDescription()
User defined description given to the Tasklet.
|
long |
getID()
A unique id assigned to this Tasklet.
|
java.lang.Object |
getInputBean()
Returns the input JavaBean that is persisted on the server if one is defined.
|
JobContext |
getJobContext()
JobContext associated with the job that the Tasklet runs in.
|
java.lang.String |
getName()
User defined name assigned to the Tasklet.
|
long |
getOrder()
Executing order of this Tasklet within the job/workflow chain.
|
boolean |
isAssociationError()
If a tasklet has dependency on other tasklets (that run earlier in the job chain)
this method will let this tasklet know if any one of those preceding source tasklets logged
an error (vis Java Logging API or Log4J) or thrown a TaskletFailureException.
|
boolean |
isAssociationFailure()
If a tasklet has an association with another tasklets (that run earlier in the job chain)
this method will let this tasklet know if any one of those preceding source tasklets threw
a TaskFailureException.
|
boolean |
isAssociationWarning()
If a tasklet has association on other tasklets (that run earlier in the job chain)
this method will let this tasklet know if any one of those preceding source tasklets logged
a warning (vis Java Logging API or Log4J).
|
boolean |
isRetry()
Check if this Tasklet is being retried for a job run that previously failed
to complete.
|
JobContext getJobContext()
java.lang.Object getInputBean()
null
is returned. The object type
is defined in the SOAFaces definition and must have a default
constructor. You should cast this object
before using it. If the input JavaBean has not been saved before, then
a default object is returned, otherwise the saved version is returned.null
if input JavaBean is defined for this Tasklet.long getID()
long getOrder()
java.lang.String getName()
java.lang.String getDescription()
boolean isAssociationFailure()
boolean isAssociationError()
boolean isAssociationWarning()
long[] getAssociatedTasklets()
java.lang.String getCookie(java.lang.String name, Tasklet.Scope scope)
If a cookie is set using TaskletOutputContext.setCookie()
it can
be shared with future run jobs/Tasklets. This method will return any cookie
shared by a previously run Tasklet. APP_SCOPE cookies are shared between
all Tasklet/job runs. RUN_SCOPE cookies are only shared between retry attempts
of Tasklet/job run.
name
- Name of the cookie to return.scope
- APP or RUN scope the cookie is associated with.TaskletOutputContext#setCookie(String name, String name, Scope scope)
boolean isRetry()
Copyright © Grand Logic, Inc. All Rights Reserved.