Hi.I am having some problems with a rule that sends a mail if a multiple custom property contains one value.Here is my custom property configuration asociated with an aspect:
<aspect name="xyz:minicia">
<title>Mini compañía</title>
<properties>
<property name="xyz:minicia">
<title>Mini compañías</title>
<type>d:text</type>
<multiple>true</multiple>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>both</tokenised>
</index>
</property>
</properties>
</aspect>
My rule configuration: When: Items are created or enter this folder + Items are updated + Items are deleted If all criteria are met: xyz:minicia contains Prueba Perform Action: Send mailThe problem is that when a third application tries to upload a new file to the folder, an exception is always thrown:
2014-02-24 09:53:30,772 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-8] Exception from executeScript - redirecting to status template error: java.util.ArrayList cannot be cast to java.lang.String
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
at org.alfresco.repo.action.evaluator.compare.TextPropertyValueComparator.compare(TextPropertyValueComparator.java:84)
at org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator.evaluateImpl(ComparePropertyValueEvaluator.java:262)
at org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase.evaluate(ActionConditionEvaluatorAbstractBase.java:91)
at org.alfresco.repo.action.ActionServiceImpl.evaluateSimpleCondition(ActionServiceImpl.java:549)
…
2014-02-24 09:53:45,501 ERROR [extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-10] Exception from executeScript - redirecting to status template error: java.util.ArrayList cannot be cast to java.lang.String
java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String
at org.alfresco.repo.action.evaluator.compare.TextPropertyValueComparator.compare(TextPropertyValueComparator.java:84)
at org.alfresco.repo.action.evaluator.ComparePropertyValueEvaluator.evaluateImpl(ComparePropertyValueEvaluator.java:262)
at org.alfresco.repo.action.evaluator.ActionConditionEvaluatorAbstractBase.evaluate(ActionConditionEvaluatorAbstractBase.java:91)
at org.alfresco.repo.action.ActionServiceImpl.evaluateSimpleCondition(ActionServiceImpl.java:549)
…
If I change the criteria to met all files, it works fine. Similar rules for custom properties that are not multiple, also works fine. Any idea?Thanks in advance.Alberto J.