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

Read Process Config XML in server-side follow-up action

Can anyone tell me how to read the Process Configuration XML in a Save Work Item follow-up server-side action? I created a Process Aspect Editor to add a new <configuration> section to the XML... now I need to read that in my follow-up action. I can't seem to figure out exactly how to do that.

Thanks in advance,

Dave

0 votes



3 answers

Permanent link
On Thu, 09 Apr 2009 02:57:33 +0000, deweber wrote:

Can anyone tell me how to read the Process Configuration XML in a Save
Work Item follow-up server-side action? I created a Process Aspect
Editor to add a new <configuration> section to the XML... now I need to
read that in my follow-up action. I can't seem to figure out exactly
how to do that.

Thanks in advance,

Dave

Hi, Dave.

The process framework passes the appropriate XML to your follow-up action
when it is invoked. The IProcessConfigurationElement parameter that you
are passed is a modeled representation of the XML. See the JavaDoc on
IOperationParticipant#run(...)

--
Jared Burns
Jazz Process Team

0 votes


Permanent link
Sorry, I wasn't clear in my question.

I have a top-level Process Aspect Editor, not a Process Aspect Editor specific to my follow-up action. In other words, my Process Aspect Editor inherits from ProcessAspectEditor2, not from OperationDetailsAspectEditor.

So there is no direct tie of the Process Aspect Editor to the follow-up action.
(The main reason for writing a top-level Aspect Editor instead of an Aspect Editor specific for the follow-up action is the screen real estate for a operation aspect editor is not big enough for the GUI that we require.)

So in my follow-up action, I need access to the root of the Process Configuration XML. And I'm looking for the proper lines of code to do that (for a server-side follow-up action).

Thanks,

Dave

0 votes


Permanent link
On Thu, 09 Apr 2009 18:47:59 +0000, deweber wrote:

So in my follow-up action, I need access to the root of the Process
Configuration XML. And I'm looking for the proper lines of code to do
that (for a server-side follow-up action).


The API to read configuration data is
IServerProcess#getProjectConfigurationData(String configDataId)


--
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
× 10,954

Question asked: Apr 08 '09, 10:55 p.m.

Question was seen: 6,563 times

Last updated: Apr 08 '09, 10:55 p.m.

Confirmation Cancel Confirm