Question
Can Data Distiller preserve attribute values across scheduled executions (stateful processing)?
Hi everyone,
I'm working on a scheduled Data Distiller job that computes an eligibility flag for entities and writes the results to a Profile-enabled dataset.
One of the output attributes is a timestamp that should represent when the entity first became eligible.
The desired behavior is:
- If an entity transitions from not eligible → eligible, set the timestamp to
CURRENT_TIMESTAMP. - If the entity remains eligible in subsequent scheduled runs, preserve the original timestamp.
- If the entity becomes ineligible, reset the timestamp (or set it to
NULL).
Conceptually, the logic would be similar to:
CASEWHEN current.isEligible = TRUEAND (previous.isEligible = FALSE OR previous.isEligible IS NULL)
THEN CURRENT_TIMESTAMPWHEN current.isEligible = TRUEAND previous.isEligible = TRUETHEN previous.EligibilityTimestamp
ELSE NULL ENDMy questions are:
- Is it supported to read the previous state from a Profile-enabled dataset and write the updated results back to the same dataset within a scheduled Data Distiller job?
- If not, what is the recommended Adobe pattern for maintaining stateful attributes (such as a "first eligible timestamp") across scheduled executions?
- Has anyone implemented a similar state-preservation pattern using Data Distiller or Query Service?
Any guidance or best practices would be greatly appreciated.
Thanks!