Utility Methods
Session
The class Session contains utility methods to be used in Drools rules to get information about current session. You can get the name of the session, start time, and a list of the subscriptions of a session.
Note: Use the correct package for Session:
com.lawson.eventhub.analytics.drools.model.
Example of a simple rule code that logs all session info:
System.out.println("Session info: " + Session.getString());
Util
The class Util contains some utility methods to be used in Drools rules, for example, left trim, right trim, and a time stamp formatter.