Using the webMethods Cloud Container connector

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

  1. Add the Cloud Container connector on the canvas.
  2. 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.
  3. 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 -
    • Account Name - Provide a suitable name for the account you want to add.
    • Server URL - Enter the cloud server URL where your on-premises assets are deployed, like, https://sample.container.webmcloud.com/
    • Username - Enter the username associated with the account on the cloud server.
    • Password - Enter the password for the specified username.
    • Response Timeout - Enter the duration (in milliseconds) to wait for a response before cancelling the request. In case the network is slow or the backend processing takes longer than usual or if your service takes longer time to run, then increase the Response Timeout value.
      Important: Specify a value other than 0. If you specify 0, webMethods Integration waits indefinitely for a response.
  4. 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.
  5. Select the operation

    By default, one operation, Execute, is available. Select the Execute operation and click Next.

  6. 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.
  7. Click Next to continue. Click Next to continue.
  8. 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.

  9. Next, save the workflow by clicking Save that is at the upper-right of the canvas.