Problems Creating a custom precondition
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?
<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
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:
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?