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

Allow edit of automation chain in plain text

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 20

      Description

      To avoid clicking many times and to follow examples written in blog or documentation, it would be useful to be edit an automation chain using a simple text representation. YAML can be used for this, especially as there are some java parsers ready to use for this.
      Here is a sample conversion:

      <chain id="UpdateDocument">
            <operation id="Document.Fetch">
              <param type="document" name="value">/default-domain/workspaces</param>
            </operation>
            <operation id="Document.Create">
              <param type="string" name="type">File</param>
              <param type="string" name="name">expr:test@{item}</param>
              <param type="properties" name="properties">expr:dc:title=test@{item}</param>
            </operation>
            <operation id="LogOperation">
              <param type="string" name="level">error</param>
              <param type="string" name="message">expr:"test"+item</param>
            </operation>
          </chain>
      

      becomes

      - Document.Fetch:
          value: /default-domain/workspaces
      - Document.Create:
          name: test@{item}
          properties: dc:title=test@{item}
          type: File
      - LogOperation:
          level: error
          message: "\"test\"+item"
      

      This edit mode should be in a tab. Studio refuses to save if syntax is not ok or if transformation to Automation Model fails (we want a validation fo the operations and parameters)

        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 - 4 days
                  4d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified Time Not Required
                  Not Specified