It's all about the answers!

Ask a question

Problems Creating a custom precondition


Kevin Doyle (60425) | asked Oct 01 '08, 4:16 p.m.
JAZZ DEVELOPER
I'm trying to create a custom precondition by modifying the process configuration xml with the following:

<precondition>
<filePattern>
<requires>
<approval>
<approvers>
</approval>
</requires>
</precondition>

I noticed on the wiki about having to create my own plug-in and implementing an extension to add preconditions, but since I just want to combine parts of one's already created can I do this just by modifying the process configuration xml as shown?

2 answers



permanent link
Jared Burns (4.5k29) | answered Oct 01 '08, 5:12 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I'm not sure I entirely understand your question. If my answer doesn't
help, could you provide more details on what you're trying to do?...

When you specify a precondition in the XML, you have to specify an ID.
This ID ultimately lets us map to some code that is contributed via a
plug-in. This code is handed the block of XML that's inside the
precondition, which can conform to a custom schema for that
precondition. But if you specify XML that doesn't conform to the
precondition's schema, the code won't know what to do with it.

Hope that helps,
Jared Burns
Jazz Process Team


kjdoyle wrote:
I'm trying to create a custom precondition by modifying the process
configuration xml with the following:

precondition
<filePattern
<requires
<approval
<approvers
</approval
</requires
</precondition

I noticed on the wiki about having to create my own plug-in and
implementing an extension to add preconditions, but since I just want
to combine parts of one's already created can I do this just by
modifying the process configuration xml as shown?

permanent link
Kevin Doyle (60425) | answered Oct 01 '08, 8:36 p.m.
JAZZ DEVELOPER
Thanks Jared that answered my question.

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.