Uploaded image for project: 'Apache Taverna'
  1. Apache Taverna
  2. TAVERNA-1011

Add DataBundles.resolve()

    XMLWordPrintableJSON

Details

    Description

      taverna-engine has a static method org.apache.taverna.platform.execution.impl.local.T2ReferenceConverter.convertPathToObject() which converts a DataBundle Path to a classical List<String> or equivalent.

      It turns out that the Workbench also tries to use this method, but can't as it is hidden inside .impl.

      Thus my suggestion is to promote this method to DataBundles.resolve().

      I think also the method could be improved to resolve byte[] and other types than String, to avoid massive memory consumption.

      Perhaps also a typed .resolveAsStream() could be useful, e.g. resolveAsStream(outputs, ErrorDocument.class) would find all the errors (in any order).

      Attachments

        Issue Links

          Activity

            People

              stain Stian Soiland-Reyes
              stain Stian Soiland-Reyes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: