Before talking about this case, we will first forward a simple recruitment information. Our team needs to recruit two technical assistants to follow us for product development and technical consulting, you are welcome to join us at: http://job.cnblogs.com/offer/19632 /.
1. Case business process description
In the previous articleArticleAgileeas. net SOA middleware platform workflow system introduction I briefly introduced you to agileeas. net SOA platform workflow system basic introduction, this article will introduce you to a real case.. Net SOA platform workflow system application.
Today, our example is a simple case of medical informatization. The actual business process of the hospital drug store/pharmacy drug loss reporting service is defined as follows:
The current business process is so demanding that the pharmacy management personnel initiate a loss report application, and then the pharmacy owner approves the application. If the early approval fails, the pharmacy management personnel modify the application and submit the application again, if the report is approved, the chief of pharmacy will review the report. After the report is approved, the pharmacy administrator will confirm the report. Otherwise, the report loss service will be terminated.
For hospitals of different regions, different scales, and different operating types, the loss reporting process for medicines may be different, therefore, a very troublesome problem for medical developers is the customization of business processes. The use of traditional methods for such problems has always been a very tricky problem, may be caused by changes in the business processes of different hospitalsProgramCodeAs a result, the product version management of medical software developers is chaotic, and the product implementation cycle is too long, resulting in the developers' indirect management costs and the overall project costs increase dramatically.
2. Application agileeas. Net SOA platform workflow reorganization process
For the above problems, we can use the workflow system provided by agileeas. Net SOA platform to customize business processes, and use the workflow platform to drive business data for business process reengineering.
Let's take a closer look at the above business process and we will find that this is a classic"Application-early approval-confirmation"Business processing process, for"ApplicationAndConfirm"Is a relatively fixed operation, but for"Application-early approval-confirmation"The processing process is a very uncertain process. For example, a small medical institution may need a simple approval process, but for a large medical institution, its approval can be more than Level 2 approval, and there may be level 3 or level 3 approval.
If we develop two functional modules"Pharmacy reports lossApply/ShenBatch","Pharmacy reports lossConfirm"And define a workflow"Pharmacy reports lossApproval process", And let"Pharmacy reports lossApproval process"And"Pharmacy reports lossApply/ShenBatch"Combined, driven by the workflow"Pharmacy reports lossApply/ShenBatchAccording toPharmacy reports lossApproval process"For processing, and after the processing is completed"Pharmacy reports lossConfirm"Can we achieve this highly flexible process customization after the loss reporting of drugs? The answer is OK, so let's take a look at how to achieve this.
3. If? Step by step
Let's start with the module"Pharmacy reports lossApply/ShenBatch", The final effect is as follows:
Next module"Pharmacy reports lossIndeed", The final effect is as follows:
Next, let's define the workflow"Pharmacy reports lossApproval process":
Process permission settings:
The process permission setting includes the process initiation permission and the processing permission of each State. The setting method is the same as that of agileeas. the module permission settings in the. net soa platform are consistent. We set the process initiation permission for the Account xyf and the processing permission for "review status, set "audit status" for account zhx and "audit status" for account administrator.
Next, you need to bind the relationship between the workflow and Its driven business module:
At the same time, you also need to bind the module code to the workflow:
In the function module, You need to bind two places. The first one needs to mark the workflowaddin attribute in the module header to declare that this is a workflow-driven function module, the other is that you need to set the sound type in the function module to guid and mark the workflowinstanceid attribute for the workflow to write the current workflow instance to the function module, workflow definition and process customization are completed. Let's take a look at the running effect.
4. If? Step by step
First, we use the account xyf to log on, and we will see the following features:
Open the "Launch Process ":
You can also directly open the "pharmacy damage report application" module to initiate a workflow:
After the submission is complete, open "my application" and you will see the instance we just initiated:
Next, we switch to the Account "zhx" to log on and open my to-do list:
Complete Level 1 Review"Pharmacy reports lossApplication":
Open the handled matters:
Next, we switch to account "888888" to log on and open my to-do list:
Complete Level 2 Review"Pharmacy reports lossApplication":
Open the handled matters:
Finally, we switch to the Account "xyf" and open"Pharmacy reports lossConfirmModule:
Now, the demo of drug loss reporting in the pharmacy is completed. If the approval process changes, the project implementer only needs to modify the workflow definition based on the customer's business process, without modifying the program code, implement Process customization.
5. Download agileeas. Net 4.0
For information about the assembly, class library manual, and related information of the latest version of the platform, refer to the release on the official website of agileeas. net.
6. How to contact us
If you have any questions about using the agileeas. NET development platform, use the following contact methods or communication methods.
1. Official Website:
Agileeas. NET platform: http://www.smarteas.net/
Agile Software Engineering Laboratory: http://www.agilelab.cn/