It's all about the answers!

Ask a question

How to change the flow target programmatically?


Daniele Menon (2643) | asked Jan 29 '10, 10:47 a.m.
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

3 answers



permanent link
Andrew Hoo (1.0k1) | answered Feb 06 '10, 2:38 p.m.
JAZZ DEVELOPER
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



--




--

permanent link
Daniele Menon (2643) | answered Jan 31 '10, 4:51 p.m.
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



--

permanent link
Andrew Hoo (1.0k1) | answered Jan 29 '10, 5:23 p.m.
JAZZ DEVELOPER
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



--

Your answer


Register or to post your answer.