Skip to main content
Aug 26, 2020 1:03 PM UTC
Solved

Information on ThingStart event

Hi,

 

I had queries about the thingstart event. 

 

The query is when does this event get triggered?

 

I have a main template from which I am having 2-3 templates and I am having 2 things with each on these 2-3 templates. I am having a subscription which is using the thing start input in the super template or the main template from which the other templates are derived. I wanted to know that if I create a thing under an one of the template will this subscription go into action for all the things under the main template as in directly all the things are under this template and the subscription is written on it.

 

The structure is : 
'A' is the main template (subscription with thing start input is here)

'B' template under A

'C' template under A

'ThingB1' thing under template B

'ThingC1' thing under template C

 

Now if i make 'ThingB2' thing under template B will this subscription go into action for all the three things ('ThingB2', 'ThingB1', 'ThingC1') or just the newly created ThingB2?

 

Thanks in Advance

    Aug 27, 2020 10:17 AM UTC
    Hi,
    The ThingStart event is triggered for a Thing, as its name describes.
    The behavior you described would imply that once a Thing starts (as a result of its creation in your case), then all the Things based on the same template would start again, which is not how the platform works.

    I suggest to test this behavior in your ThingWorx Composer, it should not require more than 5 minutes.

    7 replies

    Aug 27, 2020 10:17 AM UTC
    Hi,
    The ThingStart event is triggered for a Thing, as its name describes.
    The behavior you described would imply that once a Thing starts (as a result of its creation in your case), then all the Things based on the same template would start again, which is not how the platform works.

    I suggest to test this behavior in your ThingWorx Composer, it should not require more than 5 minutes.
    Aug 27, 2020 11:20 AM UTC

    Thank You @VladimirRosu_116627 

     

    I just wanted to clarify the behavior as I believe that thing start event works as you have mentioned. Once had experienced a different behavior which will definitely be due to something else.

     

    Aug 27, 2020 11:24 AM UTC

    Exactly