Syntax
comalaSetState(pageIDpageId, workflowState, comment?<comment>)
Description
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. |
Return type
variable return type - depending on the left hand side operator type
Examples
Both examples show how JSON data can be parsed into an array or struct collections. Both examples use the following struct definitions:
1 |
|
Example 1 - Reading JSON from a file
16 |
|
Example 2 - Reading JSON from a variable
16 |
|
See also
...
...
...
...
...
...
...
...
...
...
...
...
...
...
workflowState | string | Yes | Name of the workflow state to be set to. |
comment | string | no | Comment to be added to the Comala workflow history. |
Return type
Boolean (true/false)
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
return comalaSetState(getPage("TST", "Demo Page"), "Approved", "Page was approved by: " + currentUserFullName()); |