-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Context
Execute Script V2 already exposes helper functions for some Builder actions, but it still does not provide a dedicated function to execute Process Command.
This blocks script scenarios that need to trigger commands in a native, consistent way with the other available functions.
References
- https://github.com/takenet/blip-sdk-csharp/tree/master/src/Take.Blip.Builder/Actions/ExecuteScriptV2
- https://github.com/takenet/blip-sdk-csharp/tree/master/src/Take.Blip.Builder/Actions/ProcessCommand
Problem
Execute Script V2 is missing a public function, similar to existing exposed action helpers, that encapsulates and runs ProcessCommandAction.
Goal
Expose a new function in Execute Script V2 to process commands using the same conventions as other script-exposed actions and reusing ProcessCommandAction internally.
Proposed Solution
- Add a new script-exposed function in Execute Script V2, following the same naming and signature style used by existing functions.
- Internally build and execute ProcessCommandAction.
- Keep validation, serialization, and exception handling aligned with current Execute Script V2 behavior.
- Update Execute Script V2 documentation with usage examples.
Acceptance Criteria
- A new Execute Script V2 function is available to execute Process Command.
- The function produces the same behavior expected from ProcessCommandAction when used outside scripts.
- Invalid command payloads fail with predictable, traceable error messages.
- Automated tests cover success and failure scenarios.
- Documentation is updated with at least one real example.
Minimum Test Scenarios
- Valid command execution returns the expected result.
- Invalid command payload fails according to current Execute Script V2 error handling patterns.
- Execution respects script timeout and cancellation behavior.
- Existing scripts remain compatible with no breaking changes.
Expected Impact
This enables richer automations in Execute Script V2, removes workarounds, and brings script capabilities closer to native Builder actions.
Risks and Considerations
- Ensure the new function does not allow command execution beyond existing platform constraints.
- Keep tracing and logs consistent for troubleshooting.
- Validate performance impact inside the Execute Script V2 runtime.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels