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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Thingworx Service execution automatically

rkuppusamy
1-Visitor

Thingworx Service execution automatically

Hi i need to create a service, which need to be executed automatically in the thingworx server (like windows service).

It actually check the schedule and execute few actions based on the schedule.

it need to be keep on executing automatically in the background.

How can we achieve this

4 REPLIES 4

You have two Thing templates option to inherit from in order to do this:

  • Scheduler ( at exact hour, hour of the day, day of the week,... )
  • Timer ( every n-milliseconds do something )

Hi It would be very helpful if you could provide some samples on how to work with timer template.

How do i trigger a service automatically at particular time interval.

I need to call the service in any events ?

Hi, Ravindranath

This may be of some help Schedule of service Running

nkhose
12-Amethyst
(To:rkuppusamy)

Hi

1)If you have inherited from thing template Timer , you then add a  new subscription ,selecting Timer as event in that you can call any Thing service  as like

Things["Notification"].DetectChanges();

2) If you want a event wise notification (some property change) you can add subscription ,select Event as Datachange and then select the property that will change in time

Announcements


Top Tags