8:00 – 3:30 CSIP
- Hibernate chapter 6
- Chapter 7. Learning about annotations like all the other cool kids. Done. Chapter 8 on Monday.
8:00 – 3:30 CSIP
8:00 – 4:00 CSIP
8:00 – 4:30 CSIP
8:00 – 1:30, 3:30 -6:00 CSIP
// Import the class
import droolsbook.bank.service.BankingInquiryService;
// create the session
static StatelessKnowledgeSession session;
// create rule engine
KnowledgeBaseConfiguration configuration = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
KnowledgeBase knowledgeBase = KnowledgeBaseFactory.newKnowledgeBase(configuration);
// declare our global
BankingInquiryService inquiryService = new BankingInquiryServiceImpl();
// make a session
session = knowledgeBase.newStatelessKnowledgeSession();
// add the global to the session
session.setGlobal("inquiryService", inquiryService);
// import
import droolsbook.bank.service.*;
// declare
global BankingInquiryService inquiryService;
// use the global in a rule (note the surrounding eval(), which can evaluate any code that returns a TRUE or FALSE).
rule "accountNumberUnique"
when
$account : Account(eval(!inquiryService.isAccountNumberUnique($account)))
then
error(kcontext, $account);
end

8:00 – 5:00 CSIP
<dependency> <groupId>org.slf4j</groupId> <artifactId>jcl-over-slf4j</artifactId> <version>1.6.0</version> </dependency>
[INFO] Reactor Summary: [INFO] [INFO] Drools Book Parent ................................ SUCCESS [0.694s] [INFO] Banking Core ...................................... SUCCESS [3.705s] [INFO] Validation ........................................ SUCCESS [7.324s] [INFO] ETL with iBatis ................................... SUCCESS [12.815s] [INFO] DSL ............................................... FAILURE [4.146s] [INFO] Decision Tables ................................... SKIPPED [INFO] Ruleflow .......................................... SKIPPED [INFO] Stateful Rules .................................... SKIPPED [INFO] Complex Event Processing .......................... SKIPPED [INFO] Drools Flow ....................................... SKIPPED [INFO] Testing ........................................... SKIPPED [INFO] Integration ....................................... SKIPPED [INFO] Performance ....................................... SKIPPED [INFO] Sample Application ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 29.097s [INFO] Finished at: Mon Apr 02 16:58:52 EDT 2012 [INFO] Final Memory: 32M/199M
[ERROR] Failed to execute goal on project dsl: Could not resolve dependencies for project droolsbook:dsl:jar:1.1-SNAPSHOT: The following artifacts could not be resolved: droolsbook:etl_iBatis:jar:tests:1.1-SNAPSHOT, droolsbook:validation:jar:tests:1.1-SNAPSHOT: Failure to find droolsbook:etl_iBatis:jar:tests:1.1-SNAPSHOT in http://www.fgmdev.com:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of corprepo has elapsed or updates are forced -> [Help 1]
8:00 – 9:30 CSIP
9:30 – 12:00 FP
12:00 – 4:00 CSIP
8:00 – 4:00 CSIP
Lunch meeting to go over Noveta changes
8:00 – 4:30 CSIP

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
// Check the builder for errors
if( kbuilder.hasErrors() ) {
System.out.println( kbuilder.getErrors() );
return;
}
// Resources of any type can be added iteratively
kbuilder.add( ResourceFactory.newFileResource( "/project/myrules1.drl" ), ResourceType.DRL);
kbuilder.add( ResourceFactory.newFileResource( "/project/myrules2.drl" ), ResourceType.DRL);
if( kbuilder.hasErrors() ) {
System.out.println( kbuilder.getErrors() );
return;
}
Collection<KnowledgePackage> kpkgs = kbuilder.getKnowledgePackages();
8:00 – 8:30 FP
8:30 – 4:30 CSIP
10:00 – 2:00 FP
8:00 – 12:30 FP
8:00 – 4:00 FP

4:00 – 5:00 CSIP
8:00 – 3:00 FP
8:00 – 5:30 FP

8:00 – 10:30 VISIBILITTY/OH
10:30 – 12:00, 3:00 – 5:00 FP
You must be logged in to post a comment.