Interface DocumentRoutingEscalationService
- All Known Implementing Classes:
DocumentRoutingEscalationServiceImpl
public interface DocumentRoutingEscalationService
- Since:
- 5.7.2
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<GraphNode.EscalationRule>
Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.computeEscalationRulesToExecute
(GraphNode node, boolean handleTransaction) Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.default void
Executes the given escalation rule.void
executeEscalationRule
(GraphNode.EscalationRule rule, boolean handleTransaction) Executes the given escalation rule.boolean
isExecutionRunning
(String repositoryName) Returns whether a workflow escalation execution is running on the givenrepositoryName
.Deprecated.void
scheduleExecution
(GraphNode.EscalationRule rule, CoreSession session) Deprecated.since 2023.0, it was replaced byDocumentRoutingEscalationAction
void
setExecutionRunning
(String repositoryName) Sets that a workflow escalation execution on givenrepositoryName
is currently running.
-
Field Details
-
SUSPENDED_NODES_WITH_ESCALATION_QUERY
- Since:
- 2023.0
- See Also:
-
-
Method Details
-
queryForSuspendedNodesWithEscalation
Deprecated.since 2023.0, this method doesn't scale, use theCoreSession
query APIs withSUSPENDED_NODES_WITH_ESCALATION_QUERY
insteadQuery 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
Returns whether a workflow escalation execution is running on the givenrepositoryName
.- Since:
- 2023.0
-
setExecutionRunning
Sets that a workflow escalation execution on givenrepositoryName
is currently running.- Since:
- 2023.0
-
computeEscalationRulesToExecute
Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.- Parameters:
node
- theGraphNode
to retrieve and evaluate from the escalation rules- Since:
- 5.7.2
-
computeEscalationRulesToExecute
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
- theGraphNode
to retrieve and evaluate from the escalation ruleshandleTransaction
- whether the escalation rule evaluation should handle the transaction and save- Since:
- 2023.0
-
executeEscalationRule
Executes the given escalation rule.- Parameters:
rule
- the rule to execute- Since:
- 2023.0
-
executeEscalationRule
Executes the given escalation rule.- Parameters:
rule
- the rule to executehandleTransaction
- whether the escalation rule execution should handle the transaction and save- Since:
- 2023.0
-
scheduleExecution
Deprecated.since 2023.0, it was replaced byDocumentRoutingEscalationAction
Schedules for execution an escalation rule. Uses an unrestricted session.- Since:
- 5.7.2
-
CoreSession
query APIs withSUSPENDED_NODES_WITH_ESCALATION_QUERY
instead