09-12-2012 07:46 AM
Trying to backport the RunOperationOnList automation operation to 5.4.2, i m meeting a casting problem :
for (Object value : (Collection<?>) ctx.get(listName))
raises a Ljava.lang.String; cannot be cast to java.util.Collection Exception.
it is used this way in my chain :
SetContextVariable : reviewers = @{Document["doc_adm_ws:reviewers"]}
RunChain : void (operation), reviewers, item
"doc_adm_ws reviewers" being a multi-valued field
09-12-2012 09:46 AM
Use (String[]) instead
09-12-2012 09:46 AM
Use (String[]) instead
09-13-2012 05:19 AM
It's working fine, thank you
09-06-2013 05:31 AM
One year later ... I'm into upgrading Nuxeo to 5.5 HF18 and of course i'm having the same problem. Isn't there a workaround or do i have to create another operation as i did in 5.4.2 ?
EDIT : i'd like to use RUN SCRIPT in order to cast my data
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.