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
Nested Classes Modifier and Type Class Description static class
DocumentRoutingEscalationServiceImpl.EscalationRuleWork
Deprecated.since 2023.0, it was replaced byDocumentRoutingEscalationAction
-
Field Summary
Fields Modifier and Type Field Description protected static String
ESCALATION_RUNNING_TTL_KEY
static String
queryForSuspendedNodesWithEscalation
Deprecated.since 2023.0, useDocumentRoutingEscalationService.SUSPENDED_NODES_WITH_ESCALATION_QUERY
insteadprotected static String
WORKFLOW_ESCALATION_KV_STORE_NAME
-
Fields inherited from interface org.nuxeo.ecm.platform.routing.core.api.DocumentRoutingEscalationService
SUSPENDED_NODES_WITH_ESCALATION_QUERY
-
-
Constructor Summary
Constructors Constructor Description DocumentRoutingEscalationServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.void
executeEscalationRule(GraphNode.EscalationRule rule, boolean handleTransaction)
Executes the given escalation rule.protected OperationContext
getExecutionContext(CoreSession session, GraphNode node, boolean handleTransaction)
protected static KeyValueStore
getKvStore()
boolean
isExecutionRunning(String repositoryName)
Returns whether a workflow escalation execution is running on the givenrepositoryName
.List<String>
queryForSuspendedNodesWithEscalation(CoreSession session)
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 Detail
-
queryForSuspendedNodesWithEscalation
@Deprecated public static final String queryForSuspendedNodesWithEscalation
Deprecated.since 2023.0, useDocumentRoutingEscalationService.SUSPENDED_NODES_WITH_ESCALATION_QUERY
instead- See Also:
- Constant Field Values
-
WORKFLOW_ESCALATION_KV_STORE_NAME
protected static final String WORKFLOW_ESCALATION_KV_STORE_NAME
- Since:
- 2023.0
- See Also:
- Constant Field Values
-
ESCALATION_RUNNING_TTL_KEY
protected static final String ESCALATION_RUNNING_TTL_KEY
- Since:
- 2023.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
queryForSuspendedNodesWithEscalation
@Deprecated public List<String> queryForSuspendedNodesWithEscalation(CoreSession session)
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
public boolean isExecutionRunning(String repositoryName)
Description copied from interface:DocumentRoutingEscalationService
Returns whether a workflow escalation execution is running on the givenrepositoryName
.- Specified by:
isExecutionRunning
in interfaceDocumentRoutingEscalationService
-
setExecutionRunning
public void setExecutionRunning(String repositoryName)
Description copied from interface:DocumentRoutingEscalationService
Sets that a workflow escalation execution on givenrepositoryName
is currently running.- Specified by:
setExecutionRunning
in interfaceDocumentRoutingEscalationService
-
getKvStore
protected static KeyValueStore 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
public void executeEscalationRule(GraphNode.EscalationRule rule, boolean handleTransaction)
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 public void scheduleExecution(GraphNode.EscalationRule rule, CoreSession session)
Deprecated.Description copied from interface:DocumentRoutingEscalationService
Schedules for execution an escalation rule. Uses an unrestricted session.- Specified by:
scheduleExecution
in interfaceDocumentRoutingEscalationService
-
-