Using Web Services in FileNet workflows
The following provide step-by-step examples for using the various Web Services features in FileNet workflows.
(1) Invoke a demo Web Service.
- Use Process Configuration Console to specify which UDDI registries will be available for the workflow author.
- Specify a Partner Link for the Web Service.
- Specify input and output parameters for an Invoke step in the workflow.
- Examine the reply message.
(2) Use workflow data fields as input and output parameters for a Web Service, define an expense approval process with a workflow invoking a Web Service provided in another FileNet workflow.
- For the Approver workflow, specify the Web Service including required parameters defined as workflow data fields and attachments.
- Specify an appropriate Reply.
- Auto-launch the Approver workflow in response to a request (Invoke) for the Web Service.
- For the Requester workflow, use workflow data fields for the required input and reply parameters.
(3) Use XML schemas to exchange the data between Web Services in FileNet workflows, define a vehicle registration process.
- For the Registration workflow, use one schema for input to the Receive step, and a different schema for output from the Reply step.
- Specify appropriate input and output data fields, and XPath expressions for extracting data from the returned XML data.
- For the Application workflow, in the Invoke step, replace placeholders in the XML template with the appropriate data fields.
(4) Use correlation sets to identify conversations between Web Services, define an order entry process with multiple conversations between the buyer and supplier in two workflows.
- In the supplier workflow, the first Receive step returns data (an order number) to the invoking buyer workflow. The buyer workflow invokes the supplier workflow again, using the order number as the correlation data to identify the conversation.
- The buyer workflow invokes the supplier workflow once to inquire availability, and again to order. The buyer workflow then waits for a shipping message from the supplier workflow, using the order number as the correlation data.
(5) Log on to a web service that requires authentication.
- In the workflow providing the web service, specify Authentication in the Receive step.
- In the invoking workflow, insert the appropriate user name and password into the Web Services message header.
(6) Demonstrate extracting data from a returned data collection.
(7) Demonstrate invoking alternative web services at runtime.