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

Workflow task view validation fails because task doesn't include a validate method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: Studio Designer

      Description

      Steps to reproduce:

      • Create a new workflow
      • Add a new workflow variable
        • Name: destination
        • Type: Document type
      • Make the workflow variable visible in all the nodes of the workflow
      • Go to Designer
      • Configure the views for each workflow task
      • Deploy your changes
      • Init the workflow
      • Click on Approve

      This message is shown in the browser console:

      Uncaught TypeError: this.inputElement.validate is not a function
          at HTMLElement.validate (nuxeo-app.html:42586)
          at HTMLElement.validate (nuxeo-app.html:24979)
          at HTMLElement.validate (elements.html:33116)
          at HTMLElement._processTask (elements.html:33120)
          at handler (nuxeo-app.html:2283)
          at HTMLElement._methodHost._addEventListenerToNode (nuxeo-app.html:10828)
          at Object._fire (nuxeo-app.html:7171)
          at Object.forward (nuxeo-app.html:7566)
          at Object.click (nuxeo-app.html:7529)
          at HTMLElement._handleNative (nuxeo-app.html:6949)
      validate @ nuxeo-app.html:42586
      validate @ nuxeo-app.html:24979
      validate @ elements.html:33116
      _processTask @ elements.html:33120
      handler @ nuxeo-app.html:2283
      _methodHost._addEventListenerToNode @ nuxeo-app.html:10828
      _fire @ nuxeo-app.html:7171
      forward @ nuxeo-app.html:7566
      click @ nuxeo-app.html:7529
      _handleNative @ nuxeo-app.html:6949
      

      NOTE: if you add the validate method it works, but usually you don't need to add this method if you don't need a special validation.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 15 minutes
                15m