Class DocumentRoutingEscalationServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl
- All Implemented Interfaces:
DocumentRoutingEscalationService
public class DocumentRoutingEscalationServiceImpl
extends Object
implements DocumentRoutingEscalationService
- Since:
- 5.7.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
static final String
Deprecated.since 2023.0, useDocumentRoutingEscalationService.SUSPENDED_NODES_WITH_ESCALATION_QUERY
insteadprotected static final String
Fields inherited from interface org.nuxeo.ecm.platform.routing.core.api.DocumentRoutingEscalationService
SUSPENDED_NODES_WITH_ESCALATION_QUERY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeEscalationRulesToExecute
(GraphNode node, boolean handleTransaction) Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.void
executeEscalationRule
(GraphNode.EscalationRule rule, boolean handleTransaction) Executes the given escalation rule.protected OperationContext
getExecutionContext
(CoreSession session, GraphNode node, boolean handleTransaction) protected static KeyValueStore
boolean
isExecutionRunning
(String repositoryName) Returns whether a workflow escalation execution is running on the givenrepositoryName
.Deprecated.void
scheduleExecution
(GraphNode.EscalationRule rule, CoreSession session) Deprecated.void
setExecutionRunning
(String repositoryName) Sets that a workflow escalation execution on givenrepositoryName
is currently running.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.routing.core.api.DocumentRoutingEscalationService
computeEscalationRulesToExecute, executeEscalationRule
-
Field Details
-
queryForSuspendedNodesWithEscalation
Deprecated.since 2023.0, useDocumentRoutingEscalationService.SUSPENDED_NODES_WITH_ESCALATION_QUERY
instead- See Also:
-
WORKFLOW_ESCALATION_KV_STORE_NAME
- Since:
- 2023.0
- See Also:
-
ESCALATION_RUNNING_TTL_KEY
- Since:
- 2023.0
- See Also:
-
-
Constructor Details
-
DocumentRoutingEscalationServiceImpl
public DocumentRoutingEscalationServiceImpl()
-
-
Method Details
-
queryForSuspendedNodesWithEscalation
Deprecated.Description copied from interface:DocumentRoutingEscalationService
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.- Specified by:
queryForSuspendedNodesWithEscalation
in interfaceDocumentRoutingEscalationService
-
isExecutionRunning
Description copied from interface:DocumentRoutingEscalationService
Returns whether a workflow escalation execution is running on the givenrepositoryName
.- Specified by:
isExecutionRunning
in interfaceDocumentRoutingEscalationService
-
setExecutionRunning
Description copied from interface:DocumentRoutingEscalationService
Sets that a workflow escalation execution on givenrepositoryName
is currently running.- Specified by:
setExecutionRunning
in interfaceDocumentRoutingEscalationService
-
getKvStore
-
computeEscalationRulesToExecute
public List<GraphNode.EscalationRule> computeEscalationRulesToExecute(GraphNode node, boolean handleTransaction) Description copied from interface:DocumentRoutingEscalationService
Computes the list of escalation rules to be executed after their conditions are evaluated for the given node.- Specified by:
computeEscalationRulesToExecute
in interfaceDocumentRoutingEscalationService
- Parameters:
node
- theGraphNode
to retrieve and evaluate from the escalation ruleshandleTransaction
- whether the escalation rule evaluation should handle the transaction and save
-
executeEscalationRule
Description copied from interface:DocumentRoutingEscalationService
Executes the given escalation rule.- Specified by:
executeEscalationRule
in interfaceDocumentRoutingEscalationService
- Parameters:
rule
- the rule to executehandleTransaction
- whether the escalation rule execution should handle the transaction and save
-
getExecutionContext
protected OperationContext getExecutionContext(CoreSession session, GraphNode node, boolean handleTransaction) -
scheduleExecution
Deprecated.Description copied from interface:DocumentRoutingEscalationService
Schedules for execution an escalation rule. Uses an unrestricted session.- Specified by:
scheduleExecution
in interfaceDocumentRoutingEscalationService
-
DocumentRoutingEscalationAction