4.1

Table Of Contents
You can also pass an array of WorkflowTokenAttribute objects to the answerWorkflowInput operation to provide
input that a workflow token needs while it runs.
public void answerWorkflowInput(String workflowTokenId,
WorkflowTokenAttribute[] answerInputs, String username, String password);
The following table shows the properties of the WorkflowTokenAttribute object.
Type Value Description
String
name
Name of the input or output parameter
String
type
Type of input or output parameter
String
value
The value property represents either
the input or output parameter value for
this particular workflow token, in the
form of a string.
If the type is an array of objects, the
value is a string of the following
format:
"#{#<type1>#<value1>#;#<type2>#
<value2>#...}#"
If the value property specifies an object
obtained from a plug-in, then the input
or output parameter value is a
dunesUri string that points to the object
in question. The following example
shows the format of the dunesUri.
dunes://service.dunes.ch/Custom
SDKObject?
id='
<object_ID>
'&dunesName='
<pl
ug-in_name>
:
<object_type>
'
Web Service API Operation Reference
The Orchestrator Web service API provides a collection of methods that server as WSDL operations.
NOTE Every Web service operation, except echo, echoWorkflow, and sendCustomEvent uses the Orchestrator
user name and password to authenticate the session. The operations throw exceptions if you use the incorrect
username or password.
answerWorkflowInput Operation
The answerWorkflowInput operation passes information from a user or an external application to a workflow
while the workflow is running.
If a running workflow reaches a stage that requires an input from a user action or external application, the
WorkflowToken enters the waiting state until it receives the input from answerWorkflowInput. The
answerWorkflowInput operation provides input in the form of an array of WorkflowTokenAttribute objects.
The answerWorkflowInput operation is declared as the following example shows.
public void answerWorkflowInput(String workflowTokenId, WorkflowTokenAttribute[] answerInputs,
String username, String password);
The Web service performs only a simple validation of the input attributes you provide for running a workflow.
The Web service verifies only that the attributes that you set in the WorkflowTokenAttribute objects are of the
expected type. The Web service does not perform complex validation to verify that you set all of the
WorkflowTokenAttribute objects' properties correctly. The Web service does not access the parameter
properties that the workflow developer set in the workflow Presentation. If one of the
Chapter 8 Developing a Web Services Client
VMware, Inc. 265