Why Cannot Referenced Resources Be Edited in Flows or BPMs?
Description
When a lock is obtained, the referenced resources in the flow and BPM cannot be edited. As shown in the following figure, Namespace__FlowA calls Namespace__FlowB of another service. When Namespace__FlowA is locked, the input and output parameters of Namespace__FlowB cannot be edited.

Solution
In the latest version, flows and BPMs call only resources (such as scripts, flows, and objects) of the current application. Resources cannot be called across applications.
If the flow and BPM created in the earlier version call resources of different applications, the runtime state is not affected. The called resources cannot be edited in the flow and BPM in the development environment.
In the example in Description, if you need to edit the input and output parameters of Namespace__FlowB, you are advised to create a public resource in the BO, import the BO to the internal or external dependencies of these applications, and then call the resource.
- Create a BO and encapsulate the resources to be called into public APIs in the BO.
- Create a label and a BO named BOTest by referring to Creating a Business Object.
- In the BO, create the Namespace__FlowC to be called. The definition of Namespace__FlowC is the same as that of Namespace__FlowB to be called.
- Create an open API in the BO by referring to Figure 2. The API is used to encapsulate Namespace__FlowC.
- 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.
- Go to the designer of the application where Namespace__FlowA is located.
- Click the settings button in the navigation pane of the application designer.
- On the displayed page, choose Dependencies and Openness > App Dependencies > Add.
- 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 3 Selecting the BO to be added
- Use the BO diagram element instead for Namespace__FlowA and call its public API. Set the API type to REST. For details, see Figure 4.
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot