How to make a precondtion overrulable
Hi.
Our team decided to change the workItemSave requiredProperties precondition
to overrulable. So I added the overrulable="true" attribute to the
precondition in the project area spec, but it just does not seem to have an
effect. I was expecting to see the "overule" button in the Team Advisor now
when saving, but there is no solution section at all.
I was definitey editing the current iteration's behavior section. I could
actually add more required properties and they would be enforced immediately
after saving the spec. Just the overrulable and option attributes did not
seem that have an effect. I am use Beta2a. Am I missing something?
Peter.
<behavior>
<role id="default">
<operation id="com.ibm.team.workitem.operation.workItemSave">
<preconditions>
<precondition id="com.ibm.team.workitem.advisor.requiredProperties"
name="Required Properties"
overrulable="true"
description="A minimum set of properties must be set in order for the team
to know how to classify the workitem.">
<properties workItemTypeCategory="com.ibm.team.workitem.workItemType">
<property id="summary"/>
<property id="category"/>
<property id="duration"/>
<property id="target"/>
</properties>
</precondition>
</preconditions>
</operation>
Our team decided to change the workItemSave requiredProperties precondition
to overrulable. So I added the overrulable="true" attribute to the
precondition in the project area spec, but it just does not seem to have an
effect. I was expecting to see the "overule" button in the Team Advisor now
when saving, but there is no solution section at all.
I was definitey editing the current iteration's behavior section. I could
actually add more required properties and they would be enforced immediately
after saving the spec. Just the overrulable and option attributes did not
seem that have an effect. I am use Beta2a. Am I missing something?
Peter.
<behavior>
<role id="default">
<operation id="com.ibm.team.workitem.operation.workItemSave">
<preconditions>
<precondition id="com.ibm.team.workitem.advisor.requiredProperties"
name="Required Properties"
overrulable="true"
description="A minimum set of properties must be set in order for the team
to know how to classify the workitem.">
<properties workItemTypeCategory="com.ibm.team.workitem.workItemType">
<property id="summary"/>
<property id="category"/>
<property id="duration"/>
<property id="target"/>
</properties>
</precondition>
</preconditions>
</operation>
One answer
The work item save operation is a server-side operation. We do not allow
to overrule the preconditions of server side operations. We only allow
that for the preconditions of client-side operations.
Some background: Client side operations are 'optional' in the sense that
the client talking to the Jazz server might not provide some of the
operations specified in the process. Based on this notion of 'optional'
any precondition for a client-side operation is more or less not more
than a hint. Therefore, providing overruling functionality does not bear
any major risk.
Kai
Jazz Process Component
Peter Haumer wrote:
to overrule the preconditions of server side operations. We only allow
that for the preconditions of client-side operations.
Some background: Client side operations are 'optional' in the sense that
the client talking to the Jazz server might not provide some of the
operations specified in the process. Based on this notion of 'optional'
any precondition for a client-side operation is more or less not more
than a hint. Therefore, providing overruling functionality does not bear
any major risk.
Kai
Jazz Process Component
Peter Haumer wrote:
Hi.
Our team decided to change the workItemSave requiredProperties precondition
to overrulable. So I added the overrulable="true" attribute to the
precondition in the project area spec, but it just does not seem to have an
effect. I was expecting to see the "overule" button in the Team Advisor now
when saving, but there is no solution section at all.
I was definitey editing the current iteration's behavior section. I could
actually add more required properties and they would be enforced immediately
after saving the spec. Just the overrulable and option attributes did not
seem that have an effect. I am use Beta2a. Am I missing something?
Peter.
behavior
role id="default"
operation id="com.ibm.team.workitem.operation.workItemSave"
preconditions
precondition id="com.ibm.team.workitem.advisor.requiredProperties"
name="Required Properties"
overrulable="true"
description="A minimum set of properties must be set in order for the team
to know how to classify the workitem."
properties workItemTypeCategory="com.ibm.team.workitem.workItemType"
property id="summary"/
property id="category"/
property id="duration"/
property id="target"/
/properties
/precondition
/preconditions
/operation