...
the name must be in lower case,
the length of the name must not exceed 30 characters,
the name can only contain letters (a-z) and numbers (0-9) or the following spacers
-
or_
.the name cannot starts or end with a spacer.
Tipinfo |
---|
TipA configuration will store all the events related to it, it can be "seen" as a table in a database. |
...
Example using an application parameter to filter search results in a search option - this example will retrieve all events where actionname = 'download'
Code Block |
---|
connexion_search_option.getQuery() .mustEquals("event.params.actionname", "download"); |
...
Allows to create a new event in the sys_objectdata
configuration in order to feed the system configuration with events taking place outside the standard scope of application (standard back-office).
For example, on a customised front-office we may wish to notify the sys_objectdata
configuration when a user consults the asset detail.
Tipinfo |
---|
TipSee the javadoc of the class wsnoheto.log.analytics.EventsLogger for more information. |
...
Code Block |
---|
Map<String, Object> myParameters = new HashMap<String, Object>(); myParameters.put( "actionname" , "action1" ); myParameters.put( "param2" , "value2" ); myParameters.put( "param3" , false ); myParameters.put( "param4" , 15 ); EventsLogger.logEvent(CTSurfer.from(request), "myConfiguration", myParameters ); |
Note
The logEvent
method call is enough to create the event in the system and its application configuration (myConfiguration) if it doesn’t already exist.
Event creation via EventsLogger.logSysObjectDataEvent
...
Example of creating child events in a JSP page
Code Block |
---|
Map<String, Object> myParameters = new HashMap<String, Object>(); myParameters.put( "actionname" , "monaction" ); myParameters.put( "param2" , "value2" ); myParameters.put( "param3" , "-" ); // for null or empty parameter, use - myParameters.put( "param4_uid" , "role_18" ); // role uid of the user myParameters.put( "param5_uid" , "asset_257" ); // asset uid EventsLogger.logEvent(CTSurfer.from(request), "myConfiguration", myParameters ); |
...