emittedEvent

public void emittedEvent(EventMessage eventMessage, ActorContext actorContext)

Emits an event from the third-party system.

If the event is required by another Context, posts the event into the IntegrationBroker of the respective Context. Does nothing if the event is not required by any Context.

The caller is required to supply the tenant ID via the ActorContext.tenant_id if this Context is multitenant.

Parameters

eventMessage

the event

actorContext

the info about the actor, a user or a software component, who emits the event


public void emittedEvent(EventMessage eventMessage, UserId userId)

Emits an event from the third-party system.

If the event is required by another Context, posts the event into the IntegrationBroker of the respective Context. Does nothing if the event is not required by any Context.

This overload may only be used for single-tenant third-party contexts. If this Context is multitenant, this method throws an exception.

Parameters

eventMessage

the event

userId

the ID of the actor, a user or a software component, who emits the event