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 Modifier and Type Field Description protected SourceResolver
_srcResolver
The source resolver
-
Constructor Summary
Constructors Constructor Description WorkflowDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
com.opensymphony.workflow.loader.WorkflowDescriptor
getDescriptor(boolean validate)
Get or load the workflow descriptor.String
getLocation()
Get the location of the workflow file.void
service(ServiceManager manager)
void
setPluginInfo(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 Detail
-
_srcResolver
protected SourceResolver _srcResolver
The source resolver
-
-
Constructor Detail
-
WorkflowDefinition
public WorkflowDefinition()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
Description copied from interface:PluginAware
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.- Specified by:
setPluginInfo
in 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
-
getLocation
public String 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
-
-