Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to change the flow target programmatically?

Hi,
how can I change the flow target of a workspace programmatically by the server side?

I know scmService.setWorkspaceFlows but I don't know how to retrieve the IFlowEntry and CurrentFlows input parameters.

Is there an equivalent service of the PlainAPI's WorkspaceManager?

Thanks
Daniele

0 votes



3 answers

Permanent link
First, why do you need to change the flow target? Generally speaking the
flow targets are used just for the user interface for the current delivery
and acceptance of changes (to make life easier for the user with context
menus) - but if you're doing things programatically then this can be done
without setting the flow target because you can specify the source and
target.

Andrew

On Fri, 29 Jan 2010 10:53:02 -0500, kostja79
<daniele> wrote:

Hi,
how can I change the flow target of a workspace programmatically by
the server side?

I know scmService.setWorkspaceFlows but I don't know how to retrieve
the IFlowEntry and CurrentFlows input parameters.

Is there an equivalent service of the PlainAPI's WorkspaceManager?

Thanks
Daniele



--

0 votes


Permanent link
Dear Andrew,

thank you for your reply. In fact, it is possible to deliver without changing the flow-target.
However I am not able to use the method IScmService.deliverCombined to deliver only change-sets. If I put a null reference to baselines I obtain a NullPointerException. How can I deliver only change-sets and not baselines?

Thanks.

First, why do you need to change the flow target? Generally speaking the
flow targets are used just for the user interface for the current delivery
and acceptance of changes (to make life easier for the user with context
menus) - but if you're doing things programatically then this can be done
without setting the flow target because you can specify the source and
target.

Andrew

On Fri, 29 Jan 2010 10:53:02 -0500, kostja79
<daniele> wrote:

Hi,
how can I change the flow target of a workspace programmatically by
the server side?

I know scmService.setWorkspaceFlows but I don't know how to retrieve
the IFlowEntry and CurrentFlows input parameters.

Is there an equivalent service of the PlainAPI's WorkspaceManager?

Thanks
Daniele



--

0 votes


Permanent link
The API doc says that the array must not be null but I believe it may be
empty to do what you want (also as opposed to containing null entries).

It seems odd too me that you are programming against the IScmService
layer. Have you looked at the deliver method available on the
IWorkspaceConnection interface?

Andrew

On Sun, 31 Jan 2010 16:52:57 -0500, kostja79
<daniele> wrote:

Dear Andrew,

thank you for your reply. In fact, it is possible to deliver without
changing the flow-target.
However I am not able to use the method IScmService.deliverCombined to
deliver only change-sets. If I put a null reference to baselines I
obtain a NullPointerException. How can I deliver only change-sets and
not baselines?
Thanks.

adhoowrote:
First, why do you need to change the flow target? Generally speaking
the
flow targets are used just for the user interface for the current
delivery
and acceptance of changes (to make life easier for the user with
context
menus) - but if you're doing things programatically then this can be
done
without setting the flow target because you can specify the source
and
target.

Andrew

On Fri, 29 Jan 2010 10:53:02 -0500, kostja79
daniele> wrote:

Hi,
how can I change the flow target of a workspace programmatically by
the server side?

I know scmService.setWorkspaceFlows but I don't know how to
retrieve
the IFlowEntry and CurrentFlows input parameters.

Is there an equivalent service of the PlainAPI's WorkspaceManager?

Thanks
Daniele



--




--

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937

Question asked: Jan 29 '10, 10:47 a.m.

Question was seen: 6,057 times

Last updated: Jan 29 '10, 10:47 a.m.

Confirmation Cancel Confirm