Hi [color="#1C2837"][size="2"]Dzsonny,[/size][/color]
[color="#1C2837"][size="2"]I will take a deeper look into the source code to see if I find something strange…[/size][/color]
[color="#1C2837"][size=“2”]Regarding your question, I don’t know what really is the use case, but right now, there is no way to know why a constraint failed (i.e was evaluated to FALSE). However, this is done by design (I mean, no technical reason). The point is that status contraint should not be used as model validators, and basically, if a constraint is not satisfied, no direct user action should change that, when saving the model.[/size][/color]
[color="#1C2837"][size="2"]On the other hand, I have implemented a Workflow Driven Model Validation feature that is dedicated to adding model validation rules inside a workflow (and for a given model)… maybe this could be used ? [/size][/color]
[color="#1C2837"] [/color]
[color="#1C2837"][size=“2”]From your description, I understand that the user doesn’t acutally submit a form, but only clicks on a button right ? Well actually, when the user clicks on the button, its just like he if would :[/size][/color]
[size="2"][color="#1C2837"]
[/color][/size]
[list=1][][size=“2”][color="#1C2837"]change the model status to ‘built’[/color][/size][][size=“2”][color="#1C2837"]save the model[/color][/size][/list]
[size=“2”][color="#1C2837"]So my question is, if the model can’t be built at the time it is displayed to the user, why is the ‘built’ button displayed in the first place ? [/color][/size]
[size="2"][color="#1C2837"]
[/color][/size]
[size=“2”][color="#1C2837"]Please, don’t assume that I’m lazy and don’t want to add this warning constraint message to the extension
… it’s just that I want to avoid using constraint like model validation rules; they just have not be designed for this purpose. So, I need to know a little bit more about your scenario and be sure that if there is a really functional need for it, I will add a constraint message.[/color][/size]
[size="2"][color="#1C2837"]
[/color][/size][color="#1C2837"][size="2"]ciao[/size][/color]
[color="#1C2837"][size=“2”]
[/size][/color]
[color="#1C2837"] [/color]
[size="2"] [/size]