Rules Engine consequence details
The Adobe Experience Platform Mobile SDK supports multiple types of rule consequences (also known as actions) that can be executed when the trigger event and the conditions are met. This section contains a detailed description of each rule consequence.
Analytics consequence
This rule consequence is currently handled by the Analytics extension.
Friendly name
Key
Type
Required
Description
Action
actionString
No
If provided, this value will be used as the action parameter in a
trackAction call.State/Page name
stateString
No
If provided, this value will be used as the state parameter in a
trackState call.Context data
contextdataObject
No
Additional context data to be attached to the resulting Analytics request. The object should only have one level of depth that contains key-value pairs.
In-App message consequence
This rule consequence is currently handled by the Campaign extension.
Friendly name
Key
Type
Required
Description
In-App template
templateString
Yes
Determines the display method of the In-App message. Currently supported types are
fullscreen, alert and local.Fullscreen message content
htmlString
Yes, for fullscreen message type
Filename of the HTML content to load for a fullscreen In-App message. This file will be sourced from the same zip file the
assets/ directory from which the consequence was retrieved. The base path (assets/) should not be included in this value.Remote assets
remoteAssetsArray
No, only used by the fullscreen message type
Array of strings of remote assets that should be cached by the client. These should be full-URL strings with HTTPS transport.
Message title
titleString
Yes, for the alert message type
String that defines the title of the alert message.
Message content
contentString
Yes, for the alert and the local type message types
String that defines the content of the alert or local notification.
Confirm button text
confirmString
No, only used by alert messages
String that defines the text on the Confirm button in the OS-operated dialog.
Cancel button text
cancelString
Yes, for alert message type
String that defines the text for the Cancel button in the OS-operated dialog.
Confirmation URL
urlString
No, only used by alert messages with the Confirm key
String that defines the URL to trigger when the Confirm button in an alert dialog is triggered. Typically used in deep link scenarios but can also be used to trigger external sites and apps.
Wait time
waitNumber
No, only used by the local notification message type
Total number of seconds to delay the triggering of a local notification. The default value is 0 (immediate). If a
date is also provided, the wait field is ignored.Fire date
dateNumber
No, only used by the local notification message type
Represented as the number of seconds since epoch, this field indicates a specific time to deliver this local notification. If provided, this field has precedence over the wait field.
Deep link
adb_deeplinkString
No, only used by the local notification message type
Deep link URL to attach to the payload of the notification, which allows users who click-through the notification to be redirected to the provided URL.
Custom user data
userDataObject
No, only used by the local notification message type
A custom dictionary of pairs that will be attached to the payload of the notification.
Category
categoryString
No, only used by the local notification message type
A category ID for this notification.
Sound
soundString
No, only used by the local notification message type
The name of a custom sound to use when this notification is delivered.
Postback consequence
This rule is currently handled by the Signal extension.
Friendly name
Key
Type
Required
Description
Description URL
templateurlString
Yes
Destination URL to which the postback signal will be sent.
Request body
templatebodyString
No
A string that contains the POST body that will be sent. If this value exists, the postback is sent as a POST instead of as a GET request. You must ensure that the string is appropriately json escaped.
Content type
contenttypeString
No
Used to set the Content-Type header for POST requests. If the header is not supplied, and a request body is found, the default is
application/x-www-form-urlencoded.Connection timeout
timeoutNumber
No
The timeout value for the network connection in seconds. The default value is 2 seconds.
Sync PII consequence
This rule is currently handled by the Signal extension.
Friendly name
Key
Type
Required
Description
Description URL
templateurlString
Yes
Destination URL to which the PII signal will be sent. Must be HTTPS, and non-HTTPS URLs will be ignored.
Request body
templatebodyString
No
A base64-encoded blob that contains the POST body to be sent. If this value exists, the PII signal will be sent as a POST instead of as a GET request.
Content type
contenttypeString
No
Used to set the Content-Type header for POST requests. If the header is not supplied, but a request body is found, the default is
application/x-www-form-urlencoded.Connection timeout
timeoutNumber
No
The timeout value for the network connection in seconds. The default value is 2 seconds.
Open URL consequence
This rule is currently handled by the Signal extension.
Friendly name
Key
Type
Required
Description
URL
urlString
Yes
URL that will be opened by the target platform. This might be a URL for a website or a deep link to an app.
Profile consequence
This rule is currently handled by the Profile extension.
Friendly name
Key
Type
Required
Description
Operation to perform
operationString
Yes
Determines the type of operation to be performed on the profile. The following operations are supported: <ul><li>
write: Saves the value in the given key in the shared state and the local profile. If an associated value for the key already exists, the existing value will be overwritten.</li><li> delete: Removes key from the profile's shared state and the local profile.</li></ul>Device-side profile key
key
String
Yes
Key in the device-side profile on which the requested operation will be performed. Note: This key will be accessible later through the shared state from the Profile extension. For more details, please read the user profile shared state.
Device-side profile value
value
String or Number
Yes, for write operations
New value to write to the key.
Attach data consequence
This rule is currently handled by the Mobile Core extension.
Friendly name
Key
Type
Required
Description
Event data
eventdataobject
Yes
Dictionary of key-value pairs to add to the triggering event's EventData. If a key appears in both the original event data and the payload specified in the consequence, the value from the original event is retained. For more information, see the attach data tutorial.
Modify data consequence
This rule is currently handled by the Mobile Core extension.
Friendly name
Key
Type
Required
Description
Event data
eventdataobject
Yes
Dictionary of key-value pairs to add to or replace in the triggering event's EventData. If a key appears in both the original event data and the payload specified in the consequence, the value from the consequence overrides the original. If a key is provided in the detail object with a value of null, that key will be removed from the triggering event. For more information, see the modify data tutorial.