Class ExtensionNode
java.lang.Object
com.persequor.saga.modules.visualeditor.extension.nodes.NodeType
com.persequor.saga.modules.visualeditor.service.extension.nodes.ExtensionNode
- All Implemented Interfaces:
Comparable<NodeType>
-
Field Summary
FieldsFields inherited from class com.persequor.saga.modules.visualeditor.extension.nodes.NodeType
editorContext, MENU_GROUPS_FLOW, MENU_GROUPS_LISTS, MENU_GROUPS_SERVICES, MENU_GROUPS_VALUE_CLASSES, nodeContext
-
Constructor Summary
ConstructorsConstructorDescriptionExtensionNode
(javax.inject.Provider<?> instanceProvider, Method reflectedMethod, NameResolver nameResolver) -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to change the group where the node will appear in the context menu.getName()
Returns the JavaScript class name of the node, override to change the class name of the node.getOutputValue
(EditorData inputValue) Will be run on theIEditorProcessor.process(EditorProcessingRequest)
context to execute nodes custom logic.void
void
setSingleNode
(boolean singleNode) Methods inherited from class com.persequor.saga.modules.visualeditor.extension.nodes.NodeType
addInput, addOutput, clearOutputs, compareTo, configure, equals, getCanBeDeleted, getDryValue, getEditorContext, getInput, getInputs, getInputsNaturalOrder, getMenuLabel, getMissingInputKeys, getMissingOutputKeys, getNodeContext, getOutput, getOutputs, getOutputsNaturalOrder, getScopes, getShowInMenu, getSocketGroupDefinitions, hashCode, isAdvancedMode, isCollapsible, setAdvancedMode, setEditorContext, setNodeContext
-
Field Details
-
OUTPUT_KEY
- See Also:
-
SDK_SERVICES_GROUP
- See Also:
-
-
Constructor Details
-
ExtensionNode
public ExtensionNode(javax.inject.Provider<?> instanceProvider, Method reflectedMethod, NameResolver nameResolver)
-
-
Method Details
-
initSockets
public void initSockets() -
getName
Description copied from class:NodeType
Returns the JavaScript class name of the node, override to change the class name of the node. -
getNodeLabel
- Overrides:
getNodeLabel
in classNodeType
-
getMenuGroup
Description copied from class:NodeType
Override this method to change the group where the node will appear in the context menu.- Overrides:
getMenuGroup
in classNodeType
- Returns:
- List of strings that organises the node in a hierarchy in the context menu.
-
setSingleNode
public void setSingleNode(boolean singleNode) -
getOutputValue
Description copied from class:NodeType
Will be run on theIEditorProcessor.process(EditorProcessingRequest)
context to execute nodes custom logic. The input value can come from a node connection, a user input or the default value for the input.- Overrides:
getOutputValue
in classNodeType
- Parameters:
inputValue
- The input values defined by the node.- Returns:
- The output value for the current node.
- Throws:
NodeOperationException
- If the operation to compute the output value fails.
-