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
| <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; | |
| 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
| // 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
| org.acme.insurance.Policy _policy = (org.acme.insurance.Policy)kcontext.getVariable("policy"); | |
| kcontext.setVariable("price",_policy.getPrice()); | |
| System.out.println("Price before review: " + policy.getPrice()); |
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
| Integer p = (Integer)kcontext.getVariable("price"); | |
| System.out.println("Price After review: " + p); |
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
| cp bpms-labs/extras/18_Service_Tasks/domain/target/integrationTier-domain-1.0.jar \ | |
| $JBOSS_HOME/standalone/deployments/business-central.war/WEB-INF/lib/integrationTier-domain-1.0.jar |
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
| com.redhat.gpe.refarch.bpm_servicetasks.domain.DriverService |
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
| [vagrant@interconnect-dispatch ~]$ qdstat -a | |
| Router Addresses | |
| class addr phs distrib in-proc local remote cntnr in out thru to-proc from-proc | |
| ====================================================================================================================== | |
| local $_management_internal closest 1 0 0 0 0 0 0 1 1 | |
| local $displayname closest 1 0 0 0 0 0 0 0 0 | |
| mobile $management 0 closest 1 0 0 0 5 0 0 5 0 | |
| local $management closest 1 0 0 0 0 0 0 0 0 | |
| link-in jms.queue linkBalanced 0 0 0 2 0 0 0 0 0 | |
| link-out jms.queue linkBalanced 0 0 0 2 0 0 0 0 0 |
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
| [vagrant@interconnect-dispatch ~]$ qdstat --log | |
| Sat Jul 16 09:28:29 2016 SERVER (info) Container Name: Router.A | |
| Sat Jul 16 09:28:29 2016 ROUTER (info) Router started in Standalone mode | |
| Sat Jul 16 09:28:29 2016 ROUTER_CORE (info) Router Core thread running. 0/Router.A | |
| Sat Jul 16 09:28:29 2016 ROUTER_CORE (info) In-process subscription M/$management | |
| Sat Jul 16 09:28:29 2016 AGENT (info) Activating management agent on $_management_internal | |
| Sat Jul 16 09:28:29 2016 ROUTER_CORE (info) In-process subscription L/$management | |
| Sat Jul 16 09:28:29 2016 ROUTER_CORE (info) In-process subscription L/$_management_internal | |
| Sat Jul 16 09:28:29 2016 DISPLAYNAME (info) Activating DisplayNameService on $displayname | |
| Sat Jul 16 09:28:29 2016 CONN_MGR (info) Configured Listener: 0.0.0.0:amqp proto=any role=normal |