This file contains hidden or 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
| // instantiate and pre-populate driver and policy domain classes | |
| // useful for lab 20 that currently invokes execution server without including policy and driver | |
| if(driver == null) { | |
| driver = new Driver(); | |
| driver.setDriverName("Azra"); | |
| driver.setAge(22); | |
| driver.setNumberOfAccidents(0); | |
| driver.setNumberOfTickets(1); | |
| kcontext.setVariable("driver", driver); | |
| } |
This file contains hidden or 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
| package org.acme.insurance.policyquote; | |
| rule "StartRuleflow" | |
| salience 100 | |
| when | |
| then | |
| System.out.println("StartRuleflow - ON"); | |
| kcontext.getKnowledgeRuntime().startProcess("policyquote.policyquotecalculationprocess"); | |
| end |
This file contains hidden or 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
| <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <kbase name="insuranceKB" packages="org.acme.insurance.monitoring" eventProcessingMode="stream"> | |
| <ksession name="insuranceKS" clockType="pseudo" default="true" /> | |
| <!-- ksession name="insuranceKS" clockType="realtime" default="true" / --> | |
| </kbase> | |
| </kmodule> |
This file contains hidden or 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
| package org.acme.insurance.policyquote | |
| import org.acme.insurance.Driver | |
| import org.acme.insurance.Policy | |
| rule "RiskyAdults" | |
| when | |
| //conditions | |
| driver : Driver(age > 24, numberOfAccidents >= 1 || numberOfTickets >=2) |
This file contains hidden or 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
| package org.acme.insurance.policyquote | |
| import org.acme.insurance.Driver | |
| import org.acme.insurance.Policy | |
| rule "SafeAdults" | |
| when | |
| //conditions | |
| driver : Driver(age > 24, numberOfAccidents < 1, numberOfTickets <= 1) |
This file contains hidden or 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
| package org.acme.insurance.policyquote | |
| import org.acme.insurance.Driver | |
| import org.acme.insurance.Policy | |
| rule "RiskyYouths" | |
| when | |
| //conditions | |
| driver : Driver(age >= 18 && < 25, numberOfAccidents >= 1 || numberOfTickets >=2) |
This file contains hidden or 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
| package org.acme.insurance.policyquote | |
| import org.acme.insurance.Driver | |
| import org.acme.insurance.Policy | |
| rule "SafeYouths" | |
| when | |
| //conditions | |
| driver : Driver(age >= 18 && < 25, numberOfAccidents < 1, numberOfTickets <= 1) |
This file contains hidden or 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
| target/ | |
| bin/ | |
| lab_assets/ | |
| .settings/ | |
| .classpath | |
| .project | |
| *.zip | |
| *.log |
This file contains hidden or 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
| keytool -genkey -keystore server-keystore.jks -alias jonserver -storepass password -validity 360 -keysize 2048 -dname "CN=jonserver.jbosson33.vagrant.local, OU=Development, O=Gareth Healy, L=Sheffield, S=South Yorkshire, C=UK" | |
| keytool -export -rfc -keystore server-keystore.jks -storepass password -alias jonserver -file jonserver.cer | |
| keytool -import -trustcacerts -keystore client-truststore.jks -storepass password -file jonserver.cer -alias jonserver -noprompt |
This file contains hidden or 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
| <route id="jmsReplyToTest" autoStartup="false"> | |
| <from uri="activemq:inbound"/> | |
| <log message="Body == ${body}"/> | |
| </route> |