Class WorkflowReadinessDelegate

java.lang.Object
wt.change2.flexible.FlexibleChangeItemReadinessDelegate
wt.change2.flexible.WorkflowReadinessDelegate
All Implemented Interfaces:
Comparable<FlexibleChangeItemReadinessDelegate>

public class WorkflowReadinessDelegate extends FlexibleChangeItemReadinessDelegate
Delegate for determining if a change item is ready for conversion. This class checks if the given flexible change items have a running workflow process and whether or not that workflow process has the handlesClosure workflow variable set to either true or false. If there is no running workflow, or a running workflow is found that has the handlesClosure variable, this delegate will mark the associated change item as ready, otherwise it will mark it as not ready.

Supported API: true

Extendable: true
  • Method Details

    • determineReadiness

      public WTKeyedMap determineReadiness(WTCollection changeItems) throws WTException
      Multi object api for determining if the given change items should be marked as ready for conversion. If the given change items are found to have no running workflow or a workflow that has the handlesClosure variable set to either true or false, they will be marked as ready, otherwise it will be marked as not ready.
      Specified by:
      determineReadiness in class FlexibleChangeItemReadinessDelegate
      Parameters:
      changeItems - - a wtCollection of FlexibleChangeItems.
      Returns:
      WTKeyedMap - holds information as to the readiness state of the given change items. The key is the change item and the value is the readiness info. This api may return an empty map, but should never return null.

      Supported API: true
      Throws:
      WTException