Comment Workflow Operation
ID: comment
Description
The comment operation can be used to create, resolve or delete comments for events within workflows.
Parameter Table
Configuration Key | Example | Description |
---|---|---|
action | create | Action to be performed: create, resolve or delete. Default value is create. |
reason | EVENTS.EVENTS.DETAILS. COMMENTS.REASONS.CUTTING |
The comment reason's i18n id. You can find the id in etc/listproviders/ event.comment.reasons.properties |
description | Recording has not been cut yet. | The description text to add to the comment. |
Notes:
- reason and description must be provided for the create action.
- create will not create duplicate comments: if there is already a comment with the same reason and description, a new comment will not be created.
- resolve and delete will perform no action if no comment matches the provided parameters (reason, description, or reason and description). If more than one comment matches the parameters, only the first matching comment will be resolved or deleted.
Operation Example
Create a comment:
<operation
id="comment"
description="Mark the recording for cutting">
<configurations>
<configuration key="action">create</configuration>
<configuration key="reason">EVENTS.EVENTS.DETAILS.COMMENTS.REASONS.CUTTING</configuration>
<configuration key="description">Recording has not been cut yet.</configuration>
</configurations>
</operation>
Resolve a comment:
<operation
id="comment"
description="Resolve the cutting flag">
<configurations>
<configuration key="action">resolve</configuration>
<configuration key="reason">EVENTS.EVENTS.DETAILS.COMMENTS.REASONS.CUTTING</configuration>
</configurations>
</operation>