Interface DocumentRoutingEscalationService
-
- All Known Implementing Classes:
DocumentRoutingEscalationServiceImpl
public interface DocumentRoutingEscalationService
- Since:
- 5.7.2
-
-
Field Summary
Fields Modifier and Type Field Description static String
SUSPENDED_NODES_WITH_ESCALATION_QUERY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description 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.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.default void
executeEscalationRule(GraphNode.EscalationRule rule)
Executes the given escalation rule.default void
executeEscalationRule(GraphNode.EscalationRule rule, boolean handleTransaction)
Executes the given escalation rule.default boolean
isExecutionRunning(String repositoryName)
Returns whether a workflow escalation execution is running on the givenrepositoryName
.List<String>
queryForSuspendedNodesWithEscalation(CoreSession session)
Deprecated.since 2023.0, this method doesn't scale, use theCoreSession
query APIs withSUSPENDED_NODES_WITH_ESCALATION_QUERY
insteadvoid
scheduleExecution(GraphNode.EscalationRule rule, CoreSession session)
Deprecated.since 2023.0, it was replaced byDocumentRoutingEscalationAction
default void
setExecutionRunning(String repositoryName)
Sets that a workflow escalation execution on givenrepositoryName
is currently running.
-
-
-
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 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
default boolean isExecutionRunning(String repositoryName)
Returns whether a workflow escalation execution is running on the givenrepositoryName
.- Since:
- 2023.0
-
setExecutionRunning
default void setExecutionRunning(String repositoryName)
Sets that a workflow escalation execution on givenrepositoryName
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
- theGraphNode
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
- theGraphNode
to retrieve and evaluate from the escalation ruleshandleTransaction
- 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 executehandleTransaction
- whether the escalation rule execution should handle the transaction and save- Since:
- 2023.0
-
scheduleExecution
@Deprecated void scheduleExecution(GraphNode.EscalationRule rule, CoreSession session)
Deprecated.since 2023.0, it was replaced byDocumentRoutingEscalationAction
Schedules for execution an escalation rule. Uses an unrestricted session.- Since:
- 5.7.2
-
-