-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor RuleEngineContext to kotlin
- Loading branch information
1 parent
7c2e7aa
commit debfa77
Showing
16 changed files
with
273 additions
and
663 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
161 changes: 0 additions & 161 deletions
161
src/main/java/org/hisp/dhis/rules/RuleEngineContext.java
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
package org.hisp.dhis.rules | ||
|
||
import org.hisp.dhis.rules.models.Rule | ||
import org.hisp.dhis.rules.models.RuleVariable | ||
|
||
data class RuleEngineContext( | ||
val rules: List<Rule>, | ||
val ruleVariables: List<RuleVariable>, | ||
val supplementaryData: Map<String, List<String>> = emptyMap(), | ||
val constantsValues: Map<String, String> = emptyMap(), | ||
val ruleEngineIntent: RuleEngineIntent = RuleEngineIntent.EVALUATION, | ||
val dataItemStore: Map<String, DataItem> = emptyMap() | ||
) |
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
63 changes: 0 additions & 63 deletions
63
src/test/java/org/hisp/dhis/rules/RuleEngineContextTest.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.