Class NodeModelPrototype
- java.lang.Object
-
- de.xima.fc.workflow.designer.model.NodeModelPrototype
-
- All Implemented Interfaces:
IElementModelPrototype<NodeModel>,INodeModelPrototype,Serializable
public final class NodeModelPrototype extends Object implements INodeModelPrototype, Serializable
Default POJO model forINodeModelPrototype.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeModelPrototype(NodeModel nodeModel, Map<UUID,com.alibaba.fastjson.JSONObject> customParams)Creates a new POJO model with the given data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static INodeModelPrototypeforNode(WorkflowNode node, Mandant client)Creates a new model by converting the given node.Map<UUID,com.alibaba.fastjson.JSONObject>getPrototypeCustomParams()NodeModelgetPrototypeModel()
-
-
-
Constructor Detail
-
NodeModelPrototype
public NodeModelPrototype(NodeModel nodeModel, Map<UUID,com.alibaba.fastjson.JSONObject> customParams)
Creates a new POJO model with the given data.- Parameters:
nodeModel- Value returned bygetPrototypeModel().customParams- Value returned bygetPrototypeCustomParams().
-
-
Method Detail
-
getPrototypeModel
public NodeModel getPrototypeModel()
- Specified by:
getPrototypeModelin interfaceIElementModelPrototype<NodeModel>- Returns:
- The
TriggerModelto use.
-
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.
-
forNode
public static INodeModelPrototype forNode(WorkflowNode node, Mandant client) throws FastJsonException
Creates a new model by converting the given node.- Parameters:
node- Node to convert into a prototype model.client- Current client for locating node plugins.- Returns:
- The converted node prototype.
- Throws:
FastJsonException- When the model could not be converted because of invalid JSON.
-
-