Assistant Subscriptions

Property
Property 1

Part of an assistant configuration is the ‘Reactive’ options where you point to one or more stores (e.g. Processing Store, Training Store) so that the assistant will monitor the store and become active when new data become present in the store(s).

Subscriptions uses a simple expression language to match documents. You can learn all the types of expressions here.

image

We also have a set of helpers for working with our events.

hasLabel

You can use hasLabel to determine if the document that raised the event has a specific label

hasLabel('model-applied')

You can invert it using a !, for example

!hasLabel('model-applied')

hasMixins

You can use hasMixins to determine if the document that raised the event has a specific mixins

 hasMixins('spatial')

hasExtensions

You can use hasExtensions to determine if the document that raised the event has one or more extensions

hasExtensions('pdf','doc')

matchesPath

You can use matchesPath to perform a pattern match on the document name

matchesPath('.*\.pdf')

If blank are defined then all events are sent to the assistant