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 Details

    • ChainedJobInfo

      public ChainedJobInfo()
  • Method Details

    • 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 -
    • getParameters

      public Map<String,Object> getParameters()
    • 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 -
    • getCombinedParameters

      public Map<String,Object> getCombinedParameters(String key)