Skip to content

feat: let switchTask use the javascript evaluator - #183

Open
Apeksha9389 wants to merge 2 commits into
conductor-oss:mainfrom
Apeksha9389:feat/switch-javascript-evaluator
Open

Apeksha9389 wants to merge 2 commits into
conductor-oss:mainfrom
Apeksha9389:feat/switch-javascript-evaluator

Conversation

@Apeksha9389

Copy link
Copy Markdown

Fixes #139

switchTask() always set evaluatorType: "value-param", so the JavaScript evaluator could only be used by building the SwitchTaskDef by hand. This adds an optional trailing evaluatorType parameter (default "value-param", so existing calls are unchanged). With "javascript" the expression is used directly and inputParameters is left empty, as described in the issue.

Testing: added a factory test for the javascript evaluator (fails without the change); the existing value-param test still passes. Unit suite: 1588/1588 passing.

🤖 Generated with Claude Code

https://claude.ai/code/session_016sX8o4pDVYxuMvdpaJF4X3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

switchTask() hardcodes value-param evaluator; JavaScript evaluator unreachable via builder

1 participant