Help Center/ Huawei Cloud Astro Zero/ FAQs/ Application Backend Development/ How Can a Resource Be Orchestrated and Called by Multiple Applications?
Updated on 2025-08-14 GMT+08:00

How Can a Resource Be Orchestrated and Called by Multiple Applications?

Handling Method

In a BO, create and develop the resource, encapsulate the resource into a public API, import the BO to multiple applications, and call the resource.

Procedure

  1. Create a BO and encapsulate the resources to be called into public APIs in the BO.

    1. Create a label and a BO named BOTest by referring to Creating a Business Object.
    2. In the BO, create Namespace__FlowC to be called and enable it.
    3. Create an open API in the BO by referring to Figure 1. The API is used to encapsulate Namespace__FlowC.
      Figure 1 Creating an API to encapsulate Namespace__FlowC

  2. Go to the application to which the flow belongs, import the BO, and use BO diagram elements to call APIs in the flow to call resources.

    1. Go to the designer of the application where Namespace__FlowA is located.
    2. Click the settings button in the navigation pane of the application designer.
    3. On the displayed page, choose Dependencies and Openness > App Dependencies > Add.
    4. Select the BO to be added and click OK. After the BO is added, it can be called in the flow of the application.
      Figure 2 Selecting the BO to be added
    5. Use the BO diagram element instead for Namespace__FlowA and call its public API. Set the API type to REST. For details, see Figure 3.
      On the left of Namespace__FlowA editor page, select BO and drag BOTest defined in 1.a from Others to the canvas. Select the BO diagram element in the canvas and click . On the BO page displayed, configure the BO diagram element and call its API.
      Figure 3 Calling a BO