-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issues voted on.
- Loading branch information
Showing
3 changed files
with
37 additions
and
2 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
15 changes: 15 additions & 0 deletions
15
service.impl/src/main/resources/rules/politician/PoliticianSupports.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,15 @@ | ||
package com.hack23.cia.service.impl.rules | ||
import org.kie.api.runtime.KieRuntime | ||
import com.hack23.cia.model.internal.application.data.politician.impl.ViewRiksdagenPolitician | ||
import com.hack23.cia.service.api.action.kpi.Status | ||
import com.hack23.cia.service.impl.rules.PoliticianComplianceCheckImpl | ||
import java.util.Calendar | ||
|
||
rule "We have an politician supporting FRA committee_report=FöU15 and rm=2007/08" | ||
dialect "java" | ||
salience 50 | ||
when | ||
$p : PoliticianComplianceCheckImpl( supports("FöU15","2007/08" ) ) | ||
then | ||
$p.addViolation( Status.MINOR, "PoliticianSupports","Behavior", kcontext.getRule().getName(),"Authoritarian"); | ||
end |