It's all about the answers!

Ask a question

Client cannot send Process handles to Server


Hema Sudarshan (4143) | asked Aug 19 '09, 7:32 a.m.
I have a client designed,where i need to send IProcessArea information to Service which is REST Service,
I could store the values in IParameterWrapper instance. I had 2 fields in the instance one is ITeamAreaHandle and another is String. When i sent the value to server. I could get the serialized values , but i could not get reference of ITeamAreaHandle, that was null. When i tried another option, to send UUID of process area, that is also not serialized. So Please advice. How i can send process area info to server.

3 answers



permanent link
Patrick Streule (4.9k21) | answered Aug 19 '09, 8:14 a.m.
JAZZ DEVELOPER
I have a client designed,where i need to send IProcessArea information
to Service which is REST Service,
I could store the values in IParameterWrapper instance. I had 2 fields
in the instance one is ITeamAreaHandle and another is String. When i
sent the value to server. I could get the serialized values , but i
could not get reference of ITeamAreaHandle, that was null. When i
tried another option, to send UUID of process area, that is also not
serialized. So Please advice. How i can send process area info to
server.

IParameterWrapper supports only primitive types and arrays thereof, so you
have to send the UUID as a string:

teamAreaHandle.getItemId().getUuidValue()

(I assume you are using the ITeamModelledRestService from both Java and
JS/Web? If you only have a Java client, a regular service might be the
better option)

--
Regards,
Patrick
Jazz Work Item Team

permanent link
Hema Sudarshan (4143) | answered Aug 20 '09, 1:30 a.m.
I have a client designed,where i need to send IProcessArea information
to Service which is REST Service,
I could store the values in IParameterWrapper instance. I had 2 fields
in the instance one is ITeamAreaHandle and another is String. When i
sent the value to server. I could get the serialized values , but i
could not get reference of ITeamAreaHandle, that was null. When i
tried another option, to send UUID of process area, that is also not
serialized. So Please advice. How i can send process area info to
server.

IParameterWrapper supports only primitive types and arrays thereof, so you
have to send the UUID as a string:

teamAreaHandle.getItemId().getUuidValue()

(I assume you are using the ITeamModelledRestService from both Java and
JS/Web? If you only have a Java client, a regular service might be the
better option)

--
Regards,
Patrick
Jazz Work Item Team

Hi
Thanks for your reply, i could now pass uuid value and re generate a uui at server, but using the uuid , how to get the process handle like team area handle or project area handle

permanent link
Patrick Streule (4.9k21) | answered Aug 20 '09, 4:21 a.m.
JAZZ DEVELOPER
Thanks for your reply, i could now pass uuid value and re generate a
uui at server, but using the uuid , how to get the process handle
like team area handle or project area handle

You can use

ITeamAreaHandle handle= (ITeamAreaHandle)
ITeamArea.ITEM_TYPE.createItemHandle(uuid, null);

Analogous for other item types.

--
Regards,
Patrick
Jazz Work Item Team

Your answer


Register or to post your answer.