Content events are fired when content stored in the application repository is created, updated, deleted, moved, copied, or when permissions change. These events allow triggers to monitor content lifecycle operations and publish events when repository content is modified.
CONTENT_CREATED
The CONTENT_CREATED trigger is fired when new content is created in the process.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
CONTENT_UPDATED
The CONTENT_UPDATED trigger is fired when content is updated in the process.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
CONTENT_DELETED
The CONTENT_DELETED trigger is fired when content is deleted from the process.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
| parentPath | A regular expression matching the path of the parent container of the deleted content, for example /invoices.* |
CONTENT_MOVED
The CONTENT_MOVED trigger is fired when content is moved from one container to another.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
| sourceParentId | The indentifier of the parent container from which the content was moved, for example 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
| sourceParentPath | A regular expression matching the path of the parent container of the moved content, for example /invoices.* |
CONTENT_COPIED
The CONTENT_COPIED trigger is fired when content is copied in the process.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
| sourceId | The indentifier of the container from which the content was moved, for example 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
| sourceParentId | The indentifier of the parent container from which the content was moved, for example 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |
PERMISSION_CHANGED
The PEMISSION_CHANGED trigger is fired when permissions to read or write content are changed, for example removed, added, or updated.
The input parameters of the event are:
| Parameter | Description |
|---|---|
| condition | A condition that determines whether the trigger publishes an event. For more details on conditions available as a part of the input values, see Creating Conditions. |
| type | The content type of the created repository item. For example, SysFile. |
| mixins | One or more mixins that the created content must contain. For example, Folderish. |
| path | A regular expression that matches the path of the created content. For example, /invoices.*. |
| contentId | The unique identifier of the created content. For example, 67bd1953-76e8-4104-ac4b-0ca8a9f130eb. |