Package net.pricefx.common.dto
Class ChainedJobInfo
Object
ChainedJobInfo
This class is a DTO that holds information about jobs that should be executed next.
Or are chained together. Hence the name.
For an example of use see How to Schedule Jobs with Dependencies.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setExecuteOnError
(boolean executeOnError) Should this job be executed even if the previous job failed?void
setNextJobs
(List<ChainedJobInfo> nextJobs) Sets a list of jobs that are then executed after this one.void
setParameters
(Map<String, Object> parameters) Sets the additional init parameters of this next job.void
setTargetObject
(String targetObject) Sets the target object of next job.
-
Constructor Details
-
ChainedJobInfo
public ChainedJobInfo()
-
-
Method Details
-
getNextJobs
-
setNextJobs
Sets a list of jobs that are then executed after this one.- Parameters:
nextJobs
-
-
getTargetObject
-
setTargetObject
Sets the target object of next job. For example the TypedId of a PriceGrid or a CFS- Parameters:
targetObject
-
-
getParameters
-
setParameters
Sets the additional init parameters of this next job. OCntents vary by job and target object type- Parameters:
parameters
-
-
isExecuteOnError
public boolean isExecuteOnError() -
setExecuteOnError
public void setExecuteOnError(boolean executeOnError) Should this job be executed even if the previous job failed?- Parameters:
executeOnError
-
-
getCombinedParameters
-