Serverseitiges Javascript
Zur Filterung der Anzeige eines Workflows steht für die Javascriptfunktion die globale Variable "context" zur Verfügung. Die Variable "context" liefert die in der folgenden Tabelle beschrieben Methoden.
Methodenname | Rückgabewert | Beschreibung |
getTarget() | object | Liefert das Ziel des aktuellen Workflows. |
getApi(string name) | object | Liefert eine angebundene API. |
getArgument(string key) | object | Liefert übergebene Argumente. |
log(string message) | void | Schreibt einen Log-Eintrag. |
log(string message, string category) | void | Schreibt einen Log-Eintrag. |
getSession() | JOnionSession | Liefert die OnionSession. |
getModel() | Liefert das XML-Model. |
Ziele und übergebene Argumente
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 |