You will deploy the process following the steps you followed in Chapter 3, Process Deployment and Testing, to deploy the process. You will be using following test case scenarios to test the process:
Test # 1 Values |
| |||
---|---|---|---|---|
Rule |
Values (Action) |
Expected |
Output |
Expectance Meet |
Check Customer |
|
true | ||
|
QuoteSummaryType.effectiveDiscount+15, that is, | |||
|
2 | |||
|
false | |||
|
false | |||
|
true | |||
Discount Check |
|
true | ||
Test # 2 Values |
| |||
Check Customer |
|
false | ||
|
40 | |||
|
0 | |||
|
True | |||
|
False | |||
|
False | |||
Discount Check |
|
False |
quote.xml
file created at the destination location via the save quote service.http://<hostname>:<port>/em/
.Quote
values as per test case # 2, with Customer Type = Premium, Effective Discount = 40 and quantity = 100.
Test # 1 Values |
| |||
---|---|---|---|---|
Rule |
Values (Action) |
Expected |
Output |
Expectance Meet |
Check Customer |
|
true |
true |
Yes |
|
QuoteSummaryType.effectiveDiscount +15;that is, 55 |
55 |
Yes | |
|
2 |
2 |
Yes | |
|
false |
false |
Yes | |
|
false |
false |
Yes | |
|
true |
true |
Yes | |
Discount Check |
|
true |
true |
Yes |
Test # 2 Values |
| |||
Check Customer |
|
false |
false |
Yes |
|
40 |
40 |
Yes | |
|
0 |
0 |
Yes | |
|
true |
true |
Yes | |
|
false |
false |
Yes | |
|
false |
false |
Yes | |
Discount Check |
|
false |
false |
Yes |
First, a Rule session that consists of rules, facts, and an agenda, is created. An assert
or retract
rule adds or removes fact instances from working memory.
After this, the following actions take place:
So, for the first case, the Check Customer
rule is executed and process token ahead for management approval and business analyst review will be required. However, for the second test case, no management approval was required and no business analyst review was required, as the conditions for the rules were set so for those two cases.
You can go ahead and run other cases, too. They would be something like Enter Quote
with Customer Type
as Gold, Quantity
as 100
and Effective Discount
as 40
and check for the process.
3.145.199.112