Class ScheduleTriggerExecutor
java.lang.Object
ai.nervemind.app.executor.ScheduleTriggerExecutor
- All Implemented Interfaces:
NodeExecutor
Executor for the "scheduleTrigger" node type - starts workflow execution on a
schedule.
Enables time-based automated workflow execution using cron expressions.
The actual scheduling is managed by SchedulerService; this executor
is invoked when the scheduled time arrives.
Node Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| cronExpression | String | "" | Cron expression for scheduling |
| timezone | String | "UTC" | Timezone for schedule evaluation |
Cron Expression Examples
0 0 * * *- Daily at midnight0 9 * * 1-5- Weekdays at 9 AM0/30 * * * *- Every 30 minutes0 8 1 * *- Monthly on the 1st at 8 AM
Output Data
| Key | Type | Description |
|---|---|---|
| triggeredAt | String | ISO timestamp when execution started |
| triggerType | String | Always "schedule" for this trigger |
| cronExpression | String | The cron expression that fired |
| timezone | String | The configured timezone |
| scheduledTime | String | The scheduled time that triggered this run |
- 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
-
ScheduleTriggerExecutor
public ScheduleTriggerExecutor()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").
-