Create form fields to allow users to provide input to the Web service accessed by the Integration activity (see Section 6.0, Creating Forms for a Provisioning Request Definition). For example, if you are working with a Web service that provides stock quotes, you need a field for the user to specify a stock symbol.
To move user input from the form to the workflow, create a flowdata variable in an activity that precedes the Integration activity in the workflow.
See Section 4.3.3, Understanding Workflow Data for information about creating flowdata variables.
For example, if you have created a form field called “symbol” to accept a stock symbol for input to the Web service, you would go to the post-activity data item mapping for the activity associated with the form that contains the
field, then you would map the field to a flowdata variable (for example, flowdata.symbol).In the
tab, right-click the icon for the Integration activity, then choose .The
tab is displayed.In the
view, click . grid, you should see fields that match all of the input fields associated with the port type and operation specified inThe integration activity automatically selects all of the input field associated with the port type and operation. You can remove the input fields or modify properties of the input fields by following this procedure:
Click
.The
dialog box is displayed.Expand the nodes of the sample document and deselect any input fields that you want to remove.
If an input field is an unbounded element, right-mouse and select
.Type the maximum number in the
dialog, and clickClick
to return to the view.For each
, click in the field, then click the ECMA expression builder button.The ECMA expression builder is displayed.
Expand the
node in the pane of the ECMA expression builder, then double-click the flowdata variable for the user input to the Web service.Click
to return to the view.Click
. grid, you should see fields that match all of the output fields associated with the port type and operation specified inThe Integration activity automatically selects all of the output fields associated with the port type and operation. If you want to remove some of the output fields, follow these steps:
Click
.The
dialog box is displayed.Expand the nodes of the sample document and deselect any attributes that you want to remove.
Click
to return to the view.Click
to automatically create flowdata variables for each .Alternatively, for each
, click in the field, then click the ECMA expression builder button.Expand the
node in the pane of the ECMA expression builder, then double-click the flowdata variable that will receive data from the Web service.Click
to close the ECMA expression builder.Now you can work in the Integration view to test and refine the interaction with the Web service.