adobe / adobe/aepsdk-rulesengine-ios
Add rules function for converting data element values to string
- Dominant language
- Swift
- Stars
- 20
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
As a Mobile SDK user configuring rules remotely in Launch UI, I want to be able to fetch any node in a shared state or event data, regardless its type, and be able to convert that to string when the rules are evaluated.
I want to have a function in rules that allows me to do that when the a condition or action is evaluated.
For example, I should be able to send a post back including the visitor identifiers:
**{%toString(~state.com.adobe.module.identity/visitoridslist)%}**
**{%toString(~xdmstate.com.adobe.module.identity/identityMap)%}**
note: `~state.com.adobe.module.identity/visitoridslist` is a free form data element
Contributor guide
Research direction
Start by locating the rules condition and action evaluation paths and how free-form data elements resolve shared-state and event-data nodes. Trace the existing value handling, then verify that the proposed toString function accepts values of any type and produces the requested string output for the example state paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100