Skip to content

Triggered Unfold

Description

The Triggered Unfold activity converts multiple event-style rows into a single structured record by unfolding rows based on a trigger condition.

This is particularly useful when working with event logs or session-based records, where each session starts with a special event type (e.g., START) and is followed by other events (e.g., DATA). The activity uses a trigger value (like START) to determine when a new group begins, and then flattens the related rows into a single output row.

Use case:
This activity can be used to consolidate log-style entries into structured records per session. For example, transforming application logs with event sequences like START, DATA, and END into a flat summary per session.


Input

  • Data – Required
    A table containing sessional or sequential rows with repeated identifiers (e.g., SessionID, UserID, etc.).

Output

Output TypeFormatDescription
DataTabularA flattened table with values grouped by the key and trigger pattern.

Configuration Fields

Field NameDescription
Key ColumnRequired. The column used to group related rows together (e.g., SessionID).
Fold ColumnRequired. The column used to identify the type of each row (e.g., START, DATA).
Trigger ValueRequired. The specific value in the fold column that signals the start of a new group.
Data ColumnRequired. The column containing the actual values to be placed into structured output fields.

Sample Input

SessionIDEventTypeEventData
1STARTA
1DATAB
1DATAC
2STARTX
2DATAY

Sample Configuration

FieldValue
Key ColumnSessionID
Fold ColumnEventType
Trigger ValueSTART
Data ColumnEventData

Sample Output

SessionIDSTARTDATA
1AC
2XY