5.5.1

Table Of Contents
n
getWorkflowForID
Find Workflows by Using the getAllWorkflows Operation
The getAllWorkflows operation lists all workflows that a user can access as an array of Workflow objects.
Because the getAllWorkflows operation returns Workflow objects that contain all the information about a
workflow, it is useful for applications that require full information about workflows, such as the workflow's
name, ID, description, parameters, and attributes.
Prerequisites
You must have implemented Web service operations in your client application to find objects in the
Orchestrator server.
Procedure
u
Create an array of Workflow objects by calling the getAllWorkflows operation.
Workflow[] workflows = vsoWebControl.getAllWorkflows(username, password);
The preceding code example calls getAllWorkflows to get an array of Workflow objects that the Web
service client can run.
You found workflows in the Orchestrator server that the Web service client can run on objects.
What to do next
Implement operations in the Web services client to run the workflows it finds.
Retrieve the ID of a Workflow
Every workflow has a unique ID that you can retrieve by using the Orchestrator client and a text editor. You
need the workflow ID to perform operations over a workflow by using the Orchestrator SOAP API.
Procedure
1 In the Orchestrator client, select the Workflows view.
2 From the workflow library, select the workflow whose ID you want to retrieve and press Ctrl+C.
3 Open a text editor and press Ctrl+V.
The workflow name and ID appear in the text editor.
Find Workflows by Using the getWorkflowsWithName Operation
If you know the name of a particular workflow, as it is defined in the Orchestrator client, the Web service
application can obtain this workflow using its name or part of its name.
The getWorkflowsWithName operation returns an array of workflows, so you can use it to match several
workflows by using wildcards.
Prerequisites
You must have implemented Web service operations in your client application to find objects in the
Orchestrator server.
Developing a Web Services Client for VMware vCenter Orchestrator
62 VMware, Inc.