Skip to content

Project Actions

Project actions are run on Constellation events (which are triggered by revisioning the Constellation) and consist of rules and a job. Action plans are like templates which decide how the action should be run and what it should do. Actions can be re-run if needed.

Decide what nodes and in which way they’re collected from Constellation events. The nodes can then be filtered, ordered, and selected to be used as a way to determine what nodes should be included in the special variables.

Jobs are what define what the action should do, such as sending an email or calling an API. Each action can only have one job. Jobs are context-aware, that is, they can have variables in the different inputs in order to tailor your payloads.

Email jobs can be configured with the following inputs:

API jobs can be configured with the following inputs:

  • Method (GET, POST, PUT, PATCH, and DELETE)
  • URL
  • Headers (key-value pairs)
  • Body (sent in UTF8 encoding with media type application/json)

Variables can be added to context-aware places, such as in jobs. Variables can be in either open ($MY_VARIABLE) or closed (${MY_VARIABLE}) format. Read more here.

The following variables are available in context-aware spaces, such as in jobs.

NameDescription
PROJECT_IDProject ID (UUID)
PROJECT_NAMEProject name (string)
CONSTELLATION_HASHTarget revision’s hash, see revisions
CONSTELLATION_VERSIONTarget revision’s root node’s version value
CONSTELLATION_STATUSTarget revision’s root node’s status result
CONSTELLATION_ALL_NODES_JSONAll nodes in the target revision in JSON format, see types
CONSTELLATION_ALL_DIFFS_JSONAll diffs from the targeted revision in JSON format, see types
CONSTELLATION_NODES_JSONTargeted nodes based on rules in the target revision in JSON format, see types
CONSTELLATION_DIFFS_JSONTargeted node diffs from the targeted revision in JSON format, see types
CONSTELLATION_ALL_NODES_HTMLAll nodes in the target revision in a styled HTML table
CONSTELLATION_ALL_DIFFS_HTMLAll diffs from the targeted revision in a styled HTML table
CONSTELLATION_NODES_HTMLTargeted nodes based on rules in the target revision in a styled HTML table
CONSTELLATION_DIFFS_HTMLTargeted node diffs from the targeted revision in a styled HTML table