How can I filter both entity and relations event in the queue?

Question

 

I added this filter onto our external queue

equals(type,"configuration/entityTypes/Organization")



But after adding that filter, we no longer receive relationship events. We receive notifications of entities being created, changed, etc. However, none of the relationship events are being emitted after adding this filter.

Can you please explain why and how I should alter the filter so we can filter by "type" and receive all of the events on our service bus?

Answer

 

The filter that you have applied will not allow any relations to be passed to the queue.  The objectFilter property defines the filter expression for the event object. The event will NOT be sent to a destination if the object doesn’t match the filter. The expression structure is the same as for search filters.
 
In the case you are asking, only configuration/entityTypes/Organization can be passed.  No relation will have a type of configuration/entityTypes/Organization. 

The filtering of the queue matches the same filter condition ability that can be used for filtering entities or filtering relations. Search in Reltio Documentation

  • Filtering Entities
  • Relations Filtering

 

It is possible to change the filter to:

equals(type,"configuration/entityTypes/Organization") OR 
equals(type,"configuration/relationTypes/hasSupplierRemittanceLocation")
Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.