cancel
Showing results for 
Search instead for 
Did you mean: 

Categories in content rules

omegerard
Champ in-the-making
Champ in-the-making
Hi,

For a particular space I defined 3 content rules, each sticking another category label to the document: one related to the type of document (report), the other to the field of research covered by the content, and finally a status category (draft). It turns out that only the label imposed by the last content rule is added. Is this a bug? Or did I overlook something? Has anybody noticed the same behaviour?

Regards

Ludo
6 REPLIES 6

omegerard
Champ in-the-making
Champ in-the-making
Maybe I should add here that all rules are defined as "incoming" rules.

Ludo

omegerard
Champ in-the-making
Champ in-the-making
It appears to make no difrerence whether they's inbound or outbound. Only one label is retained. The other two just ignored.

Seems to be a bug.

kevinr
Star Contributor
Star Contributor
I have just tested it and verified that you are correct. I have raised a bug you can track:

http://www.alfresco.org/jira/browse/AR-314

Cheers,

Kevin

omegerard
Champ in-the-making
Champ in-the-making
I noticed that  the bug was removed. But now, I get too much category labels (if I'm not careful enough with rules).

I have the following tree:

X
     /   \
  Y        Z

On the top level I defined a rule to link all incoming docs to category A.
When I upload a file into Y, it is rightfully categorized with label "A". When I execute a rule in Y that moves the document from Y to Z, it is again labeled with A.

Is this the expected behaviour? Should I really be more careful in defining my rule and make it conditional: if it is not yet labeled A, then label A"?

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Yes this is a bug.  Being marked with a category more than once doesn't seem right.

I've made the fix, the SVN details are below.

Thanks,
Roy

————————————————————————
r2156 | royw | 2006-01-20 11:06:44 +0000 (Fri, 20 Jan 2006) | 1 line
Changed paths:
   M /alfresco/HEAD/root/projects/repository/source/java/org/alfresco/repo/action/executer/LinkCategoryActionExecuter.java

- Fixed bug raised on forum that category values can be applied more than once.
————————————————————————

omegerard
Champ in-the-making
Champ in-the-making
Thanks again.

Ludo