Pricing Blog

Exposing wokflows

  • elli4931-1389335139544338472

    Vizualinx

    16 days ago

    A dumb question here.. What does it mean to expose workflows in context?
    i didn't manage to understand it from the docs.

    (i am trying to trigger an event inside a child component)
  • jaycmpb-1389335397779374222

    Jay Campbell

    16 days ago

    The same way how you can access data via context, you can expose a workflow via context to trigger it from child components.
  • So if you create a workflow, expose it as context, and in the child component you subscribe to that context, you can trigger whatever the workflow is from the child.
  • elli4931-1389335816937144431

    Vizualinx

    16 days ago

    so it's just to trigger a workflow in the parent component, right?
    There is no way i can trigger an event in a child component from the parent??
  • jaycmpb-1389339824120533012

    Jay Campbell

    16 days ago

    To my knowledge, context only goes down the tree. To trigger from parent to child you might have to use attributes and trigger it with the "on attribute change" lifecycle.