Skip to main content
17-Peridot
Jul 31, 2018 2:53 AM UTC
Question

How to create stream in eclipse extension?

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

3 replies

5-Regular Member
Aug 6, 2018 2:18 PM UTC

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);
Translate
17-Peridot
Aug 7, 2018 5:07 AM UTC

Thank you for your reply Sushant.

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

Translate
5-Regular Member
Aug 7, 2018 7:21 AM UTC

@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.

Translate