5.5.1

Table Of Contents
Type Value Description
String
workflowId
The ID of the workflow for which you
are checking a user's rights.
String
username
Orchestrator user name.
String
password
Orchestrator password.
Int
rights
n
a: The administrator can change
the rights of the object.
n
c: The user can edit the workflow.
n
I: The user can inspect the
workflow schema and scripting.
n
r: The user can view the workflow
(but not the schema or scripting).
n
x: The user can run the workflow.
NOTE User rights are not cumulative.
To perform all possible tasks on a
workflow, a user must have all of the
rights.
Return Value
Returns the following values:
n
True if the user has the specified rights on the workflow.
n
False if the user does not have the specified rights on the workflow.
The hasRights operation returns an "Unable to find workflow" exception if the workflow does not exist or
if the user calling hasRights does not have permission to view the workflow.
sendCustomEvent Operation
The sendCustomEvent operation synchronizes workflows with external events.
public void sendCustomEvent(String eventName, String serializedProperties);
The sendCustomEvent operation sends messages from Web service clients to workflows that are waiting for a
particular event to occur before they run. The waiting workflows resume their run when they receive the
message from sendCustomEvent.
A custom event that calls sendCustomEvent to send a message when it occurs can be any script, workflow, or
action that Orchestrator can run. For example, a workflow might use sendCustomEvent to trigger another
workflow that reloads all Orchestrator plug-ins when the sending workflow performs a specific action while
it is running.
The messages that sendCustomEvent sends are simple triggers, the format of which is not exposed to users.
The message triggers the waiting workflow to run at the moment that the server receives it.
IMPORTANT Access to the sendCustomEvent operation is not protected by a username and password
combination. VMware therefore recommends that you only use this function in secure, internal
deployments. For example, do not use this operation in deployments that operate openly across the Internet.
Chapter 5 Web Service API Operation Reference
VMware, Inc. 93