Package net.pricefx.common.dto
Class ChainedJobInfo
- Object
-
- ChainedJobInfo
-
public class ChainedJobInfo extends Object
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
Constructors Constructor Description ChainedJobInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getCombinedParameters(String key)
List<ChainedJobInfo>
getNextJobs()
Map<String,Object>
getParameters()
String
getTargetObject()
boolean
isExecuteOnError()
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.
-
-
-
Method Detail
-
getNextJobs
public List<ChainedJobInfo> getNextJobs()
-
setNextJobs
public void setNextJobs(List<ChainedJobInfo> nextJobs)
Sets a list of jobs that are then executed after this one.- Parameters:
nextJobs
-
-
getTargetObject
public String getTargetObject()
-
setTargetObject
public void setTargetObject(String targetObject)
Sets the target object of next job. For example the TypedId of a PriceGrid or a CFS- Parameters:
targetObject
-
-
setParameters
public void setParameters(Map<String,Object> parameters)
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
-
-
-