Why an ttribute appear to be readonly when there is no operation behavior or presentation that enforce the readonlyness?
I was configuring a PA and in a particular state, one that has neither a read only attribute for type and state behavior, a read only attribute for condition or read only by presentation editor configuration, an attribute is presented as read only when making the transition to the state (when executing an action that has the state as destination).
I think that it may be related to the fact that the previous state has the attribute as read only. However this is a first time for me as I have configured many PAs in a similar fashion and the problem has never presented.
Thank you for your help.
P.D.: Even more, I removed the read only condition for the attributes that are presenting the problem in the origin state and the problem persists when executing the action, despite being happily available for edition in both states.
2 answers
This is a Parent PA.
I found what makes the attribute read only, but i don't understand why is this happening.
The attribute is not read only in the "Read only attributes for type and state" behavior at neither the origin (state 1) or destiny state (state 2). However, the attribute is read only in the "Read Only attributes for condition" behavior at state 1 but not in state 2.
The problem is that an action that goes from state 1 to state 2 takes in the "Read only attributes for condition" read onlyness even though there is none for the destination state
I think this can be only resolved with an extension.
If someone finds an easier way to bypass this, please let me know.
Comments
The "Read only attributes for condition" does not look at any state transition or any state at all. It passes the values of the work item plain to the condition and reds the return value.
The condition returns true or false, based on its data and script. Scripts can be wrong. The condition (as the only attribute customization) can look at the action selected.
Note that the state identifier might not be the same you expect. There is some old code that uses a different id. I would consider checking what the condition really does.
JavaScript also can be tricky.
The "Read only attributes for condition" does not look at any state transition or any state at all. It passes the values of the work item plain to the condition and reds the return value.
The condition returns true or false, based on its data and script. Scripts can be wrong. The condition (as the only attribute customization) can look at the action selected.
Note that the state identifier might not be the same you expect. There is some old code that uses a different id. I would consider checking what the condition really does.
JavaScript also can be tricky.
Comments
Donald Nong
Dec 17 '15, 10:19 p.m.I don't think there is enough information for others to tell the cause. I would suggest you contact Support so that you can send the process configuration for a double-check.