Class WorkflowDefinition
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.workflow.definition.WorkflowDefinition
- All Implemented Interfaces:
LogEnabled,PluginAware,Component,Configurable,Serviceable
public class WorkflowDefinition
extends AbstractLogEnabled
implements Component, Serviceable, Configurable, PluginAware
Object to describe a workflow.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) com.opensymphony.workflow.loader.WorkflowDescriptorgetDescriptor(boolean validate) Get or load the workflow descriptor.getLabel()Get the workflow label.Get the location of the workflow file.voidservice(ServiceManager manager) voidsetPluginInfo(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_srcResolver
The source resolver
-
-
Constructor Details
-
WorkflowDefinition
public WorkflowDefinition()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
setPluginInfo
Description copied from interface:PluginAwareSets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfoin interfacePluginAware- Parameters:
pluginName- Unique identifier for the plugin hosting the extensionfeatureName- Unique feature identifier (unique for a given pluginName)id- Unique identifier of this component
-
getLabel
Get the workflow label.- Returns:
- The workflow label, default is plugin.[pluginName]:WORKFLOW_[workflowNameUpperCased]
-
getLocation
Get the location of the workflow file.- Returns:
- the location of the workflow file
-
getDescriptor
public com.opensymphony.workflow.loader.WorkflowDescriptor getDescriptor(boolean validate) throws Exception Get or load the workflow descriptor.- Parameters:
validate- if the descriptor has to be valid- Returns:
- the workflow descriptor
- Throws:
Exception- if an error occurs
-