Versions Compared

Key

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

...

  • domain: explicit
  • type: CloudOS_subscriptionAdded
  • attributes: eventChannel, backChannel
The eventChannel attribute is the Personal Channel token for the remote Personal Cloud, while the backChannel is the Personal Channel token for the current Personal Cloud.

 

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

 

Unsubscribe

The system:unsubscribe event is used to remove the Personal Channels between two Personal Clouds.

...

  • domain: explicit
  • type: CloudOS_subscriptionRemoved
  • attributes: eventChannel, backChannel
The eventChannel attribute is the Personal Channel token for the remote Personal Cloud, while the backChannel is the Personal Channel token for the current Personal Cloud

...

.

 

Code Block
themeConfluence
languagejavascript
always {
  raise system event unsubscribe
    with backChannel = "3f15b820-af7f-012f-4c6e-00163ebcfddfd"
    and  _api = "sky";
}

 

Functions

subscriptionList(namespace, relationship)

The subscriptionList() function will return a map of the subscriptions within the specified namespace and relationship. In order to use the function you must include the CloudOS module as a pragma in the meta section of your ruleset:

use module a169x625 alias CloudOS