WorkItem customization
Hy,
Each time I try to use the <ReadOnly> constraint combined with a <REQUIRED> or <DEFAULT> there is an error that say :
Exception Message: TF26049: The field 'FlowKind' has rules '<READONLY />' and '<DEFAULT from="value" value="Main" />' that are inconsistent.
Is it a known bug ?
Is there a way to cope this inconsistence ?
I am also looking for two other tips :
First, how do you customize the right click menu for a particular role. Yet Every role see every workItem I have tried to use the for / not in the first transition definition but it didn't succeed. How do you solve it?
Second, I haven't find the right synthax to define group of group in the Gss file.
How do you difne such parent group?
Regards,
WoZoI
[820 byte] By [
WoZoI] at [2007-12-16]
-READONLY, REQUIRED, and DEFAULT rules don't necessarily make sense in conjunction. In your case, it does not make sense to make a field read only but at the same time write a value to it using the default rule. You should scope your rules with greater granularity if you want to make the field READONLY under certain conditions while defaulting values under other conditions. For example, try using a WHEN and WHENNOT combination to specify certain times for a field to be READONLY and other times for that field to take on default values.
-Unfortunately, you can't customize the context menu per role in this release. We've seen a number of requests for this functionality and are looking into it for the future releases.
-Lastly, the process template GSS file only allows you to define shallow groups. It does not allow you to define nested groups in this release.
Actually, in Beta3 release we relaxed these restrictions a little bit and allowed using READONLY and REQUIRED rules together - we found out that they are not inconsistent, and there were some actual scenarios where these rules really needed to be used together (for write-once field, for example, where the field must be set on the first use and cannot be changed after that).
READONLY and DEFAULT rules are inconsistent. READONLY means that nothing can change field's value - even other rules. DEFAULT means changing field's value. Therefore they cannot be defined together.