Class WorkflowElementAvailabilityCheck


  • public class WorkflowElementAvailabilityCheck
    extends Object
    Utility for checking whether a workflow element is available and allowed to be used.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Constructor Detail

      • WorkflowElementAvailabilityCheck

        public WorkflowElementAvailabilityCheck​(IBaseEnvironmentData environmentData)
        Creates a new availability check with the given environment data.
        Parameters:
        environmentData - Environment data to use.
    • Method Detail

      • isAvailable

        public boolean isAvailable​(IWorkflowElementTypeProviding element,
                                   Object data)
        Parameters:
        element - Type of the workflow element to check.
        data - Deserialized model of the workflow element.
        Returns:
        Whether the workflow element is available and allowed to be used.