incrementOperationsFailed

The BatchProcessBase.incrementOperationsFailed method has the following signature.
  • incrementOperationsFailed()

The incrementOperationsFailed method is a no-argument method that increments an internal counter for how many operations failed. For example, suppose your batch process iterates across entities of some type with special conditions and specially handle each found item. For each entity for which you have an error condition, call this method once to track the progress of this batch process.

This method returns the current number of operations failed. It is possible to use the returned value in the following ways:

  • In PolicyCenter to show the progress of the batch process
  • In debugging code to track the progress of the batch process
Important: For any operations that fail, call both the incrementOperationsFailed method and the incrementOperationsCompleted method. Also, call the incrementOperationsFailedReasons method at the same time as well.