Send events from custom exits to Event Processor

A custom exit can send an event to Event Processor to start an interaction.

The following is an example of a custom action exit:

public class StartInteractionAction implements ExecuteActionExit




protected EventProcessor eventProcessor;


public ExecuteActionResult execute(Object currentEditedObject, List<Object> selectedObjects,

SourceDatabaseExternal sourceDatabaseExternal, Map<String, Object> functionArguments)

throws Exception


ExecuteActionResult result = new ExecuteActionResult();

result.setMessage("Interaction started");


// This will create an event object:

Event event = EventBuilder.create()


.setHeader("collectionId", (BusinessCollection)currentEditedObject).getId())


// This will pass the event object to the Event Processor:


return result;



Related Links