Class ExtensibleFunction
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.workflow.extensions.ExtensibleFunction
- All Implemented Interfaces:
- com.opensymphony.workflow.FunctionProvider,- EnhancedFunction,- LogEnabled,- Serviceable
Workflow function that will call each function registered on the extension point given as an argument
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.ametys.plugins.workflow.EnhancedFunctionEnhancedFunction.FunctionArgument
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ServiceManagerThe service managerprotected static final StringThe rights key.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected com.opensymphony.workflow.FunctionProvider_getFunctionProvider(String functionId, String functionProviderRole) Get the function provider denotedprotected ExtensionPoint<String>Get the function extension point given in argsvoidGet the list of accepted arguments for this functiongetDescription(Map<String, String> args) Get the function descriptions depending on arguments valuesvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
- 
Field Details- 
EXTENSION_POINT_ROLE_ARGS_KEYThe rights key.- See Also:
 
- 
_managerThe service manager
 
- 
- 
Constructor Details- 
ExtensibleFunctionpublic ExtensibleFunction()
 
- 
- 
Method Details- 
service- Specified by:
- servicein interface- Serviceable
- Throws:
- ServiceException
 
- 
executepublic void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException - Specified by:
- executein interface- com.opensymphony.workflow.FunctionProvider
- Throws:
- com.opensymphony.workflow.WorkflowException
 
- 
_getFunctionProviderprotected com.opensymphony.workflow.FunctionProvider _getFunctionProvider(String functionId, String functionProviderRole) throws com.opensymphony.workflow.WorkflowException Get the function provider denoted- Parameters:
- functionId- The id of the extension that gave the role
- functionProviderRole- The role of the component to find
- Returns:
- The workflow function
- Throws:
- com.opensymphony.workflow.WorkflowException- If the role cannot be found
 
- 
_getFunctionsExtensionPointprotected ExtensionPoint<String> _getFunctionsExtensionPoint(Map args) throws com.opensymphony.workflow.WorkflowException Get the function extension point given in args- Parameters:
- args- The workflow arguments
- Returns:
- The extension point
- Throws:
- com.opensymphony.workflow.WorkflowException- If the extension point is not configured or does not exist
 
- 
getArgumentsDescription copied from interface:EnhancedFunctionGet the list of accepted arguments for this function- Specified by:
- getArgumentsin interface- EnhancedFunction
- Returns:
- a List of argument names and associated description
 
- 
getDescriptionDescription copied from interface:EnhancedFunctionGet the function descriptions depending on arguments values- Specified by:
- getDescriptionin interface- EnhancedFunction
- Parameters:
- args- a map of the arguments with their values in current workflow
- Returns:
- a description to display in workflow editor vue
 
 
-