Skip to main content
10-Marble
July 14, 2017
Question

How custom event trigger any service?

  • July 14, 2017
  • 6 replies
  • 4143 views

Dear Team,

How custom event trigger any service?

    6 replies

    1-Visitor
    July 14, 2017

    You just need to subscribe to the corresponding event, and on the subscription code you can call any service.

    1-Visitor
    April 20, 2018

    hi

     

    i have the same problem, and the problem is with subscription code.

     

    I am new to TWorx and still trying to find my way in it.

     

    I have a timer which i created a subscription to it from my thing, my thing has a service which i want it to run when ever the timer fires, but still i can't figure out what code i have to add in my subscription to execute the service.

     

    can you help please

    1-Visitor
    April 20, 2018

    If you have a service implemented on the Thing, you just need to call it from the subscription:

     

    me.myServiceName();

     

    That's all.