It's all about the answers!

Ask a question

Modify content in Stream programmatically without workspace

vinitha dsouza (14718110) | asked Nov 28 '23, 7:20 a.m.
edited Nov 28 '23, 7:21 a.m.

 Dear Team,

I have come across a code snippet developed by colleague which can modify the content of stream without workspace.
I was in an impression that, without workspace we shall not be able to deliver any content programmatically like we do manually from eclipse client. But there seems to be way.
I would like to understand, what is happening under the hoods?

one thing I noticed, when doing this way is,
I see the component is always shown as "*" even though there are no changes to this component.

is there any shortcomings doing this approach?


Accepted answer

permanent link
Ralph Schoon (62.9k33645) | answered Nov 28 '23, 9:14 a.m.
Using the API allows usually more freedom in what you can do. You implement your own implementation of a "repository workspace". The files might sit in a zip file or just somewhere on disc.

 Using the API, you can upload code, create change sets, compare and deliver them to a Stream. 

I have used this in the WorkshopSetup for the EWM Extensions workshop. 

I have used the same code in this tool
and in this tool to some extent:

What your poor mans implementation of an auxiliary repository workspace will not be able to do, at least not easily, is to deliver changes with conflicting incoming changes, merging etc.

vinitha dsouza selected this answer as the correct answer

Your answer

Register or to post your answer.