It's all about the answers!

Ask a question

How to get the process configuration source xml file ?


Krishna Kishore (50112) | asked Jan 08 '10, 4:18 a.m.
JAZZ DEVELOPER
Hi,

I want to fetch the process configuration source xaml given a project area. Is their any API which fetches this xaml file. Basically I want to parse this file and extract information regarding operation behaviors.

Thanks,
Kishore

4 answers



permanent link
Jan Wloka (4161) | answered Jan 08 '10, 7:23 a.m.
JAZZ DEVELOPER
Kishore,

if your code is invoked by a service, you can use the IContentService for
retrieving the XML content. You need something like:


IProcessContainer projectArea= ...;
IContentService contService= getService(IContentService.class);

Map<String> procData= projectArea.getProcessData();
IContent procContent=
procData.get(ProcessContentKeys.PROCESS_SPECIFICATION_KEY);
ByteArrayOutputStream outStream= new ByteArrayOutputStream();
contService.retrieveContent(procContent, outStream);
String xmlContent= outStream.toString(IContent.ENCODING_UTF_8);

HTH,
Jan.


--
Jan Wloka
Jazz Work Item Team



On Fri, 08 Jan 2010 10:23:05 +0100, kkishore
<krishna> wrote:

Hi,

I want to fetch the process configuration source xaml given a project
area. Is their any API which fetches this xaml file. Basically I want
to parse this file and extract information regarding operation
behaviors.

Thanks,
Kishore

permanent link
Krishna Kishore (50112) | answered Jan 11 '10, 12:36 a.m.
JAZZ DEVELOPER
Hi Jan,

I was not specific in my question. I am not looking at JAVA API. I want to know if their is a web request, something like a REST call. I work on the RTC Visual Studio clien team and I want to get this data from the VS client.

Thanks,
Kishore




Kishore,

if your code is invoked by a service, you can use the IContentService for
retrieving the XML content. You need something like:


IProcessContainer projectArea= ...;
IContentService contService= getService(IContentService.class);

Map<String> procData= projectArea.getProcessData();
IContent procContent=
procData.get(ProcessContentKeys.PROCESS_SPECIFICATION_KEY);
ByteArrayOutputStream outStream= new ByteArrayOutputStream();
contService.retrieveContent(procContent, outStream);
String xmlContent= outStream.toString(IContent.ENCODING_UTF_8);

HTH,
Jan.


--
Jan Wloka
Jazz Work Item Team



On Fri, 08 Jan 2010 10:23:05 +0100, kkishore
<krishna> wrote:

Hi,

I want to fetch the process configuration source xaml given a project
area. Is their any API which fetches this xaml file. Basically I want
to parse this file and extract information regarding operation
behaviors.

Thanks,
Kishore

permanent link
Jared Burns (4.5k29) | answered Jan 11 '10, 9:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Mon, 11 Jan 2010 05:37:53 +0000, kkishore wrote:
I was not specific in my question. I am not looking at JAVA API. I want
to know if their is a web request, something like a REST call. I work
on the RTC Visual Studio clien team and I want to get this data from the
VS client.

No, we don't have a REST API for this yet.

--
Jared Burns
Jazz Process Team

permanent link
Raj K (10222225) | answered Dec 06 '10, 6:18 p.m.
Hi,
Where can I find documentation on the API? I see your code but I can hardly understand the object model.

Is it possible to get the source config XML, make changes and set it back to the project area?


On Mon, 11 Jan 2010 05:37:53 +0000, kkishore wrote:
I was not specific in my question. I am not looking at JAVA API. I want
to know if their is a web request, something like a REST call. I work
on the RTC Visual Studio clien team and I want to get this data from the
VS client.

No, we don't have a REST API for this yet.

--
Jared Burns
Jazz Process Team

Your answer


Register or 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.