Skip to main content
Apr 2, 2019 11:30 AM UTC
Question

Service for Inserting a service into entities

How can i go for duplicating a service of a specific thing inside other entities like things or thing templates?

8 replies

Apr 2, 2019 4:12 PM UTC

I'm not sure why you need to duplicate a service.

You could just create a central helper Thing with services and then invoke that service from the other Entities.

Especially if it is doing the same evaluation.

Apr 3, 2019 6:20 AM UTC

Why not implement the shared service in a ThingShape and both entities will implement that shape?

muzzammilAuthor
Apr 3, 2019 6:24 AM UTC

@ashaban Thank you. I hope this will help me