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

Is it possible to split the process source?

Hello, 
We are currently developing a custom process in RTC for our needs. One thing that would be important for us is the ability to manage the process source in different files instead of one big xml. Does a mechanism exist where we can have one "master" file and import other xml files to it? This would be very helpful for us and i think this is generally a feature teams want to have that make bigger customizations on the project source.


0 votes



3 answers

Permanent link
I haven't seen anything like that..

note that the way customizations are done,  I'm not sure include is a good approach either.

for example, to add an Enum, and make this a required field means there are changes to

Enum
attributes
presentation
and
the save workitem preconditions configuration

I've never seen a mechanism that can merge changes like this in XML from separated includes.
Also seems that 2 edits and saves in the eclipse editor produce different results each time.

we are also having a heck of a time.. we want to have a third config choice

final/not final/inherit.

inherit would not allow modify of the incoming source project ('use the process area from another project') (like final) but allow local per project defined extensions (as discussed above)..  and then somehow merge them together.
(edit as one, diff to get delta & save delta, merge delta with master for next edit, repeat save process..  use merged as runtime config).

we use a centrally controlled process model, but project teams need additional data, which doesn't affect the 'process' they need to follow.


0 votes


Permanent link
 We solved it by using a XSL Transformation script to maintain a stable order in the process source. Use this script to sort and format the process source before you check in and merging becomes a lot easier.
With this script and a little coordination we are able to change the process source with 4 people parallel.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />

<!-- Sort all Elements after their id -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()">
<xsl:sort select="@id" />
<xsl:sort select="@category" />
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<!-- Next two templates clean up formatting after sorting -->
<xsl:template match="text()[not(string-length(normalize-space()))]" />
<xsl:template match="text()[string-length(normalize-space()) > 0]">
<xsl:value-of select="translate(.,'&#xA;&#xD;', '  ')" />
</xsl:template>
</xsl:stylesheet>

0 votes

Comments

I don't think that came out quite right. The xsl isn't valid. Did it not paste correctly?

Sadly the forum editor here makes some replaces so that i can render the xsl invalid. I posted the source now on pastebin:

http://pastebin.com/dHRmH21H

Thank you! That helped a lot.


Permanent link
Hello,

See these work items for discussion on just such support:
[JAF] Multi-year: Support for process fragments (65652)
Allow child process override at the process fragment level, and master process freezing at the process fragment level. (139992)

Martha
Jazz L3 Developer

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,934
× 6,121

Question asked: Jul 05 '12, 3:27 a.m.

Question was seen: 6,213 times

Last updated: Jul 20 '12, 11:58 a.m.

Confirmation Cancel Confirm