According to the BPMN standard an instance of a Process Definition is called Process Instance. I suggest a rename of the Workflow class to ProcessInstance.
The WorkflowBuilder class could become ProcessDefinition. A ProcessDefinition could have multiple versions (ProcessDefinitionVersion) but only one of them is active.
A ProcessInstance is usually linked to a ProcessDefinitionVersion.
If we would have a ProcessDefinition class then we could implement methods for:
- creating new
ProcessInstances;
- finding an existing
ProcessInstance by id;
- migrating
ProcessInstances from a version to the latest version.
Of course these definition classes could be also implemented by users in their apps.
@iteman What do you think?
According to the BPMN standard an instance of a Process Definition is called Process Instance. I suggest a rename of the
Workflowclass toProcessInstance.The
WorkflowBuilderclass could becomeProcessDefinition. AProcessDefinitioncould have multiple versions (ProcessDefinitionVersion) but only one of them is active.A
ProcessInstanceis usually linked to aProcessDefinitionVersion.If we would have a
ProcessDefinitionclass then we could implement methods for:ProcessInstances;ProcessInstanceby id;ProcessInstancesfrom a version to the latest version.Of course these definition classes could be also implemented by users in their apps.
@iteman What do you think?