Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28078

Working worflow in 8.10 chokes in 10.10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF17, 11.1, 2021.0
    • Component/s: Workflow
    • Release Notes Summary:
      The GetOpenTasks operation has the same behavior as in LTS 2016.
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      The "processId" parameter of the Workflow.GetOpenTasks operation now has a "workflowInstanceId" alias.
      This allows to run this operation within a chain called from a workflow (transition, escalation rule, ...) without passing any parameters, as theĀ "nodeId" and "processId" (= "workflowInstanceId") parameters will be automatically bound to the operation context variables named the same way.

      Show
      The "processId" parameter of the Workflow.GetOpenTasks operation now has a "workflowInstanceId" alias. This allows to run this operation within a chain called from a workflow (transition, escalation rule, ...) without passing any parameters, as theĀ "nodeId" and "processId" (= "workflowInstanceId") parameters will be automatically bound to the operation context variables named the same way.
    • Sprint:
      nxplatform 11.1.20, nxplatform 11.1.21
    • Story Points:
      5

      Description

      A workflow approve task calls the following automation:

      - Context.FetchDocument
      - Workflow.GetOpenTasks: {}
      - Log:
          level: info
          message: "@{This.get(0)}"
          category: MyOT
      

      where Workflow.GetOpenTasks has no parameter, for which doc says it is OK

      This chokes in 10.10 with exception:

      2019-09-25T17:10:00,096 ERROR [AbstractWork] Exception during work: EscalationRuleWork(, Progress(?%, ?/0), null)
      org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.10.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
      2019-09-25T17:10:00,113 ERROR [AbstractWork] Exception during work: EscalationRuleWork(, Progress(?%, ?/0), null)
      org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.10.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
      2019-09-25T17:10:00,126 ERROR [AbstractWork] Exception during work: EscalationRuleWork(, Progress(?%, ?/0), null)
      org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) [nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-10.10.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
      2019-09-25T17:10:00,159 ERROR [WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-escalation-1, current work might be lost, WorkManager metrics might be corrupted.
      org.nuxeo.ecm.core.api.NuxeoException: Work failed after 2 retries, class=class org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork id=default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT category=routingEscalation title=default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT
              at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:412) ~[nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:369) ~[nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_201]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_201]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
      Caused by: org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
              at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) ~[nuxeo-core-event-10.10.jar:?]
              at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) ~[nuxeo-core-event-10.10.jar:?]
              ... 4 more
              Suppressed: org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
                      at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
                      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
                      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) ~[nuxeo-core-event-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) ~[nuxeo-core-event-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10.jar:?]
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_201]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_201]
                      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
              Suppressed: org.nuxeo.ecm.core.api.NuxeoException: Error when executing worker: default:817d9a4d-2221-4875-abd3-eac758134245:escalationRule:MyOT, Failed to invoke operation Workflow.GetOpenTasks with aliases [Context.GetOpenTasks], Need both nodeId and processId to invoke the operation with parameters
                      at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:84) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.api.operation.GetOpenTasksOperation.getAllTasks(GetOpenTasksOperation.java:101) ~[nuxeo-routing-core-10.10.jar:?]
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201]
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201]
                      at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201]
                      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:158) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:326) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:291) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) ~[nuxeo-automation-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:516) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.executeChain(GraphNodeImpl.java:495) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEscalationServiceImpl$EscalationRuleWork.work(DocumentRoutingEscalationServiceImpl.java:144) ~[nuxeo-routing-core-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:437) ~[nuxeo-core-event-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:357) ~[nuxeo-core-event-10.10.jar:?]
                      at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-10.10.jar:?]
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_201]
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_201]
                      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
      

      This seems to come from a context parameter nodeId that exists in the 10.10 parameter list

      Workaround: Use

      - Workflow.GetOpenTasks:
          nodeId: "@{Context[\"nodeId\"]}"
          processId: "@{Context[\"workflowInstanceId\"]}"
      

      where you see the nodeId name clash

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 6 hours
                  1d 6h