Bonjour,
Je souhaite créer un plan de classement de façon dynamique dans Alfresco à partir de Bonita. Mais je rencontre un problème quand un dossier existe déjà, le connecteur CMIS se met en erreur. Je ne trouve pas de connecteur qui permet de détecter l’existence d’un dossier. Comment peut on éviter l’erreur?
Merci pour vos réponses
`2019-07-01 14:30:10.114 +0200 GRAVE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=130 | HOSTNAME=PORT-ECM-10 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 700007, connectorDefinitionName = NouveauDossier] failed. The failure will be handled.
2019-07-01 14:30:10.121 +0200 GRAVE: org.bonitasoft.engine.execution.work.InSessionBonitaWork THREAD_ID=130 | HOSTNAME=PORT-ECM-10 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=8283199933050141424 | PROCESS_NAME=NewFolder | PROCESS_VERSION=1 | PROCESS_INSTANCE_ID=36003 | ROOT_PROCESS_INSTANCE_ID=36003 | FLOW_NODE_DEFINITION_ID=8215271671459012924 | FLOW_NODE_INSTANCE_ID=700007 | FLOW_NODE_NAME=Étape1 | CONNECTOR_IMPLEMENTATION_CLASS_NAME=NouveauDossier | CONNECTOR_INSTANCE_ID=520003 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException: An object with this name already exists: 06010074 File or folder Bonitatest already exists"
org.bonitasoft.engine.core.connector.exception.SConnectorException: PROCESS_DEFINITION_ID=8283199933050141424 | PROCESS_NAME=NewFolder | PROCESS_VERSION=1 | PROCESS_INSTANCE_ID=36003 | ROOT_PROCESS_INSTANCE_ID=36003 | FLOW_NODE_DEFINITION_ID=8215271671459012924 | FLOW_NODE_INSTANCE_ID=700007 | FLOW_NODE_NAME=Étape1 | CONNECTOR_IMPLEMENTATION_CLASS_NAME=NouveauDossier | CONNECTOR_INSTANCE_ID=520003 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException: An object with this name already exists: 06010074 File or folder Bonitatest already exists
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:285)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnector(ConnectorServiceImpl.java:158)
at org.bonitasoft.engine.connector.ConnectorServiceDecorator.executeConnector(ConnectorServiceDecorator.java:114)
at org.bonitasoft.engine.execution.work.ExecuteConnectorWork.work(ExecuteConnectorWork.java:152)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
at org.bonitasoft.engine.execution.work.failurewrapping.TxInHandleFailureWrappingWork.work(TxInHandleFailureWrappingWork.java:41)
at org.bonitasoft.engine.execution.work.InSessionBonitaWork.work(InSessionBonitaWork.java:59)
at org.bonitasoft.engine.work.BonitaThreadPoolExecutor.lambda$submit$1(BonitaThreadPoolExecutor.java:98)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException: An object with this name already exists: 06010074 File or folder Bonitatest already exists
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:131)
at org.bonitasoft.engine.core.connector.impl.ConnectorServiceImpl.executeConnectorInClassloader(ConnectorServiceImpl.java:279)
... 12 more
Caused by: java.util.concurrent.ExecutionException: org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException: An object with this name already exists: 06010074 File or folder Bonitatest already exists
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.getValue(ConnectorExecutorImpl.java:170)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.execute(ConnectorExecutorImpl.java:128)
... 13 more
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisContentAlreadyExistsException: An object with this name already exists: 06010074 File or folder Bonitatest already exists
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractWebServicesService.convertException(AbstractWebServicesService.java:105)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:140)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:1147)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:118)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:461)
at org.bonitasoft.connectors.cmis.cmisclient.AbstractCmisClient.createSubFolder(AbstractCmisClient.java:147)
at org.bonitasoft.connectors.cmis.CreateFolder.executeBusinessLogic(CreateFolder.java:45)
at org.bonitasoft.engine.connector.AbstractConnector.execute(AbstractConnector.java:77)
at org.bonitasoft.engine.core.connector.impl.SConnectorAdapter.execute(SConnectorAdapter.java:73)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:242)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl$ExecuteConnectorCallable.call(ConnectorExecutorImpl.java:212)
at org.bonitasoft.engine.connector.impl.ConnectorExecutorImpl.lambda$wrapForStats$0(ConnectorExecutorImpl.java:147)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
... 3 more
`