Does Flowable Remember Between Runs? A Process Variable Belongs to One Instance. The Next Instance Starts With Only Its Input.
Does Flowable Remember Between Runs? A Process Variable Belongs to One Instance. The Next Instance Starts With Only Its Input. A Flowable process runs on a timer, works through a batch of claims, calls an AI service to summarize each one, and ends. Tomorrow the timer fires again and a new instance starts. What does that second instance know about the first? Only what someone deliberately hands it at the start. Flowable is very good at remembering everything inside one process instance, for as l
Does Flowable Remember Between Runs? A Process Variable Belongs to One Instance. The Next Instance Starts With Only Its Input.
A Flowable process runs on a timer, works through a batch of claims, calls an AI service to summarize each one, and ends. Tomorrow the timer fires again and a new instance starts. What does that second instance know about the first? Only what someone deliberately hands it at the start. Flowable is very good at remembering everything inside one process instance, for as long as that instance lives. Between instances, the engine keeps records, but it passes nothing forward on its own.
A process variable is scoped to the instance that created it
Flowable's unit of memory is the process variable. The engine's own documentation describes process variables as data that is specific to the given process instance. Start an instance with a set of variables, set more as service tasks and user tasks complete, and every step in that instance can read them: a gateway uses a variable to choose a path, a service task uses one as input and stores its result back into another. The values are stored in the engine database, in the runtime variable table, one row per variable per instance.
That scoping is the whole story. A variable named lastSummary set by Monday's instance is not a value Tuesday's instance can read, because Tuesday's instance is a different row set entirely. There is no process-definition-level variable that accumulates across instances. Each start call creates a fresh variable space, populated only by the map passed in at start and by whatever the new instance sets for itself as it runs.
Local variables narrow the scope even further
Inside one instance, Flowable offers an even tighter scope. A local variable set on an execution is visible only in that execution and does not propagate up the execution tree to the process instance level. Task-local variables are active only during that task. These scopes exist so parallel branches and single steps can hold working values without polluting the instance as a whole.
Transient variables sit at the far end of the same spectrum: they are held for the current transaction and never persisted at all. The pattern is consistent at every level. The closer a value is to the work being done right now, the shorter its life. Nothing in the variable model is designed to outlive the instance, let alone to brief the next one.
The instance itself is durable, and that is not the same thing
Flowable's real strength is durability within an instance. When a process reaches a wait state, a user task, a timer, a message catch event, the engine saves the instance state in its database and releases the thread. The instance can wait days or weeks, survive a restart, and resume exactly where it stopped, with all of its variables intact. Long-running human processes depend on this, and it works well.
It is easy to mistake that durability for memory between runs. A process that waits is one instance continuing. A scheduled process that ends and starts again is two instances, and the second one inherits nothing from the first: not its variables, not its intermediate results, and not anything an AI step inside it concluded. The engine resumes instances. It does not continue them.
History keeps the record, but nobody reads it back
When an instance ends, Flowable's HistoryService holds what the engine recorded: start and end times, the path taken, who completed which task, and historic variable values, at a level of detail that is configurable. Finished instances can be queried, including the variables they ended with.
That archive answers audit questions. It does not feed the next run. A new instance does not open the previous instance's history, compare its own input against it, or pick up its reasoning. Reading history back into a live process means building that step yourself: a service task that queries historic instances, extracts the values worth keeping, and sets them as variables, on every start, in every process that needs it. The data survives. The continuity does not, unless it is engineered case by case.
Notice what even a hand-built history read can carry. Historic variables hold the values a process was designed to store: amounts, statuses, identifiers, a result string. They do not hold the reasoning an AI step produced along the way, the alternatives it weighed, or the context a person added in a comment, unless a variable was explicitly designed for each of those things in advance.
One memory outside the process changes the pattern
The fix is to give every instance the same external memory to read at the start and write to at the end, in a form built for reasoning rather than for process data. Vilix AI is that layer for AI work. It is cloud-hosted, so there is no database, vector store, or server to provision and maintain. It connects over MCP, so the same memory is reachable from the AI tools an operator already uses, including ChatGPT, Claude, Claude Code, and Codex, not only from one process on one engine.
What it stores is the full conversation history, not just extracted facts or variable values. An instance can retrieve what previous instances concluded, what was decided, and the context around those decisions, then add its own outcome back for the next instance. The free plan is free forever, Pro starts with a 7-day trial and no card, and memory can be exported or deleted at any time, so the history stays under the operator's control rather than locked inside one engine's tables.
Flowable will keep doing what it is designed to do: run each instance cleanly, durably, and in isolation. That isolation is worth keeping. The change is where the continuity lives. Keep the process stateless between instances, and let a shared memory outside it carry what each run learned, so the next instance starts briefed instead of blank.