feat(server): enhance workflow step execution and JSONata integration
- Refactored step execution logic to introduce runCompiledStep for improved clarity and functionality. - Added support for "set" steps, allowing context manipulation using JSONata expressions. - Implemented evaluateJsonata and isJsonataTruthy functions for evaluating conditions and expressions. - Updated workflow parsing to handle new step types and validation rules. - Enhanced logging and error handling for skipped steps and invalid configurations. - Modified UI components to reflect new step types and statuses, including "skipped".
This commit is contained in:
@@ -126,7 +126,7 @@ export async function startStep({ runId, index, script, config = null }) {
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {"success" | "failed"} status
|
||||
* @param {"success" | "failed" | "skipped"} status
|
||||
* @param {unknown} [output]
|
||||
* @param {Error | unknown} [err]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user