-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Automation State block #16605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automation State block #16605
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
expect(successStep.outputs.success).toBe(true) | ||
expect(successStep.outputs.value).toBe(5) | ||
|
||
// The failure should not cause a total automation failure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Sam, thanks for taking a look! What I meant was that, a failure in the state block shouldn't cause any unhandled exceptions and that any state data that was correctly processed should remain intact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave this a test - its great! It'll be fantastic once we have the looping block in and the capability to exit branches, such a useful little utility!
Tested it with adding up array of numbers, worked really well - love it!
Description
Added a new
State
block to automations. Named variables can be now set in state and updated throughout the automations runtime.State
category has been added to the bindings surfacing all available state variables.FIX
- Added the looping feature flag to the AI steps: Classify, Extract doc data, Generate text. In order to utilise the looping behaviour the steps will need to be recreated.FIX
- Fix for looping UI so that it only shows when steps are configured with the feature flag.Screenshots
Below I have declared a variable called

myVar1
. In my step,Sample Step 1
, I initialise the value and then update it inSample Step 4
. Before running the automation, all theState
steps that modify a state variable will be listed.Launchcontrol
Added new state block to automations