-alt Regtister rApp as both provider and consumer
- rAppCatalogue->rAppManager: Register rApp, with rApp\n descriptor specifying which\n services to expose and consume
+alt Register Consumer rApp
+ rAppCatalogue->rAppManager: Register consumer \nrApp
+ alt#coral #coral Register Invoker
+ rAppManager->capifcore: Register invoker with\n APIInvokerEnrolmentDetails
+ capifcore->invokerservice: Register invoker
+ invokerservice->invokerservice: Create apiInvokerId and\n onboardingSecret
+ invokerservice->publishservice: Get available services
+ publishservice->invokerservice: Available services
+ invokerservice->capifcore: Services available\n for the invoker
+ capifcore->rAppManager: Invoker with invokerId\n and available services
+ end
+ rAppManager->capp: invokerId and\n available services
+ rAppManager->rAppCatalogue: Ok
+ alt#Orange #Orange Subscribe to publishing events
+ capp->eventservice: Subscribe to events\n with EventSubscription
+ eventservice->eventservice: Create subscriptionId
+ eventservice->capp: subscriptionId
+ end
+end
+alt Register provider rApp
+ rAppCatalogue->rAppManager: Register rApp, with\n rApp descriptor\n specifying which\n services to expose