cancel
Showing results for 
Search instead for 
Did you mean: 

How to uncheck document list

fjannin_
Champ in-the-making
Champ in-the-making

Hello,

At the end of a automation chain for a multi-publish action from a button, selected documents are still checked in the content view. How to uncheck them ? After many search, I found nothing about this. UI clear worklist doesn't work Thanks for help.

7 REPLIES 7

Laurent_Doguin
Star Collaborator
Star Collaborator

fjannin_
Champ in-the-making
Champ in-the-making

Hi,

Thanks for reply. Nevertheless, following blog's instructions and completing with jar deployement into nxserver/plugins directory and nuxeo server restarting leads to following exception when triggering my chain :

ERROR [org.nuxeo.ecm.automation.jsf.OperationActionBean] org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: Seam.ClearSelectedDocuments org.nuxeo.ecm.automation.OperationNotFoundException: No operation was bound on ID: Seam.ClearSelectedDocuments at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.getOperation(OperationServiceImpl.java:221) at org.nuxeo.ecm.automation.core.impl.CompiledChainImpl.buildChain(CompiledChainImpl.java:141) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.compileChain(OperationServiceImpl.java:259) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.compileChain(OperationServiceImpl.java:252) at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:83) at org.nuxeo.ecm.automation.jsf.OperationActionBean.runOperation(OperationActionBean.java:87) at org.nuxeo.ecm.automation.jsf.OperationActionBean.doOperation(OperationActionBean.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)

Is there something else to do ?

This error

fjannin_
Champ in-the-making
Champ in-the-making

Hello again,

In the init phase I have found this exception :

ERROR [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Failed to register extension to: service:org.nuxeo.ecm.core.operation.OperationServiceComponent, xpoint: operations in component: service:org.nuxeo.inpt.operations.ClearSelectedDocuments

  • Failed to register extension to: service:org.nuxeo.ecm.core.operation.OperationServiceComponent, xpoint: operations in component: service:org.nuxeo.inpt.operations.ClearSelectedDocuments (java.lang.IllegalArgumentException: An iterable method must have an argument)

Eclipse doesn't complain about antything, I can't figure out where is iterable method and where to add arguments...

Is something wrong in the extension generated by Nuxeo IDE ? In the blog screenshot, signature is different, there is no "object" elements, while when exporting my operation, I have this entry in Nuxeo Studio registry :

{ "operations" : [ { "id" : "Seam.ClearSelectedDocuments", "label" : "ClearSelectedDocuments", "category" : "User Interface", "description" : "Clear selected documents list in UI", "url" : "Seam.ClearSelectedDocuments", "requires" : "Seam", "signature" : [ "void", "void", "object", "object" ], "params" : [ ] } ] }

Are you sure the signature of your method is ok? It should be

fjannin_
Champ in-the-making
Champ in-the-making

I found the cause : using Nuxeo IDE to create operation, I had this annotation parameter on my run method : (collector=DocumentModelCollector.class)

giving the iterable exception above...

As it is the first time I use Nuxeo IDE, I didn't pay attention to this. After removing this parameter, it works fine.

Thanks for replies and sorry for my noob blindness.

Please stop posting questions in the answers section.