Skip to main content
1-Visitor
June 16, 2016
Question

How to change (increase) the priority of an event?

  • June 16, 2016
  • 1 reply
  • 1748 views

Dear experts,

When a specific event is triggered I want to increase its priority of execution. As per the documentation the events are asynchronous and priority can not be set.

Is there any way to do so?

1 reply

1-Visitor
June 16, 2016

As I know not on a standard way.

You will need to implement you system. But By the way, as TW doesn't supports Multiple subscriptions from the same Thing to the same Event, you will end up ( if your use case it's complex ) doing it anyway.

Carles.

spatel-211-VisitorAuthor
1-Visitor
June 16, 2016

Hello Carles,

Implement my own system?

I'm sorry but i'm unable to figure out your solution. Can you please elaborate?

1-Visitor
June 16, 2016

Hello,

Well, not something that can be written on two lines

What I will do it's to build a ThingShape which subscribes to the desired Events to keep in control, and add this Shape to any Thing which you should keep in control.

Then from this subscription code, you can control the execution order for whatever.

Best Regards,

Carles.