Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ1010864 - Drools Templates: Indented keywords would fail template e…
…xpansion
- Loading branch information
1 parent
406bbcc
commit 0bd9854
Showing
4 changed files
with
66 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
drools-templates/src/test/resources/templates/rule_template_indented.drl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
template header | ||
FEE_SCHEDULE_ID | ||
FEE_SCHEDULE_TYPE | ||
FEE_MODE_TYPE | ||
ENTITY_BRANCH | ||
PRODUCT_TYPE | ||
ACTIVITY_TYPE | ||
FEE_TYPE | ||
OWNING_PARTY | ||
CCY | ||
LC_AMOUNT | ||
AMOUNT | ||
|
||
|
||
package org.kie.decisiontable; | ||
//generated from Decision Table | ||
|
||
global FeeResult result; | ||
|
||
template "Fee Schedule" | ||
rule "Fee Schedule_@{row.rowNumber}" | ||
agenda-group "@{FEE_SCHEDULE_TYPE}" | ||
when | ||
FeeEvent(productType == "@{PRODUCT_TYPE}", | ||
activityType == "@{ACTIVITY_TYPE}", | ||
feeType == "@{FEE_TYPE}", | ||
txParty == "@{OWNING_PARTY}", | ||
entityBranch == "@{ENTITY_BRANCH}", | ||
amount @{LC_AMOUNT}, | ||
ccy == "@{CCY}" | ||
) | ||
then | ||
result.setSchedule(new FeeSchedule("@{FEE_SCHEDULE_ID}", "@{FEE_SCHEDULE_TYPE}", @{AMOUNT})); | ||
end | ||
end template |