@event::getSubscription

Retrieves the specified Subscription belonging to the Company associated with the event.

Syntax:

@event::getSubscription(String subscriptionId)

Parameters:

(String) subscriptionId: the identifier of the Subscription script object.

Returns:

(Script object) @subscription

Example:

The following example illustrates the use of getSubscription as part of a theoretical scenario where this event resolution business process will determine any subscriptions for this Event Domain.

# Process subscriptions

@subscriptionList = @event::getSubscriptions()

# iterate thru the list of subscription ids

FOR ($subscriptionId : $subscriptionList)

    @subscription = @event::getSubscription($subscriptionId)

    @subscriptionAlert = @subscription::notification()

     .

     .

     .

     @subscriptionAlert::performNotification()

ENDFOR