Versions Compared

Key

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

...


  • domain: cloudos
  • type: subscriptionRequestAdded
  • attributes: targetChannel, backChannel, namespace, relationship, channelName

 

Code Block
themeConfluence
languagejavascript
fired {
  raise cloudos event subscribe
    with channelName   = "Coworkers Bob+Ted"
    and  namespace     = "MyFriends"
    and  relationship  = "friend-friend"
    and  targetChannel = "3f15b820-af7f-012f-4c6e-00163ebczzzz"
    and  _api = "sky";
}

 

The Personal Cloud receiving the subscription request will have the following event raised to signal the receipt of a pending subscription request:
  • domain: cloudos
  • type: subscriptionRequestPending
  • attributes: eventChannel, namespace, relationship, channelName

 

Code Block
themeConfluence
languagejavascript
rule receive_subscriptionRequestAdded
  select when cloudos subscriptionRequestAdded
    namespace re/MyFriends"
    channelName re/Coworkers Bob+Ted/
    relationship re/friend-friend/

Subscription Approval or Rejection

...