Conscia DX Engine JavaScript Cheat Sheet

This blog post contains a JavaScript cheat-sheet for working with the Conscia DX Engine.

ScriptExplanation
secret(key)Retrieve the value of a secret.
processHandlebars(template, values)Process a Handle bars template.
componentResponse(key)Access the response of the Component.
dataImplicitly available to Data Transformation Scripts.
body, requestBody, engineResponseAvailable in Listener definitions.
componentExtras(key)Properties of the Component, such as Experience Rules and Attributes.
responseAvailable in Response Transformation and Context Field Enrichment.
contextField(key)Retrieve a Context value.
commerceTools.generateToken()Generate Commercetools API Token.
componentStatus(key)PROCESSING
EXECUTING
SKIPPED
WAITING_FOR_COMPONENT_DEPENDENCIES VALID
FAILED

Leave a comment