Hi, There is way to parse cwl using Snakeyaml. i have to map the CWL hierarchy to Java bean and Snakeyaml will read CWl file and produce the corresponding bean .Is this a good approach ?
regards, Thilina On Mon, May 9, 2016 at 1:31 AM, Stian Soiland-Reyes <[email protected]> wrote: > Agreed. > > So Thilina, you can first do cwltool on the command line (preprocess the > files), > > then move to > https://docs.oracle.com/javase/8/docs/api/java/lang/ProcessBuilder.html > where cwlbrowse calls cwltool to preprocess, > > and then finally move to a Java-based approach. > > I think that sounds like a good prototyping approach! Don't forget you > might need time for GUI testing as well.. > On 8 May 2016 8:49 p.m., "Michael Crusoe" <[email protected]> > wrote: > > > Yes, this is just a "stop-gap" measure so Thilina can focus on Taverna > > internals for a while. By then we may have a more mature pure Java > solution > > for loading CWL files. > > > > On Sun, May 8, 2016 at 8:36 PM, Stian Soiland-Reyes <[email protected]> > > wrote: > > > > > Yeah, I think you can have a go with that, but ultimately it will be > > tricky > > > to depend on python based cwltool from Java (e.g. the right Python or > > > Python libraries won't be installed on a Taverna user's computer). > > > > > > You could have a go if cwltool works with Jython, which would then make > > it > > > possible, but I would hope for a Java-only toolchain in the end, so we > > can > > > distribute copy CWL support to any Taverna user. > > > On 6 May 2016 6:58 p.m., "Thilina Manamgoda" <[email protected]> > > > wrote: > > > > > > > Hi, > > > > > > > > Michael has proposed a new approach to read cwl tool description > > using > > > > cwl in build preprocessing tool ( > > > > https://github.com/common-workflow-language/cwljava/issues/13) . In > > this > > > > way we can read JSON description of a cwl tool. Any comments ? > > > > > > > > regards, > > > > Thilina. > > > > > > > > > > > > > > > -- > > Michael R. Crusoe [email protected] > > Community Engineer Common Workflow Language project > > https://impactstory.org/u/0000-0002-2961-9670 +32 (0) 2 808 25 58 > > +1 480 627 9108 > > >
