Interface DocumentRoutingEscalationService

    • Field Detail

      • SUSPENDED_NODES_WITH_ESCALATION_QUERY

        static final String SUSPENDED_NODES_WITH_ESCALATION_QUERY
        Since:
        2023.0
        See Also:
        Constant Field Values
    • Method Detail

      • queryForSuspendedNodesWithEscalation

        @Deprecated
        List<String> queryForSuspendedNodesWithEscalation​(CoreSession session)
        Deprecated.
        since 2023.0, this method doesn't scale, use the CoreSession query APIs with SUSPENDED_NODES_WITH_ESCALATION_QUERY instead
        Query all running workflows and returns a list of nodes that are suspended and have escalation rules that can be inspected. Uses an unrestricted session.
        Since:
        5.7.2
      • isExecutionRunning

        default boolean isExecutionRunning​(String repositoryName)
        Returns whether a workflow escalation execution is running on the given repositoryName.
        Since:
        2023.0
      • setExecutionRunning

        default void setExecutionRunning​(String repositoryName)
        Sets that a workflow escalation execution on given repositoryName is currently running.
        Since:
        2023.0
      • computeEscalationRulesToExecute

        default List<GraphNode.EscalationRule> computeEscalationRulesToExecute​(GraphNode node)
        Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.
        Parameters:
        node - the GraphNode to retrieve and evaluate from the escalation rules
        Since:
        5.7.2
      • computeEscalationRulesToExecute

        default List<GraphNode.EscalationRule> computeEscalationRulesToExecute​(GraphNode node,
                                                                               boolean handleTransaction)
        Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.
        Parameters:
        node - the GraphNode to retrieve and evaluate from the escalation rules
        handleTransaction - whether the escalation rule evaluation should handle the transaction and save
        Since:
        2023.0
      • executeEscalationRule

        default void executeEscalationRule​(GraphNode.EscalationRule rule)
        Executes the given escalation rule.
        Parameters:
        rule - the rule to execute
        Since:
        2023.0
      • executeEscalationRule

        default void executeEscalationRule​(GraphNode.EscalationRule rule,
                                           boolean handleTransaction)
        Executes the given escalation rule.
        Parameters:
        rule - the rule to execute
        handleTransaction - whether the escalation rule execution should handle the transaction and save
        Since:
        2023.0