An example of a JBPM workflow management (1)

xiaoxiao2021-03-06  76

Example:

Among a company, the department employees should take a vacation to approval. If the number of vacations is greater than 10 days, after the consent of the departmental supervisor, the superior supervisor should be approved. If the department supervisor is subject to vacation, as long as the superior supervisor is approved. Applicants can revoke applications before the vacation is approved.

How many times each employee must be managed, and if the employee is submitted to the vacation application, check whether the number of applications exceeds the number of available days. After applying for approval, you must subtract the number of applications in the available days. After the end of the holiday application, no matter whether pass or whether it is canceled, it must be recorded. After the executive is approved, the system should be approved to Email to the applicant. For applications greater than 10 days, if the department supervisor has approved the consent, the superior supervisor has not been approved, and after the applicant revokes the application, the system should be revoked.

ProcessDefinition.xml is as follows:

http://www.xmlspy.com) by Keller (ZJU) ->

"- // jbpm / jbpm mapping DTD 2.0 // en"

"

http://jbpm.org/dtd/processdefinition-2.0.dtd ">

Applicant

Department Supervisor

Superior Supervisor

There is a first arrival, parent token

Decide according to the status of the request.

(1) "The supervisor or boss approves" -'approve ': Modify the total number of employee vacation, set information sent to the user E-mail.

(2) "DISAPPROVE": Set the information sent to the user E-MAIL.

(3) "Undo" - "Cancel" - Set the information sent to the user E-mail. If the supervisor is approved, it has been issued to the supervisor message description has been revoked.

转载请注明原文地址:https://www.9cbs.com/read-94706.html

New Post(0)