Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix raise code

...

Code Block
      raise wrangler event "subscription" attributes
             with{ "name" = "thing1",
               "name_space" =: "mischief",
               "my_role" =: "controller",
               "subscriber_role" = :"thing",
               "channel_type" =: "subscription",
               "subscriber_eci" =: thing1
             }

As in the case of introductions, the target pico must have a rule selecting on wrangler/inbound_pending_subscription_added which will complete the subscription process by raising the wrangler/pending_subscription_approval event.

...

Code Block
    raise wrangler event "subscription_cancellation"
      withattributes {"subscription_name = ":"mischief:thing2"}

The raised event triggers a rule in the Subscriptions ruleset. This rule takes care of deleting both sides of the subscription.

...