The eternal way of the process (ii) single-division and single-selection aggregation mode of control mode

Source: Internet
Author: User
Tags definition manual execution expression split

1. Radio Split mode (exclusive selection mode)

Prototype example (Feature section)

Fig. 3.13 Exclusive selection in the approval process of housing reform for house Purchase feature section

As shown in Figure 3.13, after the "first instance" link, you will need to select an activity in the "Bulletin" or "review" activity to transfer out according to the business situation. For example, if the housing reform room is greater than 70 square meters on the "bulletin", or directly to the "review."

Context (description, motivation)

Description: The current activity (first instance) is split into two or more subsequent branches, and the current activity can only be selected to trigger a subsequent branch execution, that is, one more choice.

Motivation: in real life or production, a lot of times you need to make a choice, as you go to a fork in the road, you have to choose one of the ways to go, exclusive selection mode is to provide a more selective one of the mechanisms and functions of the model. There is also a more understandable example, is the single choice in our test papers, only one answer is correct, and in the advanced mode of "multiple selection mode" corresponding to the multiple-choice paper.

The nature of the problem

The essence of an exclusive choice is to enter the current situation according to the execution conditions of each selection, and to make a specific match, in multiple optional choices, and to perform this particular choice when the conditions of execution of a selection are consistent with the current situation. Many things have their implementation of the premise, just as we go out, if the rainy days, with an umbrella, if Sunny then do not take. Therefore, whether the rain is the exclusive choice of the standard of judgment.

Solutions and technology implementation

Solution. There are also two solutions to exclusive selection: One is to define the condition on the Xorsplit node (as shown in Figure 3.14), and the other is to define the condition on the transfer line (shown in Figure 3.15).

Technology implementation

(1) Definition period: In the designer, a different definition interface is provided for two different scenarios. Provides input to and persistent storage of evaluated conditional expressions, including variables in expressions. For example, in the story of this pattern, first define a workflow int area, and then define an evaluation expression: area>70. This in the operating period, the actual value of area (such as the Housing reform Room is 80 square meters), and area>70 this expression to match, to obtain a matching result is true, so need to carry out "announcements."

(2) Operating period: In the nature of this model, we mentioned that the essence of exclusive selection is to match the current situation with the defined conditions, and to choose according to the matching result. Therefore, according to the matching method, the implementation of this model can be divided into two kinds of scenes, which are manual matching and automatic matching based on data. Scenario I and scenario two differ only in the location where the definition and matching of the conditions are made, and the nature of the technical implementation is not different, so we will only give the technical implementation of scenario one.

1. Manual Matching Technology implementation:

As the name suggests, manual matching is the person (the performer of activity a) who manually selects activity B or Activity C when the task is turned out. Accordingly, activities B and C must be returned directly to the person dealing with activity A, who is chosen by the person in activity A to perform activity B or activity C, and then the evaluation expression is assigned according to the activity chosen by the person who handles activity a. If the person in activity A has selected activity B, assign the condition on the transfer line "Xorsplit to Activity B" to 1, or set condition=1, otherwise assign condition to any value that is not equal to 1, such as set condition=2.

It should be explained that manual matching is essentially based on data matching, because after human selection, you will assign values to the evaluated expression for the data that corresponds to the selection result. In the BPMN 2.0 and XPDL 2.1 specifications, the types of exclusive selection patterns are two: data-based exclusive selection (data-based Exclusive) and event-based exclusive selection (event-based Exclusive). In the BPMN 2.0 specification, the type of exclusive selection defaults to data based.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.