Server-side Javascript
In order to filter the display of a workflow, the global variable “context” is available for the Javascript function. The variable “context” supplies the methods described in the following table.
Function | Return value | Description |
getTarget() | object | Returns the target of the current workflow. |
getApi(string name) | object | Returns a bound API. |
getArgument(string key) | object | Returns the given arguments. |
log(string message) | void | Writes a log entry. |
log(string message, string category) | void | Writes a log entry. |
getSession() | JOnionSession | Returns the onion session. |
Targets and Arguments
Name | getTarget() | getArgument(name) |
---|---|---|
changeset.changes | DataObject.ReferenceIdentifier | null |
changeset.commit | ChangeSet.Id | |
changeset.configure | null | |
changeset.create | ChangeSet.Id | |
changeset.discard | ChangeSet.Id | |
changeset.overview.buttontoolbar.left | ChangeSet.Id | |
changeset.overview.buttontoolbar.right | ChangeSet.Id | |
changeset.overview.changeapprovalstate | ||
contentmanagement.dataobjects.buttontoolbar.left | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.buttontoolbar.right | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.checkin | DataObject.ReferenceIdentifier || null | |
contentmanagement.dataobjects.forcecheckin | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.checkout | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.compareversion | ||
contentmanagement.dataobjects.contextmenu.* | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.contextmenu.detailview | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.contextmenu.treeview | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.copy | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.create | DataObject.ReferenceIdentifier | schema: Schema.Id |
contentmanagement.dataobjects.delete | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.destroyversion | DataObject.ReferenceIdentifier | version: version |
contentmanagement.dataobjects.move | DataObject.ReferenceIdentifier | target: DataObject.ReferenceIdentifier |
contentmanagement.dataobjects.order | DataObject.ReferenceIdentifier | target: DataObject.ReferenceIdentifier, positioningMode: Before || After |
contentmanagement.dataobjects.paste | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.rename | DataObject.ReferenceIdentifier | |
contentmanagement.dataobjects.renametemp | null | |
contentmanagement.dataobjects.restoreversion | DataObject.ReferenceIdentifier | version: version |
contentmanagement.dataobjects.save | DataObject.ReferenceIdentifier || null | |
contentmanagement.dataobjects.undocheckout | DataObject.ReferenceIdentifier | |
contentmanagement.search | null | |
contentmanagement.trash | null | |
contentmanagement.workspace | null | |
dashboard.paginator | null | |
dashboard.widgets | null | |
dashboard.workspace | null | |
datamanagement.dataobjects.buttontoolbar.left | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.buttontoolbar.right | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.checkin | DataObject.ReferenceIdentifier || null | |
datamanagement.dataobjects.forcecheckin | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.checkout | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.compareversion | null | |
datamanagement.dataobjects.contextmenu | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.copy | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.create | DataObject.ReferenceIdentifier | schema: Schema.Id |
datamanagement.dataobjects.delete | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.destroyversion | DataObject.ReferenceIdentifier | version: version |
datamanagement.dataobjects.move | DataObject.ReferenceIdentifier | target: DataObject.ReferenceIdentifier |
datamanagement.dataobjects.order | DataObject.ReferenceIdentifier | target: DataObject.ReferenceIdentifier, positioningMode: Before || After |
datamanagement.dataobjects.paste | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.rename | DataObject.ReferenceIdentifier | |
datamanagement.dataobjects.renametemp | null | |
datamanagement.dataobjects.restoreversion | null | |
datamanagement.dataobjects.save | DataObject.ReferenceIdentifier || null | |
datamanagement.dataobjects.undocheckout | DataObject.ReferenceIdentifier | |
datamanagement.search | null | |
datamanagement.trash | null | |
datamanagement.workspace | null | |
schemamanagement.schema.buttontoolbar.left | Schema.Id | |
schemamanagement.schema.buttontoolbar.right | Schema.Id | |
schemamanagement.schema.contextmenu | Schema.Id | |
schemamanagement.schema.create | Schema.Id | |
schemamanagement.schema.delete | Schema.Id | |
schemamanagement.schema.rename | Schema.Id | |
schemamanagement.schema.save | Schema.Id | |
schemamanagement.workspace | null | |
workspacemanager.add | null | |
usermanagement.user.create | Group.Id || null | |
usermanagement.user.save | User.Id | |
usermanagement.user.rename | User.Id | |
usermanagement.user.delete | User.Id | |
usermanagement.usersetting.create | User.Id | |
usermanagement.usersetting.delete | DataObject.ReferenceIdentifier | |
usermanagement.group.create | Group.Id || null | |
usermanagement.group.rename | Group.Id | |
usermanagement.group.configure | Group.Id | |
usermanagement.group.delete | Group.Id | |
usermanagement.group.save | Group.Id |