Class AbstractNodeWorkflowComponent
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.plugins.workspaces.workflow.AbstractNodeWorkflowComponent
- All Implemented Interfaces:
LogEnabled
,Serviceable
- Direct Known Subclasses:
AddEventFunction
Abstract class for easily retrieving environment components
in a condition or a function and especially a resource.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant for storing the content into the transient variables map.Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ExplorerNode
getExplorerNode
(Map transientVars) Retrieve the resource associated with the workflow.Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser, service
-
Field Details
-
EXPLORERNODE_KEY
Constant for storing the content into the transient variables map.
-
-
Constructor Details
-
AbstractNodeWorkflowComponent
public AbstractNodeWorkflowComponent()
-
-
Method Details
-
getExplorerNode
protected ExplorerNode getExplorerNode(Map transientVars) throws com.opensymphony.workflow.WorkflowException Retrieve the resource associated with the workflow.- Parameters:
transientVars
- the parameters from the call.- Returns:
- the resource.
- Throws:
com.opensymphony.workflow.WorkflowException
- if the resource is not found.
-