Replies: 1 comment
-
This is by design. A workflow instance points to a Workflow Blueprint which themselves are not stored in the database. The Workflow Registry is populated from various sources, such as:
Workflow Instances are always stored in the database since they represent runtime information about the workflow. Workflow blueprints do not need to be stored, since they are "static" such as your workflow class. That being said, I do have plans to unify the concept of "workflow definition" such that it does not matter whether the source is JSON-based or code-based as outlined in #569 When that is implemented, workflow classes will be compiled into an assembly, which is then stored in the database as well in the form of a Workflow Definition. The Data column will then simply store an array of bytes instead of JSON in the case of workflows created by the designer. There will then be an additional column, probably called something like "Content Type". It also solves the issue of versioning workflow classes. |
Beta Was this translation helpful? Give feedback.
-
When this simple workflow is persisted, why is that the workflow definition is not persisted? We can see the instance is persisted.
The WorkflowDefinition table is not populated while the instance table is populated with Definition Id.
What should I do to make an entry to this table?
Below is the code.
And here is the workflow. The code is available here.
Beta Was this translation helpful? Give feedback.
All reactions