Skip to main content
1-Visitor
August 26, 2020
Solved

Information on ThingStart event

  • August 26, 2020
  • 1 reply
  • 3189 views

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

    Best answer by VladimirRosu_116627
    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.

    1 reply

    19-Tanzanite
    August 27, 2020
    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.
    1-Visitor
    August 27, 2020

    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.

     

    19-Tanzanite
    August 27, 2020

    Exactly