Class 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 Detail

      • ChainedJobInfo

        public ChainedJobInfo()
    • Method Detail

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