Skip to main content
Sep 20, 2021 1:16 PM UTC
Solved

input parameters in service

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??

cmorfinAnswer
Sep 20, 2021 3:35 PM UTC

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

cmorfinAnswer
Sep 20, 2021 3:35 PM UTC

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