Hi Emre Mericboyu,
The following link contains some information on controlling node-red data on ThingWorx. Hope this helps!
I've already read this documentation about node-red. However it only tells how to push data from raspberry pi to thingworx with node-red. My aim is to create a service in Thingworx and with that I want to run a code script in my raspberry pi. So that I can control the webcam and scan the QR code.