Runtime Variable Not Clearing Between Runs (Possible Caching Issue?)
I’ve built a workflow that calculates commission values based on a given sellingPrice
. It supports multiple optional entries (e.g., sellingPrice01
, sellingPrice02
, sellingPrice03
, etc.). I’m using both global and runtime variables throughout the flow.
One issue I’m encountering is that runtime variables appear to persist between runs, which is causing logic failures—especially with optional inputs.
Example Scenario
In my Logic Block, I’m checking if an optional variable like sellingPrice03
is empty:
{{isEmpty sellingPrice03}}
I expect:
true
→ if the user didn’t enter a value → then jump to the Main Menufalse
→ if a value was entered → proceed to the next step
But even if the variable wasn’t entered on a new run, the system behaves as if it still has a value from the previous run.
What I’ve Tried
- Confirmed
sellingPrice03
is not a global variable - Checked input flow and logic block connections
- Suspect that caching or variable persistence is the issue
Question
How can I ensure runtime variables are cleared or reset to null
at the start of each run?
Is there a best practice to avoid unwanted persistence, or a block/action I can add at the beginning to explicitly clear certain variables?