Thursday, November 10, 2016

Creating System Events

WebCenter Sites provides out-of-the-box utility to create an event which can regularly on the time set. To create an event which works as scheduler basically calls WebCenter Sites managed SiteEntry or Template via entering an entry in "SystemEvents" table in specific format.

When to use SystemEvents?
There can be various scenario to use system events such as:
1. Generating output of daily updates on the certain tables
2. Generating sitemap.xml
3. Call certain services such as creating assets from other systems
4. Call custom search like SOLR search
5. Call list of pages so that event works as crawler on delivery system. For e.g. on publish, pages are flushed, thus, pages are required to generated again. Thus, if those pages are calculated, then can be crawled with SystemEvents too.

There are 2 ways by which you can create SystemEvents: either via ContentServerExplorer/SitesExplorer or via programming

With SitesExplorer, it is very easy. You just need to add an entry within it manually with appropriate values and that's it. But certain clients don't allow access to SitesExplorer or CatalogMover and thus, it is difficult when such events are required. Hence, the need of a program which can create System Events whenever required as shown below:

Following SystemEventsUtility should provide an idea on how to create utility to perform all the tasks related to events: create, enable, disable and destroy.


Information related to the methods are present in Oracle WebCenter Sites Tag library.

DisclaimerThe code and/or the configurations posted are not official recommendations and should be used at sole's discretion with proper testing before deploying on live WebCenter Sites systems. Cheers!!

No comments:

Post a Comment

A simple code compare functionality

One of the most important aspect of any development cycle is deployment and while deployment, it is very important to note the changes don...