Does jBPM Remember Between Runs? An Instance Keeps Its Variables. The Next Instance Starts With Only What It Is Handed.
Does jBPM Remember Between Runs? An Instance Keeps Its Variables. The Next Instance Starts With Only What It Is Handed. A jBPM process runs on a timer every night, opens an instance for each new supplier invoice, and uses an AI step to check the invoice against the supplier's history. On the second night, a follow-up invoice arrives from the same supplier. What does the new instance know about the first one? Only what it is explicitly handed at start, or what someone queries out of a database b
Does jBPM Remember Between Runs? An Instance Keeps Its Variables. The Next Instance Starts With Only What It Is Handed.
A jBPM process runs on a timer every night, opens an instance for each new supplier invoice, and uses an AI step to check the invoice against the supplier's history. On the second night, a follow-up invoice arrives from the same supplier. What does the new instance know about the first one? Only what it is explicitly handed at start, or what someone queries out of a database by hand. jBPM is rigorous about state inside an instance, and it can log everything an instance did. Between instances, nothing carries forward on its own.
An instance is one execution, and it starts from its inputs
When a process starts in jBPM, the engine creates a process instance: one execution of the process in a specific context. The instance holds a set of context data stored in process variables. Some of those variables can be initialized when the instance starts. Activities read from process variables and write to them, and gateways evaluate them to choose the execution path. The state of the instance is that context data plus the currently active node or nodes.
That scoping is the central fact. Values produced inside Monday's instance belong to Monday's instance. Tuesday's instance is a separate execution with its own variables, its own position in the process, and its own lifecycle. There is no process-level notebook that each new instance opens before it begins. The process definition is shared across every instance. The data inside each instance is partitioned by instance, and a new instance begins with exactly the variables it was given at start, no more.
Persistence protects an instance in progress, not the next one
jBPM can persist runtime state, and the details matter. Persistence is not configured by default: without it, process information, including instance state, lives only in memory. When persistence is configured, the engine uses JPA against an SQL database and saves the state of running process instances at safe points, the moments when an instance has reached a wait state or completed everything it currently can. If the engine stops or fails, instances are restored to their last recorded state and resume when they are triggered again, by an expired timer, a completed task, or a signal.
This is durability for work in flight, and it is genuinely useful. It is not memory between runs. The persisted snapshot belongs to one running instance, and when that instance completes, its persisted runtime data is removed. The engine works hard to make sure a single long-running instance survives a restart. It makes no attempt to brief the next instance: a completed instance leaves no runtime state behind for a successor to inherit, and a new instance never reads the snapshot of the one before it.
The audit log remembers everything, for reporting
Separately from runtime persistence, jBPM keeps a persistent audit log. The jbpm-audit module listens to engine events and stores them in their own tables: ProcessInstanceLog for the basic record of each instance, NodeInstanceLog for which nodes executed, and VariableInstanceLog for the value of each variable every time it changed. The history is stored apart from the runtime database on purpose, so it can grow without slowing the engine down.
That log is a real memory of the past, but it is a memory built for people and reports. Teams query it to reconstruct what one instance did, or to analyze how all instances of a process performed. No step inside a running instance opens the audit log of its predecessor to ask what it concluded. A scheduled process that runs an AI step every night produces, night after night, a complete audit trail of finished reasoning and a new instance that starts with only its start variables. The record of the past and the working memory of the present are two different systems, and only one of them feeds the next run, and it is not the log.
The gap is where scheduled AI work loses its thread
Put the layers together and the pattern is clear. Process variables carry values inside one instance and end with it. Runtime persistence protects an instance mid-flight and is cleaned up when it finishes. The audit log preserves what happened, as typed rows, for later queries, and feeds nothing forward. So an automation that leans on AI inside jBPM keeps its records straight and still re-briefs its AI step from zero on every run: the same supplier gets analyzed fresh, the same exception gets explained fresh, and the correction a reviewer made inside yesterday's instance never reaches today's.
That is the gap a dedicated memory layer fills. Vilix AI is a cloud-hosted memory layer that jBPM service tasks and AI steps can reach over MCP, the open protocol for connecting AI tools to external context. There is nothing to install or host: the memory lives in the cloud, and every tool that connects to it reads and writes the same store. An AI step that finishes an instance can save what it concluded, and the next instance, the next process, or a different tool entirely can retrieve it at the start of its run.
Two properties matter for scheduled automation. First, Vilix AI stores the full conversation history, not just extracted facts, so the next run inherits the reasoning, the corrections, and the edge cases, not only the final variable values. Second, the memory is shared across tools: the context gathered inside a jBPM instance is available to the other agents and assistants on the same account, because they all connect to the same layer. jBPM keeps the instance record and the audit trail. Vilix AI keeps the thread between instances.
Getting started is deliberately light. The free plan is free forever, and the Pro plan comes with a 7-day trial that needs no card. Everything saved can be exported or deleted at any time, so the memory stays under the operator's control. Your processes already know how to run on a schedule. Give the AI steps inside them one memory, and each new instance can start from what the last one learned.