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

1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of any service?

SOLVED
Highlighted
Amethyst

1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of any service?

For what purpose the above functionality used? Is it for hiding the code at composer level? If not, how can we hide code of any service and providing the leverage of only executing the service at composer level?

 

Please advise on both use-cases i.e. the use of allow override and process of hiding the code of any service for a thing/template/shape.

 

Thanks in advance.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: 1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of

Think of the override capability similar to defining an interface method definition.  The best place to use it would be on a Thing Shape where you want to ensure there is a common service signature across your things.  The underlying service code on each thing may be slightly different.  For example, maybe you've got a parse service.  On one thing you need to parse XML with a specific schema, and on another thing, you've also got to parse XML, but the schema is different.  You could create your parse service with an XML input param, apply it to a template (depending on how you like to model), create two things based on that template, and then implement the unique parsing code directly on those two things.

View solution in original post

3 REPLIES 3
Highlighted

Re: 1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of

My 2nd question is similar to somewhat below JIRA ticket:-

 

https://www.ptc.com/en/support/article/CS289692

Highlighted

Re: 1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of

Think of the override capability similar to defining an interface method definition.  The best place to use it would be on a Thing Shape where you want to ensure there is a common service signature across your things.  The underlying service code on each thing may be slightly different.  For example, maybe you've got a parse service.  On one thing you need to parse XML with a specific schema, and on another thing, you've also got to parse XML, but the schema is different.  You could create your parse service with an XML input param, apply it to a template (depending on how you like to model), create two things based on that template, and then implement the unique parsing code directly on those two things.

View solution in original post

Highlighted

Re: 1) What is "Allow Override" in ThingWorx 9 for services? 2) Process for hiding code of any se...

Hi @ranjank.

 

If you are satisfied with the response to your questions, please mark it as the Accepted Solution for the benefit of others with the same questions.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!