Toggle menu

Background Tasks

The background tasks section lets you enter the name of a single End Point. The End Point will be called by the iCM gateway as messages are processed.

Event Handler

iCM generates events when content is created, modified or deleted. These events can be intercepted and used to implement custom behaviour outside of the scope of the the built-in functionality. The End Point you select in the Background Tasks section should be able to interpret the event message, then perform some action, for example calling another End Point when an article is updated.

An event message contains the following:

PropertyDescription
actionThe action performed, eg INSERT, UPDATE, DELETE
ipThe IP address of the request that triggered the message
itemIDiCM asset ID
itemTypeiCM asset type, eg Article, Media, Object, User, UserGroup
localtrue if the action occurred on this server (as opposed to elsewhere in a clustered environment - see below)
notesAdditional notes
timestampThe event timestamp
userIDThe ID of the iCM user responsible for the message

local

The local flag is important where there are multiple iCM servers in a cluster. When an event is generated it will be sent to each and every iCM in the cluster. Thus every iCM will process the message. The local flag will be set to "true" when the message is received by the iCM server that originated the message. Therefore to ensure that actions are only performed once by the event handler End Point, they should only be performed if the "local" is "true".

Example

The End Point library includes an example event handler in goss.Examples.Events.LoggingHandler. If not present you should be able to import the example group found in custom/EXAMPLES/standard-10.0.7.0-ENDPOINTS.xml via the File Manager.

Last modified on May 23, 2022

Share this page

Facebook icon Twitter icon email icon

Print

print icon