Workflow event variables
- Applies to:
- Campaign v8 Web User Interface
Some workflow activities allow you to edit scripts in the expression editor to perform specific actions, such as retrieving data from previous activities, building conditions, or computing file names based on event variables.
What are event variables
Scripts executed in the context of a workflow access a series of additional global objects, such as the workflow itself that is being executed (instance
), its various tasks (task
), or the events that activated a given task (event
).
Each type of object is associated with a category of variables that can be used in the expression editor when editing scripts in activities, such as JavaScript code or Test.
- Instance variables (
instance.vars.xxx
) are comparable to global variables. They are shared by all activities. - Task variables (
task.vars.xxx
) are comparable to local variables. They are only used by the current task. These variables are used by persistent activities to keep data and are sometimes used to exchange data between the different scripts of the same activity. - Event variables (
vars.xxx
) enable the exchange of data between the elementary tasks of a workflow process. These variables are passed by the task that activated the task in progress. They are then passed to the following activities. Event variables are the most commonly used variables, and they should be used in preference to instance variables.
Leverage event variables in the expression editor
Predefined event variables are available for use in the expression editor’s left-hand side pane. You can also create new ones by initializing a new variable in your code.
In addition to these event variables, you can also use the Conditions menu in the left pane to build conditions and the Add current date menu to apply functions related to date formatting.
Campaign
- Adobe Campaign Web User Interface documentation
- Release notes
- Get started with Adobe Campaign
- Messages and deliveries
- Get started with messages
- Access deliveries
- Create a delivery
- Use delivery templates
- Emails
- Push notifications
- SMS
- Direct mail
- Call center
- Custom external channel
- Transactional messages
- Send external deliveries
- Add offers to your messages
- Send messages to your subscribers
- Configure delivery settings
- Preview and test your delivery
- Content management
- Landing pages
- Profiles and audiences
- Cross-channel campaigns
- Workflows
- Get started with workflows
- Guardrails and limitations
- Workflow event variables
- Access and manage workflows
- About read-only workflows
- Create and run your first workflow
- Work with workflow activities
- About workflow activities
- And-join
- Build audience
- Change data source
- Change dimension
- Combine
- Deduplication
- Email, SMS, Push, Direct mail
- Enrichment
- External signal
- Extract file
- Fork
- Incremental query
- JavaScript code
- Load file
- Reconciliation
- Save audience
- Scheduler
- Split
- Subscription services
- Test
- Transfer file
- Update data
- Wait
- Query the database
- Reporting
- Integrations
- Configuration
- Campaign v8 (console) documentation >