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

Use Ids strings for event ids logged in default workflows

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.8, 6.0, 7.10, 8.2
    • Fix Version/s: None
    • Component/s: Workflow

      Description

      1. create a test file
      2. start a serial workflow
      3. require validation
      4. validate or refuse
      5. the log in history is in English even if both nuxeo and browser use another language

      Same scenario for other log events like Review.

      This is actually hardcoded and should take into account internationalization.

      Please check nuxeo-platform-document-routing/nuxeo-routing-default/src/main/resources/OSGI-INF/extensions.xml for

      <chain id="logInAudit">
            <operation id="Audit.LogEvent">
              <param type="string" name="event">expr:NodeVariables["button"] =="reject"?"Document refused":"Document validated"</param>
              <param type="string" name="category">Review workflow</param>
              <param type="string" name="comment">expr:@{nodeLastActor} @{NodeVariables["button"] =="reject"?"Document refused":"validated"} the document with the following comment: @{NodeVariables["comment"]}</param>
            </operation>
          </chain>
      

      and also

      <operation id="Audit.LogEvent">
              <param type="string" name="event">Review completed successfully</param>
              <param type="string" name="category">Review workflow</param>
              <param type="string" name="comment">All the participants of the review have approved the document.</param>
            </operation>
      

      Ideally the file should be checked for other occurences.

      A workaround for Audit.LogEvent and logInAudit is to edit the chains directly in the Studio.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: