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

How to get the process configuration source xml file ?

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

0 votes



4 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

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

Question asked: Jan 08 '10, 4:18 a.m.

Question was seen: 8,776 times

Last updated: Jan 08 '10, 4:18 a.m.

Confirmation Cancel Confirm