Versions Compared

Key

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

...

comalaSetState(pageId, workflowState, <comment>)

Description

Excerpt

Sets the workflow state of the page using the Comala Workflows add-on.

Parameters

Parameter name

Type

Required

Description

pageId

number

Yes

The selected page to change the workflow state on.

workflowStatestringYesName of the workflow state to be set to.
commentstringnoNoComment to be added to the Comala workflow history.

Return type

Boolean (true/false)

...

Example

Code Block
languagejava
linenumberstrue
return comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName());