4.1

Table Of Contents
Return Value
Returns one of the following values:
1
Yes, children of the specified relation type are present
-1
No, children of the specified relation type are not present
0
Unknown, or an input parameter is invalid
Related Information
For more information, see “findRelation Operation,” on page 269.
hasRights Operation
The hasRights operation checks whether a user has permissions to view, edit, and run workflows.
To check the rights that you have on a workflow, you must have permission to view that workflow. If you
have only edit or run permission on a workflow, you cannot view what rights you have on this workflow, and
hasRights returns False.
A Web service application can check those rights by calling the hasRights operation. In the following example,
hasRights checks whether the user has the right to read the workflow.
hasRights(
workflowId
,
username
,
password
, 'r')
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.
Chapter 8 Developing a Web Services Client
VMware, Inc. 277