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

Fix validation error on automation chain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 63
    • Fix Version/s: 64
    • Component/s: Automation, Validation

      Description

      On nos-test, I have an automation chain RequestForValidationChain that shows a validation error message: "Validation failed for feature 'RequestForValidationChain'". On connect, the same automation chain doesn't show any error.

      My chain is:

      - Context.FetchDocument
      - WebUI.AddInfoMessage:
          message: The workflow has been started.
      - Context.GetUsersGroupIdsWithPermissionOnDoc:
          permission: Workflow_validation
          variable name: assignees
          ignore groups: "false"
          prefix identifiers: "true"
          resolve groups: "false"
      - Context.GetEmailsWithPermissionOnDoc:
          permission: Workflow_validation
          variable name: groupEmails
          ignore groups: "false"
      - Context.SetVar:
          name: UserLastName
          value: " @{CurrentUser.LastName}"
      - Context.SetVar:
          name: UserFirstName
          value: "@{CurrentUser.FirstName}"
      - Auth.LoginAs:
          name: Administrator
      - Task.Create:
          task name: "Validation: @{Document.name}"
          due date: "@{CurrentDate.days(7).date}"
          directive: Enter a Directive
          comment: Enter a comment
          accept operation chain: validationWorkflow_validate
          reject operation chain: validationWorkflow_rejected
          variable name for actors prefixed ids: assignees
          create one task per actor: "true"
      - Auth.Logout
      - Document.Mail:
          from: "@{CurrentUser.email}"
          message: "template:validationWorkflow_mail"
          subject: "Document Validation: @{Document.name}"
          to: "@{groupEmails}"
          HTML: "true"
          Strict User Resolution: "false"
          rollbackOnError: "true"
          viewId: view_documents
      

      I do have the chains validationWorkflow_validate, validationWorkflow_rejected, the mail template validationWorkflow_mail and the permission Workflow_validation defined in my project. And when I run the chain in my nuxeo instance, I don't get any error in the logs.

        Attachments

        1. connect.png
          615 kB
          Solen Guitter
        2. nos-test.png
          587 kB
          Solen Guitter

          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 hours
                2h