Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5023

View Designer: fix badly generated nuxeo-dropzone for workflow task layout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: Studio Designer, Workflow
    • Backlog priority:
      900
    • Browser:
    • Sprint:
      NOS 10.10.3 - end dec, NOS 10.10.4 - begin jan, NOS 10.10.5 - mid jan
    • Story Points:
      2

      Description

      Steps to reproduce:

      • In the modeler part, define a workflow model which has a multi blob variable name myBlobs
      • add a validate/reject node
      • in the variables tab this new node, add the myBlobs in the Workflow Variables Editable in this Task (see attached screenshot1.png)
      • In the designer part, generate the task layout for this new node (see screenshot2.png)

      The generated widget for the blob list var is:

      <nuxeo-dropzone document="{{document}}" xpath="task:blobs" blob-list="true" blob-append="true"></nuxeo-dropzone>
      

      which is wrong:

      • nuxeo-dropzone has been designed to work with a document
      • we are in the ctx of a workflow processing, there's no such document available

      NOTE that in case of a single blob variable, the following is generated:

      <nuxeo-file value="{{task.variables.myBlob}}"></nuxeo-file>
      

      which is correct.

        Attachments

        1. screenshot1.png
          227 kB
          Guillaume Renard
        2. screenshot2.png
          296 kB
          Guillaume Renard

          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 - 2 days
                  2d