Generally, at the beginning of the design, workflow systems clearly differentiate process data and business data. The workflow engine only cares about the process data. To achieve workflow flow, a Workflow table structure is designed for the workflow engine to assist in the implementation of the workflow engine.
Business Data is ever-changing. to implement their own businesses, a series of business tables will be designed. Business tables and workflow systems do not care about them.
However, workflow data and business data are interactively associated.
1. Basic association between processes and business data:
To associate business data with process data, a table is associated with the process instance and business data.
In eworkflow, the link is set in the process instance table (wf_wfentry.
Each process instance is associated with a specific business table (the main business table to be implemented by the process), and the ID field and Description field of the business table are specified. The description field is optional.
Set one more wf_id field for the process instance in each business table. This field is = wf_wfentry.id.
SetBusiness table.WF_ Id = wf_wfentry.id and wf_wfentry.bs_table wf_wfentry.bs_id_field = business table. IDAssociate processes with businesses;
2. Interaction between processes and business data:
Business data is often introduced in the context of Process Definition and operation.
For example, in the reimbursement process, the process definition and runtime need to be obtained Reimbursement amount As a condition for judging the number of levels of review, the higher-level review also needs to takeReview resultsAs the basis for transferring to the next step.
This will inevitably introduce business data in the process context:
In eworkflow, it is introduced as follows:
In the maintenance module of business data, that is, in the business custom form: Business dataset, select the business keyword field as"Process use". This business keyword will be identified as available for the process context.
When defining a process: the prefix function of the action (the action of the business form associated with) setsActionprefunction,This class is responsible for persisting the key fields used in the selected process in the business form to the process context.. Then, the Business key can be used in the action results.
Set in the action result:
Different types of keyword fields make different judgment rules and statements,Follow Java syntax rules.
Comparison of variable types
Propertyset. getstring ("keyword name"). Equals ("value ")
Integer
Propertyset. getlong ("keyword name") = 3 operator symbol =,>, <
Real-Number Type
Propertyset. getdouble ("keyword name")> 3.5 operator symbol ==,>,<
Date type
Java. util. Date. compareto (propertyset. getdate ("keyword name"), anotherdate) operator symbol
// In addition, propertyset can also be set in the pre-post function propertyset. setstring ("Caller", caller); set the variable value
Related links;
Workflow concept in Web Workflow Management System Development
Web workflow management system development 2 workflow engine
Web workflow management system development 3 visualization process designer
Custom forms for Web Workflow Management System Development
Development of Web workflow management system 5 open source osworkflow-user system transformation
Six-form permission and process permission Control for Web Workflow Management System Development
8. Open-source osworkflow Task Management in Web Workflow Management System Development
Ten database connections and transaction settings for Web Workflow Management System Development
Interaction between process data and business data during Web Workflow Management System Development
Twelve permission controls for transferring a single form to multiple nodes in a process developed by the Web workflow management system
13 process integration with electronic forms in Web Workflow Management System Development
14 Implementation of the Process designer attribute page in Web Workflow Management System Development