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

Fix task validation when using different set of editable variables on each task

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Task validation handles different set of editable variables for each task.
    • Backlog priority:
      600
    • Sprint:
      nxGang Sprint 11.1.2, nxGang Sprint 11.1.3
    • Story Points:
      3

      Description

      Steps to reproduce:

      1. define a workflow with at least 2 workflow variables: app_ID and dc_commentaire
      2. app_ID is editable on the first task
      3. dc_commentaire is editable on the second task
      4. define a graph and layouts to handle these tasks
      5. In Web UI, start the corresponding workflow
      6. Finish the first task
      7. Try to finish the second task
      8. Observe that nothing changes in the UI

      In the logs, there is this error

      ERROR [WebEngineExceptionMapper] org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: You don't have the permission to set the workflow variable sur_ID
      org.nuxeo.ecm.platform.routing.api.exception.DocumentRouteException: You don't have the permission to set the workflow variable sur_ID
      	at org.nuxeo.ecm.platform.routing.core.impl.GraphNodeImpl.setAllVariables(GraphNodeImpl.java:354)
      	at org.nuxeo.ecm.platform.routing.core.impl.GraphRunner.resume(GraphRunner.java:122)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRouteElementImpl.resume(DocumentRouteElementImpl.java:84)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingEngineServiceImpl.resume(DocumentRoutingEngineServiceImpl.java:48)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl$CompleteTaskRunner.run(DocumentRoutingServiceImpl.java:368)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:117)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.completeTask(DocumentRoutingServiceImpl.java:335)
      	at org.nuxeo.ecm.platform.routing.core.impl.DocumentRoutingServiceImpl.endTask(DocumentRoutingServiceImpl.java:868)
      	at org.nuxeo.ecm.restapi.server.jaxrs.routing.TaskObject.completeTask(TaskObject.java:81)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 15 minutes
                  1d 15m