Get and set event data

For lack of a T.case.setEventData()/T.case.getEventData() API, use T.case.setVariable and T.case.getVariable with variable names that are namespaced using the Event ID.

// 3 ingredients are needed to set an Event Variable.
const eventId = '123'
const variableName = 'foo'
const variableValue = 'bar'

// Set Event Variable.
T.case.setVariable(`${eventId}-${variableName}`, variableValue)

// Get Event Variable.
const shouldBeValueOfBar = T.case.getVariable(`${eventId}-${variableName}`)

There is an example in the case-module Content Set which consists of three parts: