Class NodePrototypeWrapper
- java.lang.Object
-
- de.xima.fc.workflow.designer.model.NodePrototypeWrapper
-
- All Implemented Interfaces:
IElementPrototypeWrapper<NodeModel>,INodePrototypeWrapper,IElementModelPrototype<NodeModel>,INodeModelPrototype,Serializable
public class NodePrototypeWrapper extends Object implements INodePrototypeWrapper
View wrapper model for the elements drawer panel. Represents a node 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 NodePrototypeWrapper(INodePrototypeDescriptor<?> proto, EElementProtoViewType viewType, Mandant client)A new POJO with the given prototype and the custom parameters and node model extracted from the prototype.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INodePrototypeDescriptor<?>getPrototype()Map<UUID,com.alibaba.fastjson.JSONObject>getPrototypeCustomParams()NodeModelgetPrototypeModel()EElementProtoViewTypegetViewType()
-
-
-
Constructor Detail
-
NodePrototypeWrapper
public NodePrototypeWrapper(INodePrototypeDescriptor<?> proto, EElementProtoViewType viewType, Mandant client) throws FastJsonException
A new POJO with the given prototype and the custom parameters and node 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 node model.
-
-
Method Detail
-
getPrototype
public INodePrototypeDescriptor<?> getPrototype()
- Specified by:
getPrototypein interfaceIElementPrototypeWrapper<NodeModel>- Returns:
- Original prototype descriptor with the label etc.
-
getPrototypeCustomParams
public Map<UUID,com.alibaba.fastjson.JSONObject> getPrototypeCustomParams()
- Specified by:
getPrototypeCustomParamsin interfaceIElementModelPrototype<NodeModel>- Returns:
- The custom parameters for the node and its children, if any.
-
getPrototypeModel
public NodeModel getPrototypeModel()
- Specified by:
getPrototypeModelin interfaceIElementModelPrototype<NodeModel>- Returns:
- The
TriggerModelto use.
-
getViewType
public EElementProtoViewType getViewType()
- Specified by:
getViewTypein interfaceIElementPrototypeWrapper<NodeModel>- Returns:
- How the prototype is displayed in the drawer and overlay panels.
-
-