Class ManualTriggerExecutor
java.lang.Object
ai.nervemind.app.executor.ManualTriggerExecutor
- All Implemented Interfaces:
NodeExecutor
Executor for the "manualTrigger" node type - initiates workflow execution on
demand.
The Manual Trigger is the simplest trigger type, allowing users to start workflow execution through the UI "Run" button or API calls. It serves as the entry point for workflows that don't require automated scheduling or external event triggers.
Trigger Flow
User clicks "Run" → ExecutionService → ManualTriggerExecutor → Downstream nodes
Output Data
| Key | Type | Description |
|---|---|---|
| triggeredAt | String | ISO timestamp when execution started |
| triggerType | String | Always "manual" for this trigger |
Input Data Passthrough
Any input data provided when starting the execution (e.g., via API) is merged with the trigger outputs and passed to downstream nodes.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ai.nervemind.common.domain.Node node, Map<String, Object> input, ExecutionService.ExecutionContext context) Executes the business logic for this node type.Unique identifier for the node type this executor handles.
-
Constructor Details
-
ManualTriggerExecutor
public ManualTriggerExecutor()Default constructor.
-
-
Method Details
-
execute
public Map<String,Object> execute(ai.nervemind.common.domain.Node node, Map<String, Object> input, ExecutionService.ExecutionContext context) Description copied from interface:NodeExecutorExecutes the business logic for this node type.- Specified by:
executein interfaceNodeExecutor- Parameters:
node- The node definition containing parameters and configuration. UseNode.parameters()to access user settings.input- Combined output from all upstream nodes that connected to this node. For simple flows, this contains the direct predecessor's output. For merge nodes, it contains combined data.context- Verification context providing access to workflow-scoped services, logger, and execution metadata.- Returns:
- A Map containing the results of this node's execution.
Keys in this map become available variables for downstream nodes.
Note: Returningnullis treated as an empty map.
-
getNodeType
Description copied from interface:NodeExecutorUnique identifier for the node type this executor handles. This must match the 'type' field in the JSON definition of the node.- Specified by:
getNodeTypein interfaceNodeExecutor- Returns:
- The unique type string (e.g., "httpRequest", "llmChat").
-