Interface IWorkflowGlobalHandlerValidationContext

All Superinterfaces:
IBaseEnvironmentData, IBaseWorkflowEnvironmentData, IWorkflowHandlerValidationContext, IWorkflowValidationContext, IWorkflowValidationEnvironmentData
All Known Implementing Classes:
DefaultWorkflowValidationContext

public interface IWorkflowGlobalHandlerValidationContext extends IWorkflowValidationContext, IWorkflowHandlerValidationContext
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Method Details

    • addGlobalValidationMessage

      void addGlobalValidationMessage(ElementKey elementKey, IWorkflowValidationMessage message)
      Adds a validations message for the workflow element with the given key.
      Parameters:
      elementKey - Key of the element to which the validation result applies.
      message - Validation message to add.
    • getFlowAnalysis

      IWorkflowFlowAnalysis getFlowAnalysis()
      Returns:
      A handler for querying data about the execution of the workflow task being validated, such as whether a certain node is reachable from another node.
    • getNodeByUuid

      Parameters:
      key - Key of a node to find.
      nodeType - Expected type of the node. Pass null or the empty string to return the node irrespective of its type.
      Returns:
      The node with the given key and the given type in the current workflow process. null when no such node exists.
    • getNodeByUuid

      default IWorkflowElementWithDeserializedModel<?,WorkflowNode> getNodeByUuid(ElementKey key, String nodeType)
      Parameters:
      key - Key of a node to find.
      nodeType - Expected type of the node. Pass null or the empty string to return the node irrespective of its type.
      Returns:
      The node with the given key and the given type in the current workflow process. null when no such node exists.
    • getNodesByType

      Parameters:
      nodeType - Expected type of the node. Pass null or the empty string to return the all nodes.
      Returns:
      All nodes of the given type, or all nodes when no type is given.
    • getTriggerByUuid

      Parameters:
      key - Key of a trigger to find.
      triggerType - Expected type of the trigger. Pass null or the empty string to return the trigger irrespective of its type.
      Returns:
      The trigger with the given key and the given type in the current workflow process. null when no such node exists.
    • getTriggerByUuid

      default IWorkflowElementWithDeserializedModel<?,WorkflowTrigger> getTriggerByUuid(ElementKey key, String triggerType)
      Parameters:
      key - Key of a trigger to find.
      triggerType - Expected type of the trigger. Pass null or the empty string to return the trigger irrespective of its type.
      Returns:
      The trigger with the given key and the given type in the current workflow process. null when no such node exists.
    • getTriggersByType

      Parameters:
      triggerType - Expected type of the trigger. Pass null or the empty string to return the all triggers.
      Returns:
      All triggers of the given type, or all triggers when no type is given.
    • markGlobalValidationFailed

      void markGlobalValidationFailed(ElementKey key)
      Marks the given workflow element as invalid, when validation failed.
      Parameters:
      key - Key of the element to mark as invalid.