Class ForEachState

    • Constructor Detail

      • ForEachState

        public ForEachState()
        No args constructor for use in serialization
    • Method Detail

      • getInputCollection

        public String getInputCollection()
        Workflow expression selecting an array element of the states data
      • setInputCollection

        public void setInputCollection​(String inputCollection)
        Workflow expression selecting an array element of the states data
      • withInputCollection

        public ForEachState withInputCollection​(String inputCollection)
      • getOutputCollection

        public String getOutputCollection()
        Workflow expression specifying an array element of the states data to add the results of each iteration
      • setOutputCollection

        public void setOutputCollection​(String outputCollection)
        Workflow expression specifying an array element of the states data to add the results of each iteration
      • withOutputCollection

        public ForEachState withOutputCollection​(String outputCollection)
      • getIterationParam

        public String getIterationParam()
        Name of the iteration parameter that can be referenced in actions/workflow. For each parallel iteration, this param should contain an unique element of the inputCollection array
      • setIterationParam

        public void setIterationParam​(String iterationParam)
        Name of the iteration parameter that can be referenced in actions/workflow. For each parallel iteration, this param should contain an unique element of the inputCollection array
      • getBatchSize

        public int getBatchSize()
        Specifies how many iterations may run in parallel at the same time. Used if 'mode' property is set to 'parallel' (default)
      • setBatchSize

        public void setBatchSize​(int batchSize)
        Specifies how many iterations may run in parallel at the same time. Used if 'mode' property is set to 'parallel' (default)
      • withBatchSize

        public ForEachState withBatchSize​(int batchSize)
      • getActions

        public List<Action> getActions()
        Actions to be executed for each of the elements of inputCollection
      • setActions

        public void setActions​(List<Action> actions)
        Actions to be executed for each of the elements of inputCollection
      • isUsedForCompensation

        public boolean isUsedForCompensation()
        If true, this state is used to compensate another state. Default is false
      • setUsedForCompensation

        public void setUsedForCompensation​(boolean usedForCompensation)
        If true, this state is used to compensate another state. Default is false
      • withUsedForCompensation

        public ForEachState withUsedForCompensation​(boolean usedForCompensation)
      • getMode

        public ForEachState.Mode getMode()
        Specifies how iterations are to be performed (sequentially or in parallel)
      • setMode

        public void setMode​(ForEachState.Mode mode)
        Specifies how iterations are to be performed (sequentially or in parallel)