Class TreeAccessorWithDataNodeModel
- java.lang.Object
 - 
- de.xima.fc.workflow.designer.logic.TreeAccessorWithDataNodeModel
 
 
- 
- All Implemented Interfaces:
 ITreeAccessor<NodeModel,UUID>,ITreeWithDataAccessor<NodeModel,UUID,Object>
public class TreeAccessorWithDataNodeModel extends Object implements ITreeWithDataAccessor<NodeModel,UUID,Object>
Accessor for treatingNodeModels as a tree, so that they can be used with the execution analyzer.- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TreeAccessorWithDataNodeModel(Map<ElementKey,com.alibaba.fastjson.JSONObject> paramsMap, Mandant client)Creates A new tree accessor that reads the custom properties from the given map. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NodeModel>getChildren(NodeModel node)UUIDgetId(NodeModel node)ObjectgetNodeData(UUID taskUuid, NodeModel node) 
 - 
 
- 
- 
Constructor Detail
- 
TreeAccessorWithDataNodeModel
public TreeAccessorWithDataNodeModel(Map<ElementKey,com.alibaba.fastjson.JSONObject> paramsMap, Mandant client)
Creates A new tree accessor that reads the custom properties from the given map.- Parameters:
 paramsMap- Map with the custom properties of the nodes.client- The current client scoped, used for finding client plugins.
 
 - 
 
- 
Method Detail
- 
getChildren
public List<NodeModel> getChildren(NodeModel node)
- Specified by:
 getChildrenin interfaceITreeAccessor<NodeModel,UUID>- Parameters:
 node- The node for which to get the children.- Returns:
 - A list of all children of the given tree node, empty array if it is a leaf node.
 
 
- 
getId
public UUID getId(NodeModel node)
- Specified by:
 getIdin interfaceITreeAccessor<NodeModel,UUID>- Parameters:
 node- A node for which to retrieve its ID.- Returns:
 - The (unique) identifier of the given tree node.
 
 
- 
getNodeData
public Object getNodeData(UUID taskUuid, NodeModel node)
- Specified by:
 getNodeDatain interfaceITreeWithDataAccessor<NodeModel,UUID,Object>- Parameters:
 taskUuid- UUID of the task to which the node belongs.node- Node for which to retrieve the data.- Returns:
 - The data associated with the tree node.
 
 
 - 
 
 -