cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Newbie

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

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?

Tags (2)
3 REPLIES 3

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

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.

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

Hello Carles,

Implement my own system?

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

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

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.