You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Thilina Manamgoda <ma...@gmail.com> on 2016/05/06 17:58:10 UTC

Taverna -CWL tool description 880

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.

Re: Taverna -CWL tool description 880

Posted by Thilina Manamgoda <ma...@gmail.com>.
Hi ,

i have made a pull request and current progress on this blog
<http://maanadevgsoc2016.blogspot.com/> .

regards,
Thilina

On Tue, May 24, 2016 at 11:10 AM, Thilina Manamgoda <ma...@gmail.com>
wrote:

> 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 <st...@apache.org>
> 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" <mi...@gmail.com>
>> 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 <st...@apache.org>
>> > 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" <ma...@gmail.com>
>> > > 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                          michael.crusoe@gmail.com
>> > Community Engineer                 Common Workflow Language project
>> > https://impactstory.org/u/0000-0002-2961-9670   +32 (0) 2 808 25 58
>> >                                                     +1 480 627 9108
>> >
>>
>
>

Re: Taverna -CWL tool description 880

Posted by Thilina Manamgoda <ma...@gmail.com>.
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 <st...@apache.org>
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" <mi...@gmail.com>
> 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 <st...@apache.org>
> > 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" <ma...@gmail.com>
> > > 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                          michael.crusoe@gmail.com
> > Community Engineer                 Common Workflow Language project
> > https://impactstory.org/u/0000-0002-2961-9670   +32 (0) 2 808 25 58
> >                                                     +1 480 627 9108
> >
>

Re: Taverna -CWL tool description 880

Posted by Stian Soiland-Reyes <st...@apache.org>.
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" <mi...@gmail.com> 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 <st...@apache.org>
> 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" <ma...@gmail.com>
> > 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                          michael.crusoe@gmail.com
> Community Engineer                 Common Workflow Language project
> https://impactstory.org/u/0000-0002-2961-9670   +32 (0) 2 808 25 58
>                                                     +1 480 627 9108
>

Re: Taverna -CWL tool description 880

Posted by Michael Crusoe <mi...@gmail.com>.
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 <st...@apache.org>
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" <ma...@gmail.com>
> 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                          michael.crusoe@gmail.com
Community Engineer                 Common Workflow Language project
https://impactstory.org/u/0000-0002-2961-9670   +32 (0) 2 808 25 58
                                                    +1 480 627 9108

Re: Taverna -CWL tool description 880

Posted by Stian Soiland-Reyes <st...@apache.org>.
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" <ma...@gmail.com> 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.
>