cancel
Showing results for 
Search instead for 
Did you mean: 

Validity of an aspect esp. mandatory fields

rtl
Champ in-the-making
Champ in-the-making
Is it possible to check that an aspect has all its mandatory data filled in and is valid?

The reason I ask is that I'd like to setup a simple workflow that checks, for example, if the summarizable aspect is filled in, or all the Dublin Core mandatory properties are present, before it moves the content from one space to another and if it isn't then doesn't let the move happen.

Is this possible?
1 REPLY 1

rtl
Champ in-the-making
Champ in-the-making
After much digging, it looks as though the only way to do this, declaratively at least, is to define 2 copies of the aspect in question. One that has the so-called mandatory fields set to enforced="False", so that these fields are no longer actually mandatory and the aspect can be added to content w/o an exception being thrown. The other copy of the aspect has the properties set to enforced="True" and is manually created and populated by a script when the content is moved.

As this sort of detail does not appear to be documented anywhere, I would very much appreciate some confirmation from the Alfresco devs that this is indeed the best (only?) way to go.