clarification on the topic "Delivering Change Sets Using Java Client Libraries"
![](http://jazz.net/_images/myphoto/f66115c113017c75d95e24f46c3c5f7b.jpg)
We are reaching out for clarification regarding the delivery of change sets using Java Client Libraries in EWM. We are encountering an issue where the compareFlags value remains 0, preventing the deliver method from executing as expected.
Implementation Details:
We are using the following methods:
// Compare workspaces to get change sets
IChangeHistorySyncReport changeSetSync = workspaceConnection.compareTo(
streamConnection,
WorkspaceComparisonFlags.CHANGE_SET_COMPARISON_ONLY,
Collections.EMPTY_LIST, monitor);
// Attempt delivery
workspaceConnection.deliver(streamConnection, changeSetSync,
Collections.EMPTY_LIST,
outgoingChangeSets, monitor);
We created an outgoing change set in EWM and used changeSetSync to compare the local workspace and the stream from the server. However, when we run the automation, the compareFlags value always remains 0, causing the deliver method to have no effect.
Reference Output from IDE Console:
com.ibm.team.scm.common.internal.dto.impl.ChangeHistorySyncReportImpl@b55b73e1 (localTime: 4, remoteTime: 4, compareFlags: 0)
Additional Information:
We ensured that a comment was added to the change set before attempting delivery.
A RHP element was created/modified, ensuring it differs from the data available on the server (AM stream).
Could you please confirm if we are passing the correct parameters to the above methods? Additionally, we would appreciate guidance on whether we are missing any necessary steps to ensure the expected behavior.
One answer
![](http://jazz.net/_images/myphoto/f66115c113017c75d95e24f46c3c5f7b.jpg)
I am not sure what I should think about pasting incomplete code snippets, creating a question around it and asking for an answer.
You can setup your development environment following https://jazz.net/library/article/1000 - just lab 1- then you can search for the usage of the methods you are interested in.
https://github.com/jazz-community/ewm-scm-utils/blob/master/com.ibm.js.team.scm.supporttools/src/main/java/com/ibm/js/team/supporttools/scmutils/commands/UploadToStream.java shows a deliver operation in an automation I wrote some years ago.