Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To approve the subscription request a ruleset in the the target cloud raises the cloudos:subscriptionRequestApproved event to signal the CloudOS service that the subscription is approved:

 

Domaincloudos
Type
subscriptionRequestApproved
Attributes
eventChannel

For example, the following postlude would raise the cloudos:subscriptionRequestApproved event:

 

Code Block
themeConfluence
languagejavascript
fired {
  raise cloudos event subscriptionRequestApproved
    with eventChannel = "3f15b820-af7f-012f-4c6e-00163ebcaaaa"
    and  _api = "sky";
}

Once the subscription request is approved, the CloudOS service in both the orginating and target clouds will raise the cloudos:subscriptionAdded event so that a ruleset can take additional actions once the subscription has been created:

 

Domaincloudos
Type
subscriptionAdded
Attributes
eventChannel, backChannel, namespace, relationship, channelName

...

The following shows a rule that is selected when the cloudos:subscriptionAdded event is raised:

 

Code Block
themeConfluence
languagejavascript
rule process_subscriptionAdded {
  select when cloudos subscriptionAdded
    namespace re/MyFriends/
    channelName re/Coworkers Bob+Ted/
    relationship re/friend-friend/
  ...
}

Subscription Approval Event Flow

  1. The cloudos:subscriptionRequestApproved is raised into the Target personal cloud after creating a new channel.
  2. CloudOS raises the event cloudos:subscriptionAdded within the Target personal cloud.
  3. CloudOS raises a event over the eventChannel to the Originating personal cloud to indicate that the subscription request has been approved.
  4. Within the Originating personal cloud CloudOS raises the cloudos:subscriptionAdded event.

Rejection

To reject the subscription request a ruleset in the the target cloud raises the cloudos:subscriptionRequestRejected event to signal the CloudOS service that the subscription is rejected:

Domaincloudos
Type
subscriptionRequestRejected
Attributes
eventChannel


For example, the following postlude would raise the cloudos:subscriptionRequestRejected event:

 

Code Block
themeConfluence
languagejavascript
fired {
  raise cloudos event subscriptionRequestRejected
    with eventChannel = "3f15b820-af7f-012f-4c6e-00163ebcaaaa"
    and  _api = "sky";
}

 

When the subscription request is rejected the CloudOS service will raise the cloudos:subscriptionRejected event within the target cloud (i.e. the cloud rejecting the subscription):

 

Domaincloudos
Type
subscriptionRejected
Attributes
eventChannel, namespace, relationship, channelName

 

The following rule is selected when the cloudos:subscriptionRejected event is seen:

Code Block
themeConfluence
languagejavascript
rule receive_subscriptionRejected {
  select when cloudos subscriptionRejected
    namespace re/MyFriends/
    channelName re/Coworkers Bob+Ted/
    relationship re/friend-friend/
  ...
}

In addition, the CloudOS service raises the cloudos:subscriptionRejected event in the originating cloud:

Domaincloudos
Type
subscriptionRejected
Attributes
backChannel, namespace, relationship, channelName

The only difference is that the attribute backChannel is contains the value of the ECI to the target cloud. 


The following rule is selected when the cloudos:subscriptionRejected event is raised:

 

Code Block
themeConfluence
languagejavascript
rule receive_subscriptionRejected {
  select when cloudos subscriptionRejected
    namespace re/MyFriends/
    channelName re/Coworkers Bob+Ted/
    relationship re/friend-friend/
  ...
}

Subscription Rejection Event Flow

  1. The cloudos:subscriptionRequestRejected event is raised into the Target personal cloud.
  2. CloudOS raises the cloudos:subscriptionRejected event within the Target personal cloud.
  3. CloudOS raises an event over the eventChannel to the Originating personal cloud to indicate that the subscription request was rejected.
  4. Within the Originating personal cloud the CloudOS raises the cloudos:subscriptionRejected event.

...