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
Modifier and TypeFieldDescriptionprotected WorkflowHelper
The workflow helperstatic final String
The Avalon roleFields inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
_cocoonManager, _context, _manager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
_getWorkflowIdFromFilename
(String filename) Get the workflow ID from the workflow filename.void
addOrUpdateExtension
(String workflowId) Add a workflow to the workflow definition extension pointvoid
Finalize the initialization of the extensions.
This method is called after alladdExtension()
calls.
This is the last step before the actual startup of the application.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractThreadSafeComponentExtensionPoint
addComponent, addExtension, contextualize, dispose, getExtension, getExtensionsIds, hasExtension, initialize
Methods 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:
service
in interfaceServiceable
- Overrides:
service
in classAbstractThreadSafeComponentExtensionPoint<WorkflowDefinition>
- Throws:
ServiceException
-
initializeExtensions
Description copied from interface:ExtensionPoint
Finalize 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:
initializeExtensions
in interfaceExtensionPoint<WorkflowDefinition>
- Overrides:
initializeExtensions
in 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
-