WorkflowActionBB is the entry point for many operations that use Generic Resource APIs (GRA). That block loops over the list of building blocks (BBs) that compose a specific workflow/operation. For each operation, the list of BBs is in the orchestration_flow_reference table. The sequence number field in that table defines the order in which BBs are executed within a given flow. When you use macro workflow for service/VNF/VF-module instantiation, some blocks could be executed multiple times, as you pointed out, based on the number of VNFs and VF-modules that the service model contains. To execute the same building block multiple times back to back for different instances of the same resource type, see WorkflowAction class for operations that use the macro APIs. Some methods in this class traverse different data structures (e.g. Catalog DB or AAI) to count how many resources a macro workflow should handle. Based on this count, the buildExecuteBuildingBlockList() method iterates through the ordered list of building blocks to execute for a given flow and adds a block of the same type for each instance of a given resource type (e.g. VF module). The base module (module-0 in the service model) is executed first, then all the other modules are executed based on the order in which they appear in the module. For scale out use case, the vPKG is module-1, the vLB is module-2, the vDNS is module-3. As such, SO instantiates the vPKG, vLB, and vDNS in this order. I can't remember on top of my head if you can specify the order of modules in SDC during service creation. The VNF descriptor (for example Heat template) has to contain one base module that SDC interprets as module-0, and it may contain several non-base modules that SDC interprets has module-1, module-2, etc. but I'm not sure whether you can specify an order. You should build modules in such a way that the base one contains shared resources that must be instantiated first, while the other modules should be independent and instantiated in any order.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19216): https://lists.onap.org/g/onap-discuss/message/19216 Mute This Topic: https://lists.onap.org/mt/34558039/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
