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

Implement a YAML converter for Automation

    XMLWordPrintable

    Details

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

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