Fork me on GitHub

n. Slang a rough lawless young Kuali developer.
[perhaps variant of Houlihan, Irish surname]
kualiganism n

Blog of an rSmart Java Developer. Full of code examples, solutions, best practices, et al.

Tuesday, November 15, 2011

Getting Started with Rice 2.0

This is my "Getting Started with Rice 2.0" presentation

Enjoy

Wednesday, November 9, 2011

Current KIM Refactoring Documentation

Overview

There are 2 ways to add objects to KIM.
  • Rice User Interface
  • SQL insert statements when building the application
. Since Kuali is venturing into the use of liquibase, I have put together custom refactorings that simplify adding objects to KIM and other Rice modules.

Using SQL

This is how one would normally create an attribute, create a responsibility, add the responsibility to a role, and add an attribute to a responsibility.

Example

-- International Travel Reviewer Node
insert into krim_rsp_t (rsp_id, nmspc_cd, nm, actv_ind, rsp_tmpl_id, ver_nbr, obj_id)
values(krim_rsp_id_s.nextval, 'KFS-TEM', 'Review', 'Y', 1, 1, sys_guid());


insert into krim_role_t (role_id, obj_id, ver_nbr, nmspc_cd, role_nm, kim_typ_id, actv_ind, last_updt_dt)
   values (krim_role_id_s.nextval, sys_guid(), 1, 'KFS-TEM', 'International Travel Reviewer',
   (select kim_typ_id from krim_typ_t where nm = 'Default' and nmspc_cd = 'KUALI' and actv_ind = 'Y'),
    'Y', SYSDATE);

insert into krim_rsp_attr_data_t (attr_data_id, obj_id, ver_nbr, rsp_id, kim_typ_id, kim_attr_defn_id, attr_val)
values(krim_rsp_rqrd_attr_id_s.nextval, sys_guid(), 1, krim_rsp_id_s.currval, 7, 16, 'InternationalTravelReviewer');

insert into krim_rsp_attr_data_t (attr_data_id, obj_id, ver_nbr, rsp_id, kim_typ_id, kim_attr_defn_id, attr_val)
values(krim_rsp_rqrd_attr_id_s.nextval, sys_guid(), 1, krim_rsp_id_s.currval, 7, 13, 'TA');

insert into krim_rsp_attr_data_t (attr_data_id, obj_id, ver_nbr, rsp_id, kim_typ_id, kim_attr_defn_id, attr_val)
values(krim_rsp_rqrd_attr_id_s.nextval, sys_guid(), 1, krim_rsp_id_s.currval, 7, 41, 'false');

insert into krim_rsp_attr_data_t (attr_data_id, obj_id, ver_nbr, rsp_id, kim_typ_id, kim_attr_defn_id, attr_val)
values(krim_rsp_rqrd_attr_id_s.nextval, sys_guid(), 1, krim_rsp_id_s.currval, 7, 40, 'false');

insert into krim_role_rsp_t (role_rsp_id, obj_id, ver_nbr, role_id, rsp_id, actv_ind)
values (krim_role_rsp_id_s.nextval, sys_guid(), 1, (select role_id from krim_role_t where role_nm = 'International Travel Reviewer' and nmspc_cd= 'KFS-TEM'), krim_rsp_id_s.currval, 'Y');

insert into krim_role_rsp_actn_t (role_rsp_actn_id, obj_id, ver_nbr, actn_typ_cd, priority_nbr, actn_plcy_cd, role_mbr_id, role_rsp_id, frc_actn)
   values (krim_role_rsp_actn_id_s.nextval, sys_guid(), 1, 'A', 1, 'F', '*',
   (select role_rsp_id from krim_role_rsp_t where role_id = (select role_id from krim_role_t where role_nm = 'International Travel Reviewer' and nmspc_cd = 'KFS-TEM')),
    'N');

New Liquibase Refactoring Method

I have documented a better way on the Rice Liquibase Extensions page.


Tuesday, November 8, 2011

Project Updates and the Coming Onslaught of Documentation

I have been working on improving the documentation in the projects surrounding liquibase. That's right. The changes aren't all just for looks. A lot of documentation that is going out to wikis will be updated on the official project pages first. Also, among the documentation improvements are:
  • javadoc APIs
  • Usage instructions
  • Screencasts (most importantly is that they're better and more informative screencasts)
  • Working example (examples taken directly from implemented scenarios

Updated Projects

Here is a list of projects recently updated:

rice-lb-extensions

This is a new project that is going to focus on custom refactorings. Instead of having a bunch of SQL inserts, database specific sql, and having to keep track of your previous ID, there will be meaningful code behind your database object changes. Here are some up and coming KIM Refactorings.

Monday, November 7, 2011

New GitHub Project

Overview

I've created a new project on GitHub. It is called project. What it is, is a maven skin that will make your maven site look just like the Kuali site.

Sites Used

I am currently using this skin for my rsmart-lb-ant project. Which brings me to my next update. I am currently working on improving my documentation on rsmart-lb-ant and rsmart-lb-extensions. I will be providing better examples and videos on how to use these too. Examples, are from real, working implementations.

I hope you enjoy it.