cancel
Showing results for 
Search instead for 
Did you mean: 

How to abandon a Workflow using an Automation Chain

SergioFerreira_
Confirmed Champ
Confirmed Champ

I have the following Automation Chain:

  1. Fetch -> Context documents
  2. Execution Flow -> Run Chain | id = @{Document["dcns-common:comments"] == empty ? "WF_Show_Warning_Chain" : "WF_Do_Something_Chain"}
  3. Workflow Context -> Cancel Workflow | id = @{workflowInstanceId}

I want to cancel this workflow, but I've got the following error:

Not allowed to follow transition from state ... Caused by: org.nuxeo.ecm.core.api.ClientException: Unable to follow transition for document : aad41be2-cca4-4e02-9342-becce2c22333 ___ at org.nuxeo.ecm.core.api.AbstractSession.followTransition(AbstractSession.java:2774)___ ___ at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$7.run(DocumentModelImpl.java:1023)___ ___ at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$7.run(DocumentModelImpl.java:1020)___ ___ at org.nuxeo.ecm.core.api.impl.DocumentModelImpl$RunWithCoreSession.execute(DocumentModelImpl.java:427)___ ___ at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.followTransition(DocumentModelImpl.java:1020)___ ___ at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.setState(GraphNodeImpl.java:173)___ ___ ... 160 more___ Caused by: org.nuxeo.ecm.core.lifecycle.LifeCycleException: Not allowed to follow transition from state ___ at org.nuxeo.ecm.core.lifecycle.impl.LifeCycleServiceImpl.followTransition(LifeCycleServiceImpl.java:138)___ ___ at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.followTransition(SQLDocumentLive.java:326)___ ___ at org.nuxeo.ecm.core.api.AbstractSession.followTransition(AbstractSession.java:2745)___ ___ ... 165 more___


securityError : false org.jboss.seam.faces.validation : org.jboss.seam.faces.Validation@5b9649f1 org.jboss.seam.transaction.synchronizations : org.jboss.seam.transaction.SeSynchronizations@67d09c30 org.jboss.seam.web.requestContextPath : /nuxeo btn_action : done org.nuxeo.ecm.platform.ui.web.binding.alias.AliasVariableMapper_MARKER : {} nuxeo.disable.redirect.wrapper : true org.jboss.seam.core.conversationPropagation : org.jboss.seam.core.ConversationPropagation@30be488f userManager : org.nuxeo.ecm.platform.computedgroups.UserManagerWithComputedGroups@5b91d2b3 org.ajax4jsf.application.AjaxStateManager.AJAX_VIEW_SEQUENCE : j_id7 currentServerLocation : org.nuxeo.ecm.platform.util.RepositoryLocation@5c13d641 user_message : ocorreu um erro inesperado currentDocument : DocumentModelImpl(3acc11a2-34db-45bd-a146-b5447d79a90c, path=/default-domain/media-container/Deletar, title=Deletar) NuxeoExceptionHandlerMarker : true org.jboss.seam.transaction.transaction : org.jboss.seam.transaction.Transaction@1c8dbd49 lockActions : org.nuxeo.ecm.webapp.edit.lock.LockActionsBean@1d861244 exception_message : Not allowed to follow transition from state org.jboss.seam.web.servletContexts : org.jboss.seam.web.ServletContexts@4d193d80 org.jboss.seam.web.requestServletPath : /view_documents.faces org.jboss.seam.core.events : org.jboss.seam.core.Events@3414c60b

2 REPLIES 2

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hello Sergio,

SergioFerreira_
Confirmed Champ
Confirmed Champ

Yes, this Automation Chain was called by a workflow node (the first node).

Getting started

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.