Class WorkflowElementDefinitionHelper
java.lang.Object
org.ametys.plugins.workflow.support.WorkflowElementDefinitionHelper
- All Implemented Interfaces:
Component
,Serviceable
Helper to create element definition for workflow
-
Field Summary
Modifier and TypeFieldDescriptionprotected static ModelItemTypeExtensionPoint
The model item type extension point -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowArgument
getElementDefinition
(String name, I18nizableText label, I18nizableText description, boolean isMandatory, boolean isMultiple) Create element definitionvoid
service
(ServiceManager manager)
-
Field Details
-
_modelItemDataTypeEP
The model item type extension point
-
-
Constructor Details
-
WorkflowElementDefinitionHelper
public WorkflowElementDefinitionHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getElementDefinition
public static WorkflowArgument getElementDefinition(String name, I18nizableText label, I18nizableText description, boolean isMandatory, boolean isMultiple) Create element definition- Parameters:
name
- the namelabel
- the label i18n key. Can be null.description
- the desc i18n key. Can be null.isMandatory
- if model item has to be filledisMultiple
- if the model item accept multiple values- Returns:
- the element definition
-