Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

comalaSetState(pageId, workflowState,

...

[comment])

Package

comala

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Sets the workflow state of the page using the Comala Workflows Document Management add-on.

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

pageId

...

Integer

Yes

The selected page to change the workflow state on.

workflowState

...

String

Yes

Name of the workflow state to be set to.

comment

...

String

...

Yes

Comment to be added to the Comala workflow history.

Return

...

Type

Boolean (true/false)

Example

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

Returns 'true'

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "comala_routines" and space = currentSpace ( )
labelsarray_routines

We've encountered an issue exporting this macro. Please try exporting this page again later.