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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Pause another Service

Deepu
5-Regular Member

Pause another Service

how can i pause a service using another service?

Thanks in Advance!!

3 REPLIES 3
zyuan1
18-Opal
(To:Deepu)

If you started running a service, it will either fail or end in less than a few seconds, so I think you're referring to Pause a Subscription and make it not triggering by any event afterwards?

 

If so, you can disable the subscription itself or the event that triggers it.

For example:

me.DisableSubscription({
propertyName: undefined /* STRING */,
eventName: undefined /* STRING */,
thingName: undefined /* THINGNAME */
});

 

Deepu
5-Regular Member
(To:zyuan1)

Can i pause a event?

zyuan1
18-Opal
(To:Deepu)

The regular Events used to trigger the subscriptions are: (Any)Alert, (Any)AlertAck, (Any)AlertReset, (Any)DataChange, ThingStart, Timer/ Scheduler. 

 

You can disable Alerts or Timers to pause the Event, and enable them to restart, but it took same steps as disabling the Subscriptions but cause more side effects, so that's not suggested.  And for DataChange event, we cannot pause it. 

Top Tags