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

Description

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


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 it will be added automatically by workflow builder.

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


"change-state"
Anchor
changestateaction
changestateaction

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

"publish-page"
Anchor
publishpageaction
publishpageaction

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

"approve"
Anchor
approveaction
approveaction

Insert excerpt
approve trigger action
approve trigger action
nopaneltrue

"reject"
Anchor
rejectaction
rejectaction

Insert excerpt
reject trigger action
reject trigger action
nopaneltrue

"assign" and "unassign"
Anchor
assigneaction
assigneaction

Insert excerpt
assign trigger action
assign trigger action
nopaneltrue

"set-expiration"
Anchor
setexpirationaction
setexpirationaction

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

"clear-expiration"
Anchor
clearexpirationaction
clearexpirationaction

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

"set-message"
Anchor
setmessageaction
setmessageaction

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

"clean-messages"
Anchor
cleanmessagesaction
cleanmessagesaction

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

"remove-restrictions"
Anchor
removerestrictionsaction
removerestrictionsaction

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

"send-email"
Anchor
emailaction
emailaction

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


Related Pages