Discover a published automation service and call it from a workflow
automation.
About this task
In Workflow Designer, you can discover automation services that are published in
Business Automation
Studio, and choose the operations that you
want to call. As the result of the discovery, an automation service artifact is created as well as
the business objects needed as inputs and outputs of the operations. An automation service has an
interface with operations that you can then use as implementations in a service task in a service
flow. To call an automation service, you use a service flow and for each business function that
you want to call you use a service task.
Procedure
To discover and call an automation service, complete the following steps:
-
In the library, select .
You then see the list of published services that are available.
- Select the version of the automation service that you want.
- Select the operations that you want to discover.
- Click Next.
- You are asked which version of the automation service you want to call at run time: the
version that you selected or the default version configured at run time. Select a version and click
Submit.
Note: If you're running an automation service from Business Automation Studio that is implemented in
Workflow Designer, the tip is called when you choose the option to call the default version at
run time.
An automation service is created, with operations and their inputs and outputs
based on the operations that you selected during discovery. In the Data library section, you see the
business objects that were created as a result of generating the automation service. These business
objects are read-only and are only for the automation service, and have the same lifecycle; when you
delete the automation service, the business objects are also deleted.
After your automation service is created, you can select it as an implementation of a
service task in a service flow. For information on how to use service flows, see Creating a service flow.
- In the service task, select the operation that you want to use.
- In the Data Mapping, view and map the inputs and outputs of the
operation.
- To catch any errors that might occur in the service, attach a catch all boundary error
event to it, as described in Catching errors by using error boundary
events.
What to do next
After you're happy with your workflow automation service, you can install it to a Workflow Server and run it. See Installing workflow automations and automation services.Note: When you use a decision service as
an automation service and call it from an application or workflow automation, you can deploy that
decision service only to the embedded decision runtime environment to be played back. You can't
undeploy the decision service or promote it to other runtime environments.