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 INodeModelPrototype
forNode(WorkflowNode node, Mandant client)
Creates a new model by converting the given node.Map<UUID,com.alibaba.fastjson.JSONObject>
getPrototypeCustomParams()
NodeModel
getPrototypeModel()
-
-
-
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:
getPrototypeModel
in interfaceIElementModelPrototype<NodeModel>
- Returns:
- The
TriggerModel
to use.
-
getPrototypeCustomParams
public Map<UUID,com.alibaba.fastjson.JSONObject> getPrototypeCustomParams()
- Specified by:
getPrototypeCustomParams
in 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.
-
-