Automation trigger that delegates its matching behaviour to a custom trigger type registered by a marketplace app, via FunnelTriggerTypeBuilder. Identifies the RepoAppFunnelTriggerType it delegates to by triggerTypeId, the app event it listens for by eventId, and carries a map of app-defined parameter values used to further narrow which events match. Registered as the "repoAppTrigger" JSON subtype of FunnelTrigger.

Group: Journeys

Implements: FunnelTrigger, Serializable


Properties

PropertyReturnsDescription
descriptionStringHuman-readable summary of this trigger's configuration.
eventIdStringId of the app-defined event this trigger listens for. Matched against RepoAppFunnelEvent.getEventId() when the fired event is a RepoAppFunnelEvent, or against the fired event class's simple name otherwise.
fieldsList<Pair<ExtraField,Object>>Configuration fields shown in the automation editor for this trigger, as defined by the resolved app trigger type, paired with the currently configured parameter values. Empty if the trigger type cannot be resolved.
funnelTriggerTypeIdStringIdentifier of the trigger type this trigger is an instance of, always "repoAppTrigger". Used to look up this class as the FunnelTrigger implementation from the JSON subtype registry.
parametersMap<String,Object>App-defined parameter values configured for this trigger instance, keyed by the field name declared in the trigger type's ExtraField list. Passed to the trigger type's check-match JS function to decide whether a fired event matches. May be null if the trigger has not been configured.
triggerTypeIdStringId of the RepoAppFunnelTriggerType this trigger delegates to, matching that type's getId(). Never null for a configured trigger.

Methods

getFunnelTriggerTypeId()

Returns: String

Identifier of the trigger type this trigger is an instance of, always "repoAppTrigger". Used to look up this class as the FunnelTrigger implementation from the JSON subtype registry.

getFields()

Returns: List<Pair<ExtraField,Object>>

Configuration fields shown in the automation editor for this trigger, as defined by the resolved app trigger type, paired with the currently configured parameter values. Empty if the trigger type cannot be resolved.

getEventId()

Returns: String

Id of the app-defined event this trigger listens for. Matched against RepoAppFunnelEvent.getEventId() when the fired event is a RepoAppFunnelEvent, or against the fired event class's simple name otherwise.

getParameters()

Returns: Map<String,Object>

App-defined parameter values configured for this trigger instance, keyed by the field name declared in the trigger type's ExtraField list. Passed to the trigger type's check-match JS function to decide whether a fired event matches. May be null if the trigger has not been configured.

getTriggerTypeId()

Returns: String

Id of the RepoAppFunnelTriggerType this trigger delegates to, matching that type's getId(). Never null for a configured trigger.

getDescription()

Returns: String

Human-readable summary of this trigger's configuration.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.