Skip to main content
17-Peridot
July 31, 2018
Question

How to create stream in eclipse extension?

  • July 31, 2018
  • 1 reply
  • 1785 views
Hi All,
I am trying to create stream with eclipse extension. I can't able create a stream. Any suggestions to create stream?

Thanks & Regards,
Sathishkumar C

1 reply

5-Regular Member
August 6, 2018

Hi @Sathishkumar_C this should allow you to create the stream 

 

// create stream thing
es.CreateThing(streamName, streamDescription, myTag, "Stream");
// search for stream thing
StreamThing myStream = (StreamThing) EntityUtilities.findEntity(streamName, ThingworxRelationshipTypes.Thing);
17-Peridot
August 7, 2018

Thank you for your reply Sushant.

This snippet is help to find entity right. By using this we can't create Stream.

5-Regular Member
August 7, 2018

@Sathishkumar_C sorry I somehow missed the first line i wanted to share for both create & search. I have updated the response now. Hope this will help.