Learn how to use the Cloud Container connector with the help of an example.
About this task
Suppose that you have a flow service that is named add within the tess
solution on your cloud container environment. You want to start this flow service and run it using
on webMethods Integration.
Note: The flow service that is named add(flow_service) used in the example is a simple
flow service that adds two numbers.
To start and run the add(flow_service) Flow service and use its results in
workflows within webMethods Integration, use the connector as follows -
Procedure
- Add the Cloud Container connector on the canvas.
- Add or select a custom action. Double-click the Cloud Container connector
icon and click "+" to start creating a custom action. This redirects you to the Add Custom
Action configuration screen.
Note: You can alternatively select an existing action (if any) by clicking the Select
Action field.
- Connect to an Cloud Container account.
Select an existing
Cloud Container account (if any) or click "+" to add an
Cloud Container account.
You are taken to the account configuration screen where you need to provide the details listed here
-
- Next, click Add. You are taken back to the Add Custom
Action configuration screen.
Note: Now, if you click the Connect to Cloud Container icon, you
see the added account in the list. This account can now be used to run any Cloud Container custom
action created under the same project.
Next, provide a suitable name and description for the
action you are about to create, and then click
Next.
- Select the operation
By default, one operation, Execute, is available. Select the
Execute operation and click Next.
- Select the Input Business Object
Here, you see all the available solutions that are present in the specified cloud container
environment. Select the input business object to be associated with the selected
Execute operation.
Here, in this example, there is one solution(tess) in the specified cloud container
environment.
Click the expanded icon to see the available Integration servers and packages that are associated
with the cloud container environment. We select the add(flow_service) service from the
(add) package package as the input business object and then click
Next.
You are taken to the Select the Data Fields configuration screen where you
see the Input and output data fields of the service add(flow_service).
Note: The data fields that are displayed are the same as you see in your cloud container
environment. By default, the data fields for the business object are mandatory and cannot be
cleared.
- Click Next to continue. Click Next to
continue.
- Confirm the action
The next step is to verify and confirm the custom action. Click Done. The
custom action is created successfully.
You can change the default custom action name and then click
Next.
You are redirected to the action configuration window. Provide values for all the necessary
fields and then click Next.
You are redirected to the Test this action window where you can check
whether the action is working as expected. To do so, click Test.
If the custom action is configured correctly, you see the output data for the action.
add(flow_service) is successfully executed on your cloud container environment and the
results are returned to webMethods Integration as expected.
- Next, save the workflow by clicking Save that is at the
upper-right of the canvas.