Skip to main content
17-Peridot
September 20, 2021
Solved

input parameters in service

  • September 20, 2021
  • 1 reply
  • 1226 views

As I cant do two bindings to single input in service, Ill create 2 input parameters. But out of two inputs, which is the latest input that should be processed inside code and give result. How to do that??

Best answer by cmorfin

Hi @AP_9587236 

 

Not sure but I was thinking that you may be able to achieve what you want by using event router function.

The output would be bound to the input parameter of your service and the inputs will be your 2 inputs. The function output will be the latest input received.

 

See https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Functions/EventsRouter.html

and https://community.ptc.com/t5/IoT-Tech-Tips/How-to-use-Event-Routers/m-p/650376 

 

Hope this helps

Regards

Christophe

 

1 reply

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 20, 2021

Hi @AP_9587236 

 

Not sure but I was thinking that you may be able to achieve what you want by using event router function.

The output would be bound to the input parameter of your service and the inputs will be your 2 inputs. The function output will be the latest input received.

 

See https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Functions/EventsRouter.html

and https://community.ptc.com/t5/IoT-Tech-Tips/How-to-use-Event-Routers/m-p/650376 

 

Hope this helps

Regards

Christophe