At the start of workflow, you can narrow down the application flow that matches the conditions.
This is an example of applying workflow to 'purchase article purchase' model.When opening the registration screen, application flow can be selected "Sales partial item purchase inquiry flow 1".This is defined as a flow of 100,000 yen or less.(Described later)
When you enter the amount, the screen redraws and the application flow changes.In this case, when the amount exceeds 100,000 yen, we switch to "sales partial item purchase inquiry flow 2".
When the amount exceeds 200,000 yen, it will switch to "sales partial goods purchase inquiry flow 3".
The definition of "goods purchase inquiry" model is as follows.Apply workflow to this model.
Assume that the "amount" item redraws the screen when changing the value.
We will prepare the following five accounts.
|user1||User 1 (Applicant)|
When applying, which workflow can be applied is the following rule.
|Amount of money||Flow 1||Flow 2||Flow 3|
|Less than 100,000 yen||○||-||-|
|100,000 yen or more and less than 200,000 yen||-||○||-|
|200,000 yen or more||-||-||○|
Prepare "flow participant setting" in the built application.Apply the above rule.
"Flow 1 for purchasing business partial goods purchase flow" shall be flow for less than 100,000 yen.There are two nodes.
"Flow of two items purchase inquiry flow 2" is a flow for 100,000 yen or more and less than 200,000 yen.There are three nodes.
"Flow 3 for purchasing business partial goods purchase flow" shall be flow for 200,000 yen or more.There are four nodes.
We will link the above three flows to 'purchase goods purchase'.
Set the following formula as "Effective condition" under the setting "Sales partial article purchase inquiry flow 1".
return kian.price < 100000
Set the following formula as "effective condition" under the setting "Sales partial item purchase inquiry flow 2".
return kian.price >= 100000 && kian.price < 200000
Set the following formula as "effective condition" under the setting "Sales partial article purchase inquiry flow 3".
return kian.price >= 200000
At this point, we have provided the three workflow settings.
By setting "effective condition" like this, if it meets this condition, it will be displayed on the screen as a choice of application flow.
As for "Model ID", the name stated in the design information can be used as it is.(In the example above, it is expressed as "kian".)
Camel notation is applied to "Item ID".
For example, if the item ID is "group_cd", it is written as "groupCd" in the script.
return koubai_model.groupCd == 1