Class WorkflowDefinitionExtensionPoint
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>
org.ametys.plugins.workflow.definition.WorkflowDefinitionExtensionPoint
- All Implemented Interfaces:
LogEnabled,ExtensionPoint<WorkflowDefinition>,Disposable,Initializable,Component,Contextualizable,Serviceable,ThreadSafe
public class WorkflowDefinitionExtensionPoint
extends AbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>
The
WorkflowDefinition extension point to list all available workflows.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorkflowHelperThe workflow helperstatic final StringThe Avalon roleFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String_getWorkflowIdFromFilename(String filename) Get the workflow ID from the workflow filename.voidaddOrUpdateExtension(String workflowId) Add a workflow to the workflow definition extension pointvoidFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initializeMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role -
_workflowHelper
The workflow helper
-
-
Constructor Details
-
WorkflowDefinitionExtensionPoint
public WorkflowDefinitionExtensionPoint()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>- Throws:
ServiceException
-
initializeExtensions
Description copied from interface:ExtensionPointFinalize the initialization of the extensions.
This method is called after alladdExtension()calls.
This is the last step before the actual startup of the application.- Specified by:
initializeExtensionsin interfaceExtensionPoint<WorkflowDefinition>- Overrides:
initializeExtensionsin classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>- Throws:
Exception- if something wrong occurs
-
addOrUpdateExtension
Add a workflow to the workflow definition extension point- Parameters:
workflowId- id of workflow- Throws:
ConfigurationException- exception while trying to configure workflow
-
_getWorkflowIdFromFilename
Get the workflow ID from the workflow filename.- Parameters:
filename- The workflow filename- Returns:
- the workflow ID
-