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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Semaphore implementation

TusharG
3-Newcomer

Semaphore implementation

HI All,

I am writing program to add a semaphore where I wanted to set the value of flag base on Finished logger message for a particular service in script logs.

Can someone please guide on this please.

Regards,
Tushar

ACCEPTED SOLUTION

Accepted Solutions
CharlesJi
15-Moonstone
(To:TusharG)

Hi @TusharG,

 

By mentioning Semaphore, do you mean adding some global value as a flag, which others could monitor and change for specific logic?

For this part, I guess you can use any properties on a Thing to implement such flags.

 

As for the rest -  monitoring some specific logger messages, I don't think we have such OOTB functionalities to do so. However, I assume you can still achieve this by directly checking & setting the flag in that service code instead of monitoring the message after the service.

View solution in original post

3 REPLIES 3
CharlesJi
15-Moonstone
(To:TusharG)

Hi @TusharG,

 

By mentioning Semaphore, do you mean adding some global value as a flag, which others could monitor and change for specific logic?

For this part, I guess you can use any properties on a Thing to implement such flags.

 

As for the rest -  monitoring some specific logger messages, I don't think we have such OOTB functionalities to do so. However, I assume you can still achieve this by directly checking & setting the flag in that service code instead of monitoring the message after the service.

TusharG
3-Newcomer
(To:CharlesJi)

Thanks Charles,

I have followed the same and it worked in my case. 

Regards,
Tushar

CharlesJi
15-Moonstone
(To:TusharG)

Hi @TusharG ,

I just posted a reply to answer your question. If you think it's helpful, it would be great if you could designate it as the Accepted Solution for the benefit of other community members who may have the same question.

In the event that this response did not answer your question, please post your current status so that we can continue to support.

Thanks for using the PTC Community!

Regards,

Charles

Announcements


Top Tags