8:00 – 4:00 FP
- Setting up FingerIO to handle audio states. Done
- Started to integrate DataDictionary.
8:00 – 4:00 FP
8:00 – 4:00 FP
8:00 – 4:00 FP
8:30 – 2:30 FP
8:00 – 12:30 CSIP

package com.sample.information_schema;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@Table(name = "TABLES")
public class TableMySql {
@Column(name = "version")
private BigInteger version;
@Column(name = "table_rows")
private BigInteger table_rows;
@Column(name = "avg_row_length")
private BigInteger avg_row_length;
@Column(name = "data_length")
private BigInteger data_length;
@Column(name = "max_data_length")
private BigInteger max_data_length;
@Column(name = "index_length")
private BigInteger index_length;
@Column(name = "data_free")
private BigInteger data_free;
@Column(name = "auto_increment")
private BigInteger auto_increment;
@Column(name = "checksum")
private BigInteger checksum;
@Temporal(TemporalType.DATE)
@Column(name = "create_time")
private Date create_time;
@Temporal(TemporalType.DATE)
@Column(name = "update_time")
private Date update_time;
@Temporal(TemporalType.DATE)
@Column(name = "check_time")
private Date check_time;
@Column(name = "table_catalog")
private String table_catalog;
@Column(name = "table_schema")
private String table_schema;
@Column(name = "table_name")
private String table_name;
@Column(name = "table_type")
private String table_type;
@Column(name = "engine")
private String engine;
@Column(name = "row_format")
private String row_format;
@Column(name = "table_collation")
private String table_collation;
@Column(name = "create_options")
private String create_options;
@Column(name = "table_comment")
private String table_comment;
public BigInteger getVersion() {
return version;
}
public BigInteger getTable_rows() {
return table_rows;
}
public BigInteger getAvg_row_length() {
return avg_row_length;
}
public BigInteger getData_length() {
return data_length;
}
public BigInteger getMax_data_length() {
return max_data_length;
}
public BigInteger getIndex_length() {
return index_length;
}
public BigInteger getData_free() {
return data_free;
}
public BigInteger getAuto_increment() {
return auto_increment;
}
public BigInteger getChecksum() {
return checksum;
}
public Date getCreate_time() {
return create_time;
}
public Date getUpdate_time() {
return update_time;
}
public Date getCheck_time() {
return check_time;
}
public String getTable_catalog() {
return table_catalog;
}
public String getTable_schema() {
return table_schema;
}
public String getTable_name() {
return table_name;
}
public String getTable_type() {
return table_type;
}
public String getEngine() {
return engine;
}
public String getRow_format() {
return row_format;
}
public String getTable_collation() {
return table_collation;
}
public String getCreate_options() {
return create_options;
}
public String getTable_comment() {
return table_comment;
}
}
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="MySqlInformationSchema"> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/information_schema</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.password">edge</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.default_schema">information_schema</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hbm2ddl.auto">update</property> <property name="show_sql">true</property> <property name="connection.pool_size">1</property> <!-- List all the annotated classes we're using --> <mapping class="com.sample.information_schema.tableMySql"/> </session-factory> </hibernate-configuration>
12:30 – 4:30 FP
7:00 – 9:30 FP
8:00 – 4:00 CSIP
#created on: Apr 11, 2012
package com.sample
#list any import classes here.
import com.sample.WrappedObject;
import com.sample.WrappedMap;
#declare any global variables here
dialect "java"
rule "rule Floats less than six"
when
WrappedMap($wo:getObjectByName("myFloat")) // condition
eval($wo.NumericLessThan(6))
then
System.out.println("n--------------------------------n"+$wo.toString());
end
8:00 – 4:30 CSIP
7:30 – 1:30 FP
1:30 – 4:30 CSIP
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
You must be logged in to post a comment.