Author: Anders James
)
Business processes are divided into three levels based on different levels
0. domain process
Domain processes are the lifecycles of domain objects and are the core of the process;
1. Workflow
A workflow is a process of processing collaborative work by multiple people and separation of three powers. The process is based on the lifecycle of domain objects. different states of the lifecycle are mapped in the workflow; the workflow processes the lifecycle of the request object in the domain;
2. Page Flow
A page stream is a step-by-step application that processes a work request. The process is built on a workflow and is the UI proxy of its Manual node;
The three processes at different levels focus on processing different types of domain objects. The page stream focuses on the data collection of request objects at the outermost layer, while the workflow is responsible for the lifecycle of request objects, in different work nodes, while in the core domain service, it is responsible for the lifecycle of the core (Long Life) domain object, input the request object, and return the response object, and generate a transition object. Concurrent processing of the same business object should be controlled through the business;
However, not all system processes are the same. For business systems that do not have significant long-lived objects, because there is no clear incremental change operation type and rules, business operations directly update business objects, there is no request or response object, so the domain process and workflow tend to be consistent, and the merging is more efficient, and the page process is also directly processing the core domain object, however, such a system may need to support multi-version capabilities of domain objects.