Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Overview


Excerpt

One or more trigger actions can be set for a named event in the workflow.

When the workflow event occurs the trigger will check that any required condition is met, and if met the action(s) will occur.

Actions

A list of actions to perform once the event has occurred and the conditions are fulfilled. A single trigger may include one or more actions.

Action

Table of Contents

Description

maxLevel

change-state

Forces a change of the state if the provided parameters are valid

publish-page

Publishes a single page to a different space using Comala Publishing for Cloud app

approve

Approves a named approval

reject

Rejects a named approval

assign

Assigns one or more users as reviewers to a named approval

unassign

Unassigns one or users as reviewers for a named approval

set-expiration

Sets a new expiration date. Due date is in the format ISO 8601

clear-expiration

Clears expiration date

set-message

Adds a dialog message for in-app notifications

clean-messages

Removes all messages

remove-restrictions

Removes view and edit restrictions for all users/groups

send-email

Sends an email to one or more specified recipients

3
minLevel3


Triggers can be added to a workflow using workflow builder.




Code Block
"triggers:"
[
	{"event": "on-change-state",
		"conditions":
		[
			{"state": "Rejected"} ],
		"actions":
		[
			{"action":"set-message", "type":"info", "title":"Hey My Wonderful design and Tech Team", "body":"We have some work to do ... it was rejected!!!"}
		]
	}
]

(info)  If adding the JSON trigger using workflow builder there is no need to include the opening "triggers:" JSON markup notation, since it will be added automatically by workflow builder.

If the action includes a users parameter "user" parameter, the users can only be added using the userId. The groups "group" parameter value can be added as either groupId or groupName. Both the users and the groups parameters "user" and the "group" parameters accept workflow parameters.

"change-state"

Anchorchangestateactionchangestateaction

Insert excerpt
change-state trigger action
change-state trigger action
nopaneltrue

"publish-page"

Anchorpublishpageactionpublishpageaction

Insert excerpt
publish-page trigger action
publish-page trigger action
nopaneltrue

"approve"

Anchorapproveactionapproveaction

Insert excerpt
approve trigger action
approve trigger action
nopaneltrue

"reject"

Anchorrejectaction

rejectaction

Insert excerpt
reject trigger action
reject trigger action
nopaneltrue

"assign" and "unassign"

Anchorassigneactionassigneaction

Insert excerpt
assign trigger action
assign trigger action
nopaneltrue

"set-expiration"

Anchorsetexpirationactionsetexpirationaction

Insert excerpt
set-expiration trigger action
set-expiration trigger action
nopaneltrue

"clear-expiration"

Anchorclearexpirationactionclearexpirationaction

Insert excerpt
clear-expiration trigger action
clear-expiration trigger action
nopaneltrue

"set-message"

Anchorsetmessageactionsetmessageaction

Insert excerpt
set-message trigger action
set-message trigger action
nopaneltrue

"clean-messages"

Anchorcleanmessagesaction

cleanmessagesaction

Insert excerpt
clean-messages trigger action
clean-messages trigger action
nopaneltrue

"remove-restrictions"

Anchorremoverestrictionsactionremoverestrictionsaction

Insert excerpt
remove-restrictions trigger action
remove-restrictions trigger action
nopaneltrue

"send-email"

Anchoremailactionemailaction

Insert excerpt
send-email trigger action
send-email trigger action
nopaneltrue


Related Pages