Class TriggerPrototypeWrapper
- java.lang.Object
-
- de.xima.fc.workflow.designer.model.TriggerPrototypeWrapper
-
- All Implemented Interfaces:
IElementPrototypeWrapper<TriggerModel>
,ITriggerPrototypeWrapper
,IElementModelPrototype<TriggerModel>
,ITriggerModelPrototype
,Serializable
public class TriggerPrototypeWrapper extends Object implements ITriggerPrototypeWrapper
View wrapper model for the elements drawer panel. Represents a trigger prototype that can be added to the flowchart via drag & drop. Contains additional methods specific to the workflow designer for displaying the prototype in the drawer panel.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TriggerPrototypeWrapper(ITriggerPrototypeDescriptor<?> proto, EElementProtoViewType viewType, Mandant client)
A new POJO with the given prototype and the custom parameters and trigger model extracted from the prototype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITriggerPrototypeDescriptor<?>
getPrototype()
Map<UUID,com.alibaba.fastjson.JSONObject>
getPrototypeCustomParams()
TriggerModel
getPrototypeModel()
EElementProtoViewType
getViewType()
-
-
-
Constructor Detail
-
TriggerPrototypeWrapper
public TriggerPrototypeWrapper(ITriggerPrototypeDescriptor<?> proto, EElementProtoViewType viewType, Mandant client) throws FastJsonException
A new POJO with the given prototype and the custom parameters and trigger model extracted from the prototype.- Parameters:
proto
- Value returned bygetPrototypeModel()
.viewType
- Value returned bygetViewType()
.client
- Current client, for finding node element plugins.- Throws:
FastJsonException
- When the given prototype could not be converted to a trigger model.
-
-
Method Detail
-
getPrototype
public ITriggerPrototypeDescriptor<?> getPrototype()
- Specified by:
getPrototype
in interfaceIElementPrototypeWrapper<TriggerModel>
- Returns:
- Original prototype descriptor with the label etc.
-
getPrototypeCustomParams
public Map<UUID,com.alibaba.fastjson.JSONObject> getPrototypeCustomParams()
- Specified by:
getPrototypeCustomParams
in interfaceIElementModelPrototype<TriggerModel>
- Returns:
- The custom parameters for the node and its children, if any.
-
getPrototypeModel
public TriggerModel getPrototypeModel()
- Specified by:
getPrototypeModel
in interfaceIElementModelPrototype<TriggerModel>
- Returns:
- The
TriggerModel
to use.
-
getViewType
public EElementProtoViewType getViewType()
- Specified by:
getViewType
in interfaceIElementPrototypeWrapper<TriggerModel>
- Returns:
- How the prototype is displayed in the drawer and overlay panels.
-
-