You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Sagar <ku...@gmail.com> on 2016/08/20 09:58:33 UTC

Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Hi folks,

Currently, taverna server and taverna-player-portal both  are running
properly.

So I have planned to integrate it in Android app.

Below are some queries regarding JSON API.

1) How can I add a workflow ?
2) How is taverna-player-portal and myExperiment workflow linked ?
3) How to get all workflow's runs run by a user?

Kindly revert as soon as possible.

Thanks
Sagar

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

@sagar what  problems will this cause? Does it matter if there are
 multiple versions of the same workflow in the portal? The portal is just a
means to run a workflow. Sure it would be great if everything was a bit
more integrated but I see that as a problem to worry about some other time.
Better to concentrate on what is possible right now. As far as the user is
concerned Taverna Mobile is the "glue" between myexperiment and Taverna
Player/Server here.

Cheers,

Ian

On 23 August 2016 at 12:04, Donal K. Fellows <
donal.k.fellows@manchester.ac.uk> wrote:

> On 23/08/2016 11:38, Sagar wrote:
>
>>     And there is no link up with myExpermiment API's workflow's id. If
>> there is no link up then how can I get to know that this is this workflow
>> like if I open this URL(http://139.59.28.12:3000/workflows.json). I get
>> workflow's id as 1 but in myExperiment's API, it is 824. If I search on
>> the
>> basis of the name of workflow then there is the chance of multiple
>> workflows as you can see on this URL(
>> http://www.myexperiment.org/search?query=Fetch+today%27s+xkc
>> d+comic&commit=Go
>> ).
>>
>
> There's really no reason for an ID on one site to be the same as an ID for
> equivalent content on another site. Indeed, there's a real sense in which
> the ID can be considered to be a whole URL, and not just a small number
> (because what does “42” mean? It depends who you ask and in what context.)
> Because of that, it's important to store the whole identifier.
>
> Also, knowing when two URLs are equivalent is really amazingly hard, so
> don't worry about it and stick with plain old string comparison. While it
> isn't right, it's not right in a way that is predictable and easy for
> everyone to work with, which is still pretty good.
>
> Typically, the way you handle workflows in a repository having the same
> name despite being different is by *showing more information*. This might
> be some of the description, a picture, or the link (or a combination of the
> above) depending on exactly what the UI capabilities available at that
> point are. Like that, the user will be able to decide for themselves.
> That's a really good idea in practice, since users (and myself ;-)) don't
> always give perfectly descriptive titles to things.
>
> Hope this helps
>
> Donal.
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by "Donal K. Fellows" <do...@manchester.ac.uk>.
On 23/08/2016 11:38, Sagar wrote:
>     And there is no link up with myExpermiment API's workflow's id. If
> there is no link up then how can I get to know that this is this workflow
> like if I open this URL(http://139.59.28.12:3000/workflows.json). I get
> workflow's id as 1 but in myExperiment's API, it is 824. If I search on the
> basis of the name of workflow then there is the chance of multiple
> workflows as you can see on this URL(
> http://www.myexperiment.org/search?query=Fetch+today%27s+xkcd+comic&commit=Go
> ).

There's really no reason for an ID on one site to be the same as an ID 
for equivalent content on another site. Indeed, there's a real sense in 
which the ID can be considered to be a whole URL, and not just a small 
number (because what does \u201c42\u201d mean? It depends who you ask and in what 
context.) Because of that, it's important to store the whole identifier.

Also, knowing when two URLs are equivalent is really amazingly hard, so 
don't worry about it and stick with plain old string comparison. While 
it isn't right, it's not right in a way that is predictable and easy for 
everyone to work with, which is still pretty good.

Typically, the way you handle workflows in a repository having the same 
name despite being different is by *showing more information*. This 
might be some of the description, a picture, or the link (or a 
combination of the above) depending on exactly what the UI capabilities 
available at that point are. Like that, the user will be able to decide 
for themselves. That's a really good idea in practice, since users (and 
myself ;-)) don't always give perfectly descriptive titles to things.

Hope this helps

Donal.

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

So, we now believe (thanks to some detective work by Alan) that the taverna
player portal can return info about the input ports using GET
/runs/new?workflow_id={id} which returns a JSON document.
See
https://github.com/myGrid/taverna-player/wiki/JSON-API-Documentation#get-runsnewworkflow_idid

Lets not worry about mime types right now. Maybe in future we could change
the player to send the mime types as well.

Cheers,

Ian

On 23 September 2016 at 15:02, Stian Soiland-Reyes <st...@apache.org> wrote:

> Great!
>
> Note it does not build with Java 7 (using docker run -it maven:3-jdk-7):
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar
> (attach-javadocs) on project taverna-baclava-language:
> MavenReportException: Error while generating Javadoc:
> [ERROR] Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none
>
> I think because the -Xdoclint option is not recognized.  However we
> don't claim it would BUILD with Java 7 - so that's OK.
>
> (it works with -Dmaven.javadoc.skip=true)
>
>
> But I guess also then our dependencies then can't be Java 8 in the
> Android profile.. for instance jena.version is set to 3.1.0 which
> requires JDK 8:
>
> root@fc2a5ed3ebd6:~/.m2/repository# file
> org/apache/jena/web/DatasetGraphAccessorBasic.class
> org/apache/jena/web/DatasetGraphAccessorBasic.class: compiled Java
> class data, version 52.0
>
>
>
>
>
> On 23 September 2016 at 13:00, Ian Dunlop <ia...@gmail.com> wrote:
> > Hello,
> >
> > taverna-language pom profile added for android. Another default profile
> had
> > to be added as wel which you get if you do a normal mvn  installl.  For
> the
> > Android Java7 profile use:
> >
> > mvn -P android clean install
> >
> > If we decide to use this in the app then maybe we should ban Java8+
> > features from some of the modules
> >
> > Cheers,
> >
> > Ian
> >
> > On 15 September 2016 at 11:48, Stian Soiland-Reyes <st...@apache.org>
> wrote:
> >
> >> I think you won't get the annotation content for the mimetype without
> also
> >> using
> >> https://taverna.incubator.apache.org/javadoc/taverna-
> >> language/org/apache/taverna/scufl2/annotation/AnnotationTools.html
> >>
> >> but that would add dependency on Jena, which latest versions require
> >> Java 7 and I'm not sure if it works well on Android.
> >>
> >>
> >> Perhaps using just the XSD mapping from taverna-scufl2-t2flow would be
> >> a bit easier? You still need to trundle through the annotations which
> >> in .t2flow were serialized in a perhaps awkward way (an annotation
> >> chain which then contains a set of revisioned annotations).
> >>
> >>
> >>
> >> On 15 September 2016 at 11:29, Ian Dunlop <ia...@gmail.com> wrote:
> >> > Hello,
> >> >
> >> > @sagar did you use the maven profile idea? If so could you send a pull
> >> > request so that we can keep this for the future.
> >> >
> >> > I've never used the scufl2-api. I did find
> >> > https://taverna.incubator.apache.org/javadoc/taverna-
> >> language/org/apache/taverna/scufl2/api/core/Workflow.html#
> getInputPorts--
> >> > which has
> >> > https://taverna.incubator.apache.org/javadoc/taverna-
> >> language/org/apache/taverna/scufl2/api/common/Named.html#getName--
> >> > I remember from way back that the mime types were hidden inside an
> >> > annotation on the port. So maybe try
> >> > https://taverna.incubator.apache.org/javadoc/taverna-
> >> language/org/apache/taverna/scufl2/api/common/AbstractNamed.html#
> >> getAnnotations--
> >> > and have a look at what is there.
> >> >
> >> > Cheers,
> >> >
> >> > Ian
> >> >
> >> > On 15 September 2016 at 10:36, Sagar <ku...@gmail.com>
> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I have build taverna-scufl2-api as jar using java 7 .
> >> >>
> >> >> Can you tell me how to use it to get all input and output MIME type
> and
> >> >> their name?
> >> >>
> >> >>
> >> >> On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <
> stain@apache.org>
> >> >> wrote:
> >> >>
> >> >> > Thanks - from this I would say Taverna Mobile can target KitKat
> (API
> >> >> > level 19), get 80% share - which would rise by the time we release
> the
> >> >> > app.
> >> >> >
> >> >> > But that still grounds us on Java 6 features - and even in latest
> >> >> > Android SDK API the package java.nio.file is not there - so
> robundle
> >> >> > would not work anyway.
> >> >> >
> >> >> > On 8 September 2016 at 19:24, Gale Naylor <
> >> GaleN@noventussolutions.com>
> >> >> > wrote:
> >> >> > > Here is the distribution of Android API levels in use as of Aug
> 1:
> >> >> > > https://developer.android.com/about/dashboards/index.html
> >> >> > >
> >> >> > > According to this, only 15% of all Android devices are running
> API
> >> 23.
> >> >> > >
> >> >> > >
> >> >> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
> >> >> wrote:
> >> >> > >
> >> >> > >> Hello,
> >> >> > >>
> >> >> > >> That page is typically clear as mud! I think it is implying that
> >> jdk 7
> >> >> > is
> >> >> > >> fine for all API levels but for jdk 8 you need API 23 and (if
> >> special
> >> >> > >> language features required) a different compiler. So as long as
> we
> >> >> don't
> >> >> > >> use jdk 8 features we will be ok (maybe).  I guess that means
> >> >> > >> taverna-language can be used (until we go all lambda crazy).
> >> >> > >>
> >> >> > >> Cheers,
> >> >> > >>
> >> >> > >> Ian
> >> >> > >>
> >> >> > >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <
> >> stain@apache.org>
> >> >> > >> wrote:
> >> >> > >>
> >> >> > >> > I don't think we use any Java 8 features in taverna-language
> >> (e.g.
> >> >> > >> > Stream or lambdas) - but taverna-robundle use java.nio.Path
> from
> >> >> Java
> >> >> > >> > 7.  I think it should be possible to make a subset of
> >> >> Taverna-language
> >> >> > >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> >> >> > >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps
> >> as a
> >> >> > >> > Maven profile?
> >> >> > >> >
> >> >> > >> > https://developer.android.com/guide/platform/j8-jack.html
> says
> >> you
> >> >> > can
> >> >> > >> > use Java 7/8 features from API level 23-24.
> >> >> > >> >
> >> >> > >> > How do we decide which Android API level we want to support..?
> >> >> > >> >
> >> >> > >> > On 8 September 2016 at 10:56, Sagar <
> kumarsagar15795@gmail.com>
> >> >> > wrote:
> >> >> > >> > > Hi,
> >> >> > >> > >
> >> >> > >> > > I was reading the readme and I found Taverna-language-API
> will
> >> >> only
> >> >> > >> work
> >> >> > >> > > with JAVA 8 and newer.
> >> >> > >> > > We can't use in taverna-mobile because Android API 16 works
> >> with
> >> >> > JAVA
> >> >> > >> 6.
> >> >> > >> > >
> >> >> > >> > > So, Now provide me with the schema of the .t2flow file.
> >> >> > >> > >
> >> >> > >> > > Thanks
> >> >> > >> > >
> >> >> > >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <
> >> kumarsagar15795@gmail.com>
> >> >> > >> wrote:
> >> >> > >> > >
> >> >> > >> > >> Hi,
> >> >> > >> > >>
> >> >> > >> > >> How can I use the taverna-language API to know what will
> the
> >> >> inputs
> >> >> > >> and
> >> >> > >> > >> what will the outputs of workflow?
> >> >> > >> > >>
> >> >> > >> > >> I don't get any proper guide or code.
> >> >> > >> > >>
> >> >> > >> > >> Thanks
> >> >> > >> > >>
> >> >> > >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> >> >> > stain@apache.org
> >> >> > >> >
> >> >> > >> > >> wrote:
> >> >> > >> > >>
> >> >> > >> > >>> Yes, you should use taverna-language to load the .t2flow
> and
> >> >> > inspect
> >> >> > >> > it.
> >> >> > >> > >>>
> >> >> > >> > >>> You should not really need to make any Java beans for it
> as
> >> the
> >> >> > >> > >>> workflow wouldn't be constructed on the phone (although
> you
> >> >> could
> >> >> > do
> >> >> > >> > >>> that with the Taverna Language API), but loaded from
> >> $somewhere
> >> >> as
> >> >> > >> > >>> previously saved from the Taverna Workbench or downloaded
> >> from
> >> >> > >> > >>> myExperiment - however you can use the API to inspect the
> >> >> > workflow,
> >> >> > >> > >>> e.g. list the input port names of the main workflow.
> >> >> > >> > >>>
> >> >> > >> > >>>
> >> >> > >> > >>> See:
> >> >> > >> > >>>
> >> >> > >> > >>> https://taverna.incubator.apache.org/download/language/
> >> >> > >> > >>>
> >> >> > >> > >>> Javadoc:
> >> >> > >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-
> languag
> >> >> > >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> >> >> > >> > >>>
> >> >> > >> > >>> Example:
> >> >> > >> > >>> https://github.com/apache/incubator-taverna-language/
> blob/
> >> >> > >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> >> >> > >> > >>> taverna/examples/ProcessorNames.java
> >> >> > >> > >>>
> >> >> > >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <
> ianwdunlop@gmail.com
> >> >
> >> >> > wrote:
> >> >> > >> > >>> > Hello,
> >> >> > >> > >>> >
> >> >> > >> > >>> > There is an xsd for t2flow available in the
> >> taverna-language
> >> >> > module
> >> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/
> blob/
> >> >> > >> > >>> master/taverna-scufl2-t2flow/
> src/main/resources/org/apache/
> >> >> > >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> >> >> > >> > >>> > You should be able to re-use taverna-language to parse
> >> t2flow
> >> >> > >> rather
> >> >> > >> > >>> than
> >> >> > >> > >>> > build your own parser. Perhaps using
> >> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/
> tree/
> >> >> > >> > >>> master/taverna-scufl2-t2flow.
> >> >> > >> > >>> > No readme though. Maybe some other devs can advise how
> to
> >> use
> >> >> > it.
> >> >> > >> > >>> >
> >> >> > >> > >>> > Cheers,
> >> >> > >> > >>> >
> >> >> > >> > >>> > Ian
> >> >> > >> > >>> >
> >> >> > >> > >>> > On 28 August 2016 at 18:23, Sagar <
> >> kumarsagar15795@gmail.com>
> >> >> > >> wrote:
> >> >> > >> > >>> >
> >> >> > >> > >>> >> Hi,
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> Is there any predefined tree structure for t2flow xml
> >> file ?
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> if yes, then provide me so that I am able to create
> java
> >> >> beans
> >> >> > for
> >> >> > >> > it.
> >> >> > >> > >>> >> otherwise, I will create it according to any t2flow xml
> >> file.
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> Please revert ASAP.
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> Thanks
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> >> >> > >> > >>> finn.bacall@manchester.ac.uk
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> wrote:
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> > This wouldn't be that hard to implement, you can get
> the
> >> >> > unique
> >> >> > >> ID
> >> >> > >> > >>> for
> >> >> > >> > >>> >> the
> >> >> > >> > >>> >> > workflow from the parser gem, see:
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > https://github.com/myExperiment/workflow_parser-
> >> >> t2flow/blob/
> >> >> > >> > >>> >> > master/lib/t2flow/model.rb#L136
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > Then you'd just need to extract it in the parsing
> >> method:
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > https://github.com/myGrid/
> taverna-player-portal/blob/
> >> >> master/
> >> >> > >> > >>> >> > app/models/workflow.rb#L40
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > and store it in a new field in the database.
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > Cheers,
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > Finn
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >> >> Hello,
> >> >> > >> > >>> >> >>
> >> >> > >> > >>> >> >> I think you are pretty much spot on with your
> >> diagnosis. I
> >> >> > >> agree
> >> >> > >> > it
> >> >> > >> > >>> is a
> >> >> > >> > >>> >> >> bit of a pain that the workflow ids are different.
> >> >> However,
> >> >> > >> each
> >> >> > >> > >>> >> workflow
> >> >> > >> > >>> >> >> does have a unique uuid internally (with t2flow
> >> anyway) so
> >> >> > that
> >> >> > >> > >>> could be
> >> >> > >> > >>> >> >> used to check if a workflow on myexperiment and the
> >> portal
> >> >> > are
> >> >> > >> > the
> >> >> > >> > >>> same.
> >> >> > >> > >>> >> >> Look for the element <dataflow
> >> >> id="0f5e83c1-bbb5-42e7-9ba3-
> >> >> > >> > >>> >> 438f645d3d17"
> >> >> > >> > >>> >> >> role="top"> in a t2flow file. This probably means
> that
> >> the
> >> >> > >> portal
> >> >> > >> > >>> would
> >> >> > >> > >>> >> >> need an extension to search by workflow uuid. For
> now I
> >> >> > would
> >> >> > >> > just
> >> >> > >> > >>> treat
> >> >> > >> > >>> >> >> each run as having a unique workflow and we can
> always
> >> >> > improve
> >> >> > >> it
> >> >> > >> > >>> later.
> >> >> > >> > >>> >> >>
> >> >> > >> > >>> >> >> Cheers,
> >> >> > >> > >>> >> >>
> >> >> > >> > >>> >> >> Ian
> >> >> > >> > >>> >> >>
> >> >> > >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> >> >> > kumarsagar15795@gmail.com>
> >> >> > >> > >>> wrote:
> >> >> > >> > >>> >> >>
> >> >> > >> > >>> >> >> Hello,
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> Thank you for providing code. Now, I am working on
> it.
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> Currently, I have understood that I need following
> >> steps
> >> >> to
> >> >> > >> run
> >> >> > >> > a
> >> >> > >> > >>> >> >>> workflow
> >> >> > >> > >>> >> >>> on taverna player portal
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> 1) Download workflow content.
> >> >> > >> > >>> >> >>> 2) Upload it to taverna player portal.
> >> >> > >> > >>> >> >>> 3) Run it on taverna player portal.
> >> >> > >> > >>> >> >>> 4) Show output of the complete workflow's run.
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> I have also understood that there is no link
> between
> >> >> > >> > myExperiment
> >> >> > >> > >>> >> >>> workflow
> >> >> > >> > >>> >> >>> and Taverna Player workflow that's why I can't
> retain
> >> >> > >> > >>> myExperiment's
> >> >> > >> > >>> >> >>> workflow running history on Taverna player portal
> and
> >> >> also
> >> >> > I
> >> >> > >> > can't
> >> >> > >> > >>> >> search
> >> >> > >> > >>> >> >>> the same workflow in taverna player portal. For
> each
> >> new
> >> >> > run,
> >> >> > >> I
> >> >> > >> > >>> have to
> >> >> > >> > >>> >> >>> upload it again.
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> If I have understood correct then Please revert
> back .
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> If not then, Please correct me.
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> Thanks
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> >> >> > >> > ianwdunlop@gmail.com>
> >> >> > >> > >>> >> >>> wrote:
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> Hello,
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>> This is where the upload code is in the current
> >> mobile
> >> >> > code
> >> >> > >> > >>> >> >>>> https://github.com/apache/
> >> >> incubator-taverna-mobile/blob/
> >> >> > >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> >> >> > c1483cebff/app/src/main/java/
> >> >> > >> > >>> >> >>>> org/apache/taverna/mobile/
> fragments/workflowdetails/
> >> >> > >> > >>> >> >>>> WorkflowdetailFragment.java#L655
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>> Cheers,
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>> Ian
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> >> >> > ianwdunlop@gmail.com
> >> >> > >> >
> >> >> > >> > >>> wrote:
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>> Hello,
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>>> That upload code should already be available in
> the
> >> >> > mobile
> >> >> > >> > app.
> >> >> > >> > >>> >> Larry,
> >> >> > >> > >>> >> >>>>> myself and Finn spent a few hours figuring all
> that
> >> >> stuff
> >> >> > >> out
> >> >> > >> > >>> last
> >> >> > >> > >>> >> time
> >> >> > >> > >>> >> >>>>> round.
> >> >> > >> > >>> >> >>>>> I have added an API call in the
> >> taverna-player-portal
> >> >> to
> >> >> > get
> >> >> > >> > the
> >> >> > >> > >>> runs
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>> for
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in
> >> github
> >> >> > (hint
> >> >> > >> > hint
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>> Finn). I
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>>> even added some tests.
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>>> Cheers,
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>>> Ian
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> >> >> > >> > >>> >> finn.bacall@manchester.ac.uk>
> >> >> > >> > >>> >> >>>>> wrote:
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>> Hi,
> >> >> > >> > >>> >> >>>>>>>
> >> >> > >> > >>> >> >>>>>>> I think there is some problem as mention below
> >> >> > >> > >>> >> >>>>>>>
> >> >> > >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> >> >> > >> > >>> >> >>>>>>>
> >> >> > >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote
> to
> >> >> > upload a
> >> >> > >> > >>> workflow
> >> >> > >> > >>> >> to
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>> the
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>>> portal:
> >> >> > >> > >>> >> >>>>>> https://gist.github.com/larrytech7/
> >> >> 957cc61a3bdd82e3e030
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>> Basically the format is:
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>>      { "workflow" : { "document" :
> >> >> > "data:application/octet-
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>> stream;base64,<<<Insert
> >> >> > >> > >>> >> >>>>
> >> >> > >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>> Finn
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>>
> >> >> > >> > >>> >> >>>>>
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> --
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> *With warm regards  *
> >> >> > >> > >>> >> >>> *Sincerely yours*
> >> >> > >> > >>> >> >>> Sagar
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> >> >> > >> innovation*
> >> >> > >> > >>> >> >>> *Cluster Innovation Centre*
> >> >> > >> > >>> >> >>> *University of Delhi *
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >>>
> >> >> > >> > >>> >> >
> >> >> > >> > >>> >>
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> --
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> *With warm regards  *
> >> >> > >> > >>> >> *Sincerely yours*
> >> >> > >> > >>> >> Sagar
> >> >> > >> > >>> >>
> >> >> > >> > >>> >>
> >> >> > >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> >> >> innovation*
> >> >> > >> > >>> >> *Cluster Innovation Centre*
> >> >> > >> > >>> >> *University of Delhi *
> >> >> > >> > >>> >>
> >> >> > >> > >>>
> >> >> > >> > >>>
> >> >> > >> > >>>
> >> >> > >> > >>> --
> >> >> > >> > >>> Stian Soiland-Reyes
> >> >> > >> > >>> Apache Taverna (incubating), Apache Commons
> >> >> > >> > >>> http://orcid.org/0000-0001-9842-9718
> >> >> > >> > >>>
> >> >> > >> > >>
> >> >> > >> > >>
> >> >> > >> > >>
> >> >> > >> > >> --
> >> >> > >> > >>
> >> >> > >> > >> *With warm regards  *
> >> >> > >> > >> *Sincerely yours*
> >> >> > >> > >> Sagar
> >> >> > >> > >>
> >> >> > >> > >>
> >> >> > >> > >> *Student ,(7th Semester )B.Tech IT and mathematical
> >> innovation*
> >> >> > >> > >> *Cluster Innovation Centre*
> >> >> > >> > >> *University of Delhi *
> >> >> > >> > >>
> >> >> > >> > >>
> >> >> > >> > >
> >> >> > >> > >
> >> >> > >> > > --
> >> >> > >> > >
> >> >> > >> > > *With warm regards  *
> >> >> > >> > > *Sincerely yours*
> >> >> > >> > > Sagar
> >> >> > >> > >
> >> >> > >> > >
> >> >> > >> > > *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> >> >> > >> > > *Cluster Innovation Centre*
> >> >> > >> > > *University of Delhi *
> >> >> > >> >
> >> >> > >> >
> >> >> > >> >
> >> >> > >> > --
> >> >> > >> > Stian Soiland-Reyes
> >> >> > >> > http://orcid.org/0000-0001-9842-9718
> >> >> > >> >
> >> >> > >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Stian Soiland-Reyes
> >> >> > http://orcid.org/0000-0001-9842-9718
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >>
> >> >> *With warm regards  *
> >> >> *Sincerely yours*
> >> >> Sagar
> >> >>
> >> >>
> >> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> >> *Cluster Innovation Centre*
> >> >> *University of Delhi *
> >> >>
> >>
> >>
> >>
> >> --
> >> Stian Soiland-Reyes
> >> http://orcid.org/0000-0001-9842-9718
> >>
>
>
>
> --
> Stian Soiland-Reyes
> http://orcid.org/0000-0001-9842-9718
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
Great!

Note it does not build with Java 7 (using docker run -it maven:3-jdk-7):

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:jar
(attach-javadocs) on project taverna-baclava-language:
MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none

I think because the -Xdoclint option is not recognized.  However we
don't claim it would BUILD with Java 7 - so that's OK.

(it works with -Dmaven.javadoc.skip=true)


But I guess also then our dependencies then can't be Java 8 in the
Android profile.. for instance jena.version is set to 3.1.0 which
requires JDK 8:

root@fc2a5ed3ebd6:~/.m2/repository# file
org/apache/jena/web/DatasetGraphAccessorBasic.class
org/apache/jena/web/DatasetGraphAccessorBasic.class: compiled Java
class data, version 52.0





On 23 September 2016 at 13:00, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> taverna-language pom profile added for android. Another default profile had
> to be added as wel which you get if you do a normal mvn  installl.  For the
> Android Java7 profile use:
>
> mvn -P android clean install
>
> If we decide to use this in the app then maybe we should ban Java8+
> features from some of the modules
>
> Cheers,
>
> Ian
>
> On 15 September 2016 at 11:48, Stian Soiland-Reyes <st...@apache.org> wrote:
>
>> I think you won't get the annotation content for the mimetype without also
>> using
>> https://taverna.incubator.apache.org/javadoc/taverna-
>> language/org/apache/taverna/scufl2/annotation/AnnotationTools.html
>>
>> but that would add dependency on Jena, which latest versions require
>> Java 7 and I'm not sure if it works well on Android.
>>
>>
>> Perhaps using just the XSD mapping from taverna-scufl2-t2flow would be
>> a bit easier? You still need to trundle through the annotations which
>> in .t2flow were serialized in a perhaps awkward way (an annotation
>> chain which then contains a set of revisioned annotations).
>>
>>
>>
>> On 15 September 2016 at 11:29, Ian Dunlop <ia...@gmail.com> wrote:
>> > Hello,
>> >
>> > @sagar did you use the maven profile idea? If so could you send a pull
>> > request so that we can keep this for the future.
>> >
>> > I've never used the scufl2-api. I did find
>> > https://taverna.incubator.apache.org/javadoc/taverna-
>> language/org/apache/taverna/scufl2/api/core/Workflow.html#getInputPorts--
>> > which has
>> > https://taverna.incubator.apache.org/javadoc/taverna-
>> language/org/apache/taverna/scufl2/api/common/Named.html#getName--
>> > I remember from way back that the mime types were hidden inside an
>> > annotation on the port. So maybe try
>> > https://taverna.incubator.apache.org/javadoc/taverna-
>> language/org/apache/taverna/scufl2/api/common/AbstractNamed.html#
>> getAnnotations--
>> > and have a look at what is there.
>> >
>> > Cheers,
>> >
>> > Ian
>> >
>> > On 15 September 2016 at 10:36, Sagar <ku...@gmail.com> wrote:
>> >
>> >> Hi,
>> >>
>> >> I have build taverna-scufl2-api as jar using java 7 .
>> >>
>> >> Can you tell me how to use it to get all input and output MIME type and
>> >> their name?
>> >>
>> >>
>> >> On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <st...@apache.org>
>> >> wrote:
>> >>
>> >> > Thanks - from this I would say Taverna Mobile can target KitKat (API
>> >> > level 19), get 80% share - which would rise by the time we release the
>> >> > app.
>> >> >
>> >> > But that still grounds us on Java 6 features - and even in latest
>> >> > Android SDK API the package java.nio.file is not there - so robundle
>> >> > would not work anyway.
>> >> >
>> >> > On 8 September 2016 at 19:24, Gale Naylor <
>> GaleN@noventussolutions.com>
>> >> > wrote:
>> >> > > Here is the distribution of Android API levels in use as of Aug 1:
>> >> > > https://developer.android.com/about/dashboards/index.html
>> >> > >
>> >> > > According to this, only 15% of all Android devices are running API
>> 23.
>> >> > >
>> >> > >
>> >> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
>> >> wrote:
>> >> > >
>> >> > >> Hello,
>> >> > >>
>> >> > >> That page is typically clear as mud! I think it is implying that
>> jdk 7
>> >> > is
>> >> > >> fine for all API levels but for jdk 8 you need API 23 and (if
>> special
>> >> > >> language features required) a different compiler. So as long as we
>> >> don't
>> >> > >> use jdk 8 features we will be ok (maybe).  I guess that means
>> >> > >> taverna-language can be used (until we go all lambda crazy).
>> >> > >>
>> >> > >> Cheers,
>> >> > >>
>> >> > >> Ian
>> >> > >>
>> >> > >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <
>> stain@apache.org>
>> >> > >> wrote:
>> >> > >>
>> >> > >> > I don't think we use any Java 8 features in taverna-language
>> (e.g.
>> >> > >> > Stream or lambdas) - but taverna-robundle use java.nio.Path from
>> >> Java
>> >> > >> > 7.  I think it should be possible to make a subset of
>> >> Taverna-language
>> >> > >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
>> >> > >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps
>> as a
>> >> > >> > Maven profile?
>> >> > >> >
>> >> > >> > https://developer.android.com/guide/platform/j8-jack.html says
>> you
>> >> > can
>> >> > >> > use Java 7/8 features from API level 23-24.
>> >> > >> >
>> >> > >> > How do we decide which Android API level we want to support..?
>> >> > >> >
>> >> > >> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
>> >> > wrote:
>> >> > >> > > Hi,
>> >> > >> > >
>> >> > >> > > I was reading the readme and I found Taverna-language-API will
>> >> only
>> >> > >> work
>> >> > >> > > with JAVA 8 and newer.
>> >> > >> > > We can't use in taverna-mobile because Android API 16 works
>> with
>> >> > JAVA
>> >> > >> 6.
>> >> > >> > >
>> >> > >> > > So, Now provide me with the schema of the .t2flow file.
>> >> > >> > >
>> >> > >> > > Thanks
>> >> > >> > >
>> >> > >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <
>> kumarsagar15795@gmail.com>
>> >> > >> wrote:
>> >> > >> > >
>> >> > >> > >> Hi,
>> >> > >> > >>
>> >> > >> > >> How can I use the taverna-language API to know what will the
>> >> inputs
>> >> > >> and
>> >> > >> > >> what will the outputs of workflow?
>> >> > >> > >>
>> >> > >> > >> I don't get any proper guide or code.
>> >> > >> > >>
>> >> > >> > >> Thanks
>> >> > >> > >>
>> >> > >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
>> >> > stain@apache.org
>> >> > >> >
>> >> > >> > >> wrote:
>> >> > >> > >>
>> >> > >> > >>> Yes, you should use taverna-language to load the .t2flow and
>> >> > inspect
>> >> > >> > it.
>> >> > >> > >>>
>> >> > >> > >>> You should not really need to make any Java beans for it as
>> the
>> >> > >> > >>> workflow wouldn't be constructed on the phone (although you
>> >> could
>> >> > do
>> >> > >> > >>> that with the Taverna Language API), but loaded from
>> $somewhere
>> >> as
>> >> > >> > >>> previously saved from the Taverna Workbench or downloaded
>> from
>> >> > >> > >>> myExperiment - however you can use the API to inspect the
>> >> > workflow,
>> >> > >> > >>> e.g. list the input port names of the main workflow.
>> >> > >> > >>>
>> >> > >> > >>>
>> >> > >> > >>> See:
>> >> > >> > >>>
>> >> > >> > >>> https://taverna.incubator.apache.org/download/language/
>> >> > >> > >>>
>> >> > >> > >>> Javadoc:
>> >> > >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> >> > >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
>> >> > >> > >>>
>> >> > >> > >>> Example:
>> >> > >> > >>> https://github.com/apache/incubator-taverna-language/blob/
>> >> > >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> >> > >> > >>> taverna/examples/ProcessorNames.java
>> >> > >> > >>>
>> >> > >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ianwdunlop@gmail.com
>> >
>> >> > wrote:
>> >> > >> > >>> > Hello,
>> >> > >> > >>> >
>> >> > >> > >>> > There is an xsd for t2flow available in the
>> taverna-language
>> >> > module
>> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/blob/
>> >> > >> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> >> > >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> >> > >> > >>> > You should be able to re-use taverna-language to parse
>> t2flow
>> >> > >> rather
>> >> > >> > >>> than
>> >> > >> > >>> > build your own parser. Perhaps using
>> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/tree/
>> >> > >> > >>> master/taverna-scufl2-t2flow.
>> >> > >> > >>> > No readme though. Maybe some other devs can advise how to
>> use
>> >> > it.
>> >> > >> > >>> >
>> >> > >> > >>> > Cheers,
>> >> > >> > >>> >
>> >> > >> > >>> > Ian
>> >> > >> > >>> >
>> >> > >> > >>> > On 28 August 2016 at 18:23, Sagar <
>> kumarsagar15795@gmail.com>
>> >> > >> wrote:
>> >> > >> > >>> >
>> >> > >> > >>> >> Hi,
>> >> > >> > >>> >>
>> >> > >> > >>> >> Is there any predefined tree structure for t2flow xml
>> file ?
>> >> > >> > >>> >>
>> >> > >> > >>> >> if yes, then provide me so that I am able to create java
>> >> beans
>> >> > for
>> >> > >> > it.
>> >> > >> > >>> >> otherwise, I will create it according to any t2flow xml
>> file.
>> >> > >> > >>> >>
>> >> > >> > >>> >> Please revert ASAP.
>> >> > >> > >>> >>
>> >> > >> > >>> >> Thanks
>> >> > >> > >>> >>
>> >> > >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> >> > >> > >>> finn.bacall@manchester.ac.uk
>> >> > >> > >>> >> >
>> >> > >> > >>> >> wrote:
>> >> > >> > >>> >>
>> >> > >> > >>> >> > This wouldn't be that hard to implement, you can get the
>> >> > unique
>> >> > >> ID
>> >> > >> > >>> for
>> >> > >> > >>> >> the
>> >> > >> > >>> >> > workflow from the parser gem, see:
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > https://github.com/myExperiment/workflow_parser-
>> >> t2flow/blob/
>> >> > >> > >>> >> > master/lib/t2flow/model.rb#L136
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > Then you'd just need to extract it in the parsing
>> method:
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
>> >> master/
>> >> > >> > >>> >> > app/models/workflow.rb#L40
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > and store it in a new field in the database.
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > Cheers,
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > Finn
>> >> > >> > >>> >> >
>> >> > >> > >>> >> >
>> >> > >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> >> > >> > >>> >> >
>> >> > >> > >>> >> >> Hello,
>> >> > >> > >>> >> >>
>> >> > >> > >>> >> >> I think you are pretty much spot on with your
>> diagnosis. I
>> >> > >> agree
>> >> > >> > it
>> >> > >> > >>> is a
>> >> > >> > >>> >> >> bit of a pain that the workflow ids are different.
>> >> However,
>> >> > >> each
>> >> > >> > >>> >> workflow
>> >> > >> > >>> >> >> does have a unique uuid internally (with t2flow
>> anyway) so
>> >> > that
>> >> > >> > >>> could be
>> >> > >> > >>> >> >> used to check if a workflow on myexperiment and the
>> portal
>> >> > are
>> >> > >> > the
>> >> > >> > >>> same.
>> >> > >> > >>> >> >> Look for the element <dataflow
>> >> id="0f5e83c1-bbb5-42e7-9ba3-
>> >> > >> > >>> >> 438f645d3d17"
>> >> > >> > >>> >> >> role="top"> in a t2flow file. This probably means that
>> the
>> >> > >> portal
>> >> > >> > >>> would
>> >> > >> > >>> >> >> need an extension to search by workflow uuid. For now I
>> >> > would
>> >> > >> > just
>> >> > >> > >>> treat
>> >> > >> > >>> >> >> each run as having a unique workflow and we can always
>> >> > improve
>> >> > >> it
>> >> > >> > >>> later.
>> >> > >> > >>> >> >>
>> >> > >> > >>> >> >> Cheers,
>> >> > >> > >>> >> >>
>> >> > >> > >>> >> >> Ian
>> >> > >> > >>> >> >>
>> >> > >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
>> >> > kumarsagar15795@gmail.com>
>> >> > >> > >>> wrote:
>> >> > >> > >>> >> >>
>> >> > >> > >>> >> >> Hello,
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> Thank you for providing code. Now, I am working on it.
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> Currently, I have understood that I need following
>> steps
>> >> to
>> >> > >> run
>> >> > >> > a
>> >> > >> > >>> >> >>> workflow
>> >> > >> > >>> >> >>> on taverna player portal
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> 1) Download workflow content.
>> >> > >> > >>> >> >>> 2) Upload it to taverna player portal.
>> >> > >> > >>> >> >>> 3) Run it on taverna player portal.
>> >> > >> > >>> >> >>> 4) Show output of the complete workflow's run.
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> I have also understood that there is no link between
>> >> > >> > myExperiment
>> >> > >> > >>> >> >>> workflow
>> >> > >> > >>> >> >>> and Taverna Player workflow that's why I can't retain
>> >> > >> > >>> myExperiment's
>> >> > >> > >>> >> >>> workflow running history on Taverna player portal and
>> >> also
>> >> > I
>> >> > >> > can't
>> >> > >> > >>> >> search
>> >> > >> > >>> >> >>> the same workflow in taverna player portal. For each
>> new
>> >> > run,
>> >> > >> I
>> >> > >> > >>> have to
>> >> > >> > >>> >> >>> upload it again.
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> If I have understood correct then Please revert back .
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> If not then, Please correct me.
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> Thanks
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
>> >> > >> > ianwdunlop@gmail.com>
>> >> > >> > >>> >> >>> wrote:
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> Hello,
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>> This is where the upload code is in the current
>> mobile
>> >> > code
>> >> > >> > >>> >> >>>> https://github.com/apache/
>> >> incubator-taverna-mobile/blob/
>> >> > >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
>> >> > c1483cebff/app/src/main/java/
>> >> > >> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> >> > >> > >>> >> >>>> WorkflowdetailFragment.java#L655
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>> Cheers,
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>> Ian
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
>> >> > ianwdunlop@gmail.com
>> >> > >> >
>> >> > >> > >>> wrote:
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>> Hello,
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>>> That upload code should already be available in the
>> >> > mobile
>> >> > >> > app.
>> >> > >> > >>> >> Larry,
>> >> > >> > >>> >> >>>>> myself and Finn spent a few hours figuring all that
>> >> stuff
>> >> > >> out
>> >> > >> > >>> last
>> >> > >> > >>> >> time
>> >> > >> > >>> >> >>>>> round.
>> >> > >> > >>> >> >>>>> I have added an API call in the
>> taverna-player-portal
>> >> to
>> >> > get
>> >> > >> > the
>> >> > >> > >>> runs
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>> for
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in
>> github
>> >> > (hint
>> >> > >> > hint
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>> Finn). I
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>>> even added some tests.
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>>> Cheers,
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>>> Ian
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> >> > >> > >>> >> finn.bacall@manchester.ac.uk>
>> >> > >> > >>> >> >>>>> wrote:
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>> Hi,
>> >> > >> > >>> >> >>>>>>>
>> >> > >> > >>> >> >>>>>>> I think there is some problem as mention below
>> >> > >> > >>> >> >>>>>>>
>> >> > >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> >> > >> > >>> >> >>>>>>>
>> >> > >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
>> >> > upload a
>> >> > >> > >>> workflow
>> >> > >> > >>> >> to
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>> the
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>>> portal:
>> >> > >> > >>> >> >>>>>> https://gist.github.com/larrytech7/
>> >> 957cc61a3bdd82e3e030
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>> Basically the format is:
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>>      { "workflow" : { "document" :
>> >> > "data:application/octet-
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>> stream;base64,<<<Insert
>> >> > >> > >>> >> >>>>
>> >> > >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>> Finn
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>>
>> >> > >> > >>> >> >>>>>
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> --
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> *With warm regards  *
>> >> > >> > >>> >> >>> *Sincerely yours*
>> >> > >> > >>> >> >>> Sagar
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
>> >> > >> innovation*
>> >> > >> > >>> >> >>> *Cluster Innovation Centre*
>> >> > >> > >>> >> >>> *University of Delhi *
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >>>
>> >> > >> > >>> >> >
>> >> > >> > >>> >>
>> >> > >> > >>> >>
>> >> > >> > >>> >> --
>> >> > >> > >>> >>
>> >> > >> > >>> >> *With warm regards  *
>> >> > >> > >>> >> *Sincerely yours*
>> >> > >> > >>> >> Sagar
>> >> > >> > >>> >>
>> >> > >> > >>> >>
>> >> > >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
>> >> innovation*
>> >> > >> > >>> >> *Cluster Innovation Centre*
>> >> > >> > >>> >> *University of Delhi *
>> >> > >> > >>> >>
>> >> > >> > >>>
>> >> > >> > >>>
>> >> > >> > >>>
>> >> > >> > >>> --
>> >> > >> > >>> Stian Soiland-Reyes
>> >> > >> > >>> Apache Taverna (incubating), Apache Commons
>> >> > >> > >>> http://orcid.org/0000-0001-9842-9718
>> >> > >> > >>>
>> >> > >> > >>
>> >> > >> > >>
>> >> > >> > >>
>> >> > >> > >> --
>> >> > >> > >>
>> >> > >> > >> *With warm regards  *
>> >> > >> > >> *Sincerely yours*
>> >> > >> > >> Sagar
>> >> > >> > >>
>> >> > >> > >>
>> >> > >> > >> *Student ,(7th Semester )B.Tech IT and mathematical
>> innovation*
>> >> > >> > >> *Cluster Innovation Centre*
>> >> > >> > >> *University of Delhi *
>> >> > >> > >>
>> >> > >> > >>
>> >> > >> > >
>> >> > >> > >
>> >> > >> > > --
>> >> > >> > >
>> >> > >> > > *With warm regards  *
>> >> > >> > > *Sincerely yours*
>> >> > >> > > Sagar
>> >> > >> > >
>> >> > >> > >
>> >> > >> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> >> > >> > > *Cluster Innovation Centre*
>> >> > >> > > *University of Delhi *
>> >> > >> >
>> >> > >> >
>> >> > >> >
>> >> > >> > --
>> >> > >> > Stian Soiland-Reyes
>> >> > >> > http://orcid.org/0000-0001-9842-9718
>> >> > >> >
>> >> > >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Stian Soiland-Reyes
>> >> > http://orcid.org/0000-0001-9842-9718
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> *With warm regards  *
>> >> *Sincerely yours*
>> >> Sagar
>> >>
>> >>
>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> >> *Cluster Innovation Centre*
>> >> *University of Delhi *
>> >>
>>
>>
>>
>> --
>> Stian Soiland-Reyes
>> http://orcid.org/0000-0001-9842-9718
>>



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

taverna-language pom profile added for android. Another default profile had
to be added as wel which you get if you do a normal mvn  installl.  For the
Android Java7 profile use:

mvn -P android clean install

If we decide to use this in the app then maybe we should ban Java8+
features from some of the modules

Cheers,

Ian

On 15 September 2016 at 11:48, Stian Soiland-Reyes <st...@apache.org> wrote:

> I think you won't get the annotation content for the mimetype without also
> using
> https://taverna.incubator.apache.org/javadoc/taverna-
> language/org/apache/taverna/scufl2/annotation/AnnotationTools.html
>
> but that would add dependency on Jena, which latest versions require
> Java 7 and I'm not sure if it works well on Android.
>
>
> Perhaps using just the XSD mapping from taverna-scufl2-t2flow would be
> a bit easier? You still need to trundle through the annotations which
> in .t2flow were serialized in a perhaps awkward way (an annotation
> chain which then contains a set of revisioned annotations).
>
>
>
> On 15 September 2016 at 11:29, Ian Dunlop <ia...@gmail.com> wrote:
> > Hello,
> >
> > @sagar did you use the maven profile idea? If so could you send a pull
> > request so that we can keep this for the future.
> >
> > I've never used the scufl2-api. I did find
> > https://taverna.incubator.apache.org/javadoc/taverna-
> language/org/apache/taverna/scufl2/api/core/Workflow.html#getInputPorts--
> > which has
> > https://taverna.incubator.apache.org/javadoc/taverna-
> language/org/apache/taverna/scufl2/api/common/Named.html#getName--
> > I remember from way back that the mime types were hidden inside an
> > annotation on the port. So maybe try
> > https://taverna.incubator.apache.org/javadoc/taverna-
> language/org/apache/taverna/scufl2/api/common/AbstractNamed.html#
> getAnnotations--
> > and have a look at what is there.
> >
> > Cheers,
> >
> > Ian
> >
> > On 15 September 2016 at 10:36, Sagar <ku...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> I have build taverna-scufl2-api as jar using java 7 .
> >>
> >> Can you tell me how to use it to get all input and output MIME type and
> >> their name?
> >>
> >>
> >> On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <st...@apache.org>
> >> wrote:
> >>
> >> > Thanks - from this I would say Taverna Mobile can target KitKat (API
> >> > level 19), get 80% share - which would rise by the time we release the
> >> > app.
> >> >
> >> > But that still grounds us on Java 6 features - and even in latest
> >> > Android SDK API the package java.nio.file is not there - so robundle
> >> > would not work anyway.
> >> >
> >> > On 8 September 2016 at 19:24, Gale Naylor <
> GaleN@noventussolutions.com>
> >> > wrote:
> >> > > Here is the distribution of Android API levels in use as of Aug 1:
> >> > > https://developer.android.com/about/dashboards/index.html
> >> > >
> >> > > According to this, only 15% of all Android devices are running API
> 23.
> >> > >
> >> > >
> >> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
> >> wrote:
> >> > >
> >> > >> Hello,
> >> > >>
> >> > >> That page is typically clear as mud! I think it is implying that
> jdk 7
> >> > is
> >> > >> fine for all API levels but for jdk 8 you need API 23 and (if
> special
> >> > >> language features required) a different compiler. So as long as we
> >> don't
> >> > >> use jdk 8 features we will be ok (maybe).  I guess that means
> >> > >> taverna-language can be used (until we go all lambda crazy).
> >> > >>
> >> > >> Cheers,
> >> > >>
> >> > >> Ian
> >> > >>
> >> > >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <
> stain@apache.org>
> >> > >> wrote:
> >> > >>
> >> > >> > I don't think we use any Java 8 features in taverna-language
> (e.g.
> >> > >> > Stream or lambdas) - but taverna-robundle use java.nio.Path from
> >> Java
> >> > >> > 7.  I think it should be possible to make a subset of
> >> Taverna-language
> >> > >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> >> > >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps
> as a
> >> > >> > Maven profile?
> >> > >> >
> >> > >> > https://developer.android.com/guide/platform/j8-jack.html says
> you
> >> > can
> >> > >> > use Java 7/8 features from API level 23-24.
> >> > >> >
> >> > >> > How do we decide which Android API level we want to support..?
> >> > >> >
> >> > >> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> >> > wrote:
> >> > >> > > Hi,
> >> > >> > >
> >> > >> > > I was reading the readme and I found Taverna-language-API will
> >> only
> >> > >> work
> >> > >> > > with JAVA 8 and newer.
> >> > >> > > We can't use in taverna-mobile because Android API 16 works
> with
> >> > JAVA
> >> > >> 6.
> >> > >> > >
> >> > >> > > So, Now provide me with the schema of the .t2flow file.
> >> > >> > >
> >> > >> > > Thanks
> >> > >> > >
> >> > >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <
> kumarsagar15795@gmail.com>
> >> > >> wrote:
> >> > >> > >
> >> > >> > >> Hi,
> >> > >> > >>
> >> > >> > >> How can I use the taverna-language API to know what will the
> >> inputs
> >> > >> and
> >> > >> > >> what will the outputs of workflow?
> >> > >> > >>
> >> > >> > >> I don't get any proper guide or code.
> >> > >> > >>
> >> > >> > >> Thanks
> >> > >> > >>
> >> > >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> >> > stain@apache.org
> >> > >> >
> >> > >> > >> wrote:
> >> > >> > >>
> >> > >> > >>> Yes, you should use taverna-language to load the .t2flow and
> >> > inspect
> >> > >> > it.
> >> > >> > >>>
> >> > >> > >>> You should not really need to make any Java beans for it as
> the
> >> > >> > >>> workflow wouldn't be constructed on the phone (although you
> >> could
> >> > do
> >> > >> > >>> that with the Taverna Language API), but loaded from
> $somewhere
> >> as
> >> > >> > >>> previously saved from the Taverna Workbench or downloaded
> from
> >> > >> > >>> myExperiment - however you can use the API to inspect the
> >> > workflow,
> >> > >> > >>> e.g. list the input port names of the main workflow.
> >> > >> > >>>
> >> > >> > >>>
> >> > >> > >>> See:
> >> > >> > >>>
> >> > >> > >>> https://taverna.incubator.apache.org/download/language/
> >> > >> > >>>
> >> > >> > >>> Javadoc:
> >> > >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> >> > >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> >> > >> > >>>
> >> > >> > >>> Example:
> >> > >> > >>> https://github.com/apache/incubator-taverna-language/blob/
> >> > >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> >> > >> > >>> taverna/examples/ProcessorNames.java
> >> > >> > >>>
> >> > >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ianwdunlop@gmail.com
> >
> >> > wrote:
> >> > >> > >>> > Hello,
> >> > >> > >>> >
> >> > >> > >>> > There is an xsd for t2flow available in the
> taverna-language
> >> > module
> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/blob/
> >> > >> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> >> > >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> >> > >> > >>> > You should be able to re-use taverna-language to parse
> t2flow
> >> > >> rather
> >> > >> > >>> than
> >> > >> > >>> > build your own parser. Perhaps using
> >> > >> > >>> > https://github.com/apache/incubator-taverna-language/tree/
> >> > >> > >>> master/taverna-scufl2-t2flow.
> >> > >> > >>> > No readme though. Maybe some other devs can advise how to
> use
> >> > it.
> >> > >> > >>> >
> >> > >> > >>> > Cheers,
> >> > >> > >>> >
> >> > >> > >>> > Ian
> >> > >> > >>> >
> >> > >> > >>> > On 28 August 2016 at 18:23, Sagar <
> kumarsagar15795@gmail.com>
> >> > >> wrote:
> >> > >> > >>> >
> >> > >> > >>> >> Hi,
> >> > >> > >>> >>
> >> > >> > >>> >> Is there any predefined tree structure for t2flow xml
> file ?
> >> > >> > >>> >>
> >> > >> > >>> >> if yes, then provide me so that I am able to create java
> >> beans
> >> > for
> >> > >> > it.
> >> > >> > >>> >> otherwise, I will create it according to any t2flow xml
> file.
> >> > >> > >>> >>
> >> > >> > >>> >> Please revert ASAP.
> >> > >> > >>> >>
> >> > >> > >>> >> Thanks
> >> > >> > >>> >>
> >> > >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> >> > >> > >>> finn.bacall@manchester.ac.uk
> >> > >> > >>> >> >
> >> > >> > >>> >> wrote:
> >> > >> > >>> >>
> >> > >> > >>> >> > This wouldn't be that hard to implement, you can get the
> >> > unique
> >> > >> ID
> >> > >> > >>> for
> >> > >> > >>> >> the
> >> > >> > >>> >> > workflow from the parser gem, see:
> >> > >> > >>> >> >
> >> > >> > >>> >> > https://github.com/myExperiment/workflow_parser-
> >> t2flow/blob/
> >> > >> > >>> >> > master/lib/t2flow/model.rb#L136
> >> > >> > >>> >> >
> >> > >> > >>> >> > Then you'd just need to extract it in the parsing
> method:
> >> > >> > >>> >> >
> >> > >> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
> >> master/
> >> > >> > >>> >> > app/models/workflow.rb#L40
> >> > >> > >>> >> >
> >> > >> > >>> >> > and store it in a new field in the database.
> >> > >> > >>> >> >
> >> > >> > >>> >> > Cheers,
> >> > >> > >>> >> >
> >> > >> > >>> >> > Finn
> >> > >> > >>> >> >
> >> > >> > >>> >> >
> >> > >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >> > >> > >>> >> >
> >> > >> > >>> >> >> Hello,
> >> > >> > >>> >> >>
> >> > >> > >>> >> >> I think you are pretty much spot on with your
> diagnosis. I
> >> > >> agree
> >> > >> > it
> >> > >> > >>> is a
> >> > >> > >>> >> >> bit of a pain that the workflow ids are different.
> >> However,
> >> > >> each
> >> > >> > >>> >> workflow
> >> > >> > >>> >> >> does have a unique uuid internally (with t2flow
> anyway) so
> >> > that
> >> > >> > >>> could be
> >> > >> > >>> >> >> used to check if a workflow on myexperiment and the
> portal
> >> > are
> >> > >> > the
> >> > >> > >>> same.
> >> > >> > >>> >> >> Look for the element <dataflow
> >> id="0f5e83c1-bbb5-42e7-9ba3-
> >> > >> > >>> >> 438f645d3d17"
> >> > >> > >>> >> >> role="top"> in a t2flow file. This probably means that
> the
> >> > >> portal
> >> > >> > >>> would
> >> > >> > >>> >> >> need an extension to search by workflow uuid. For now I
> >> > would
> >> > >> > just
> >> > >> > >>> treat
> >> > >> > >>> >> >> each run as having a unique workflow and we can always
> >> > improve
> >> > >> it
> >> > >> > >>> later.
> >> > >> > >>> >> >>
> >> > >> > >>> >> >> Cheers,
> >> > >> > >>> >> >>
> >> > >> > >>> >> >> Ian
> >> > >> > >>> >> >>
> >> > >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> >> > kumarsagar15795@gmail.com>
> >> > >> > >>> wrote:
> >> > >> > >>> >> >>
> >> > >> > >>> >> >> Hello,
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> Thank you for providing code. Now, I am working on it.
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> Currently, I have understood that I need following
> steps
> >> to
> >> > >> run
> >> > >> > a
> >> > >> > >>> >> >>> workflow
> >> > >> > >>> >> >>> on taverna player portal
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> 1) Download workflow content.
> >> > >> > >>> >> >>> 2) Upload it to taverna player portal.
> >> > >> > >>> >> >>> 3) Run it on taverna player portal.
> >> > >> > >>> >> >>> 4) Show output of the complete workflow's run.
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> I have also understood that there is no link between
> >> > >> > myExperiment
> >> > >> > >>> >> >>> workflow
> >> > >> > >>> >> >>> and Taverna Player workflow that's why I can't retain
> >> > >> > >>> myExperiment's
> >> > >> > >>> >> >>> workflow running history on Taverna player portal and
> >> also
> >> > I
> >> > >> > can't
> >> > >> > >>> >> search
> >> > >> > >>> >> >>> the same workflow in taverna player portal. For each
> new
> >> > run,
> >> > >> I
> >> > >> > >>> have to
> >> > >> > >>> >> >>> upload it again.
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> If I have understood correct then Please revert back .
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> If not then, Please correct me.
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> Thanks
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> >> > >> > ianwdunlop@gmail.com>
> >> > >> > >>> >> >>> wrote:
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> Hello,
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>> This is where the upload code is in the current
> mobile
> >> > code
> >> > >> > >>> >> >>>> https://github.com/apache/
> >> incubator-taverna-mobile/blob/
> >> > >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> >> > c1483cebff/app/src/main/java/
> >> > >> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> >> > >> > >>> >> >>>> WorkflowdetailFragment.java#L655
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>> Cheers,
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>> Ian
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> >> > ianwdunlop@gmail.com
> >> > >> >
> >> > >> > >>> wrote:
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>> Hello,
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>>> That upload code should already be available in the
> >> > mobile
> >> > >> > app.
> >> > >> > >>> >> Larry,
> >> > >> > >>> >> >>>>> myself and Finn spent a few hours figuring all that
> >> stuff
> >> > >> out
> >> > >> > >>> last
> >> > >> > >>> >> time
> >> > >> > >>> >> >>>>> round.
> >> > >> > >>> >> >>>>> I have added an API call in the
> taverna-player-portal
> >> to
> >> > get
> >> > >> > the
> >> > >> > >>> runs
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>> for
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in
> github
> >> > (hint
> >> > >> > hint
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>> Finn). I
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>>> even added some tests.
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>>> Cheers,
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>>> Ian
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> >> > >> > >>> >> finn.bacall@manchester.ac.uk>
> >> > >> > >>> >> >>>>> wrote:
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>> Hi,
> >> > >> > >>> >> >>>>>>>
> >> > >> > >>> >> >>>>>>> I think there is some problem as mention below
> >> > >> > >>> >> >>>>>>>
> >> > >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> >> > >> > >>> >> >>>>>>>
> >> > >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> >> > upload a
> >> > >> > >>> workflow
> >> > >> > >>> >> to
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>> the
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>>> portal:
> >> > >> > >>> >> >>>>>> https://gist.github.com/larrytech7/
> >> 957cc61a3bdd82e3e030
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>> Basically the format is:
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>>      { "workflow" : { "document" :
> >> > "data:application/octet-
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>> stream;base64,<<<Insert
> >> > >> > >>> >> >>>>
> >> > >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>> Finn
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>>
> >> > >> > >>> >> >>>>>
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> --
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> *With warm regards  *
> >> > >> > >>> >> >>> *Sincerely yours*
> >> > >> > >>> >> >>> Sagar
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> >> > >> innovation*
> >> > >> > >>> >> >>> *Cluster Innovation Centre*
> >> > >> > >>> >> >>> *University of Delhi *
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >>>
> >> > >> > >>> >> >
> >> > >> > >>> >>
> >> > >> > >>> >>
> >> > >> > >>> >> --
> >> > >> > >>> >>
> >> > >> > >>> >> *With warm regards  *
> >> > >> > >>> >> *Sincerely yours*
> >> > >> > >>> >> Sagar
> >> > >> > >>> >>
> >> > >> > >>> >>
> >> > >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> >> innovation*
> >> > >> > >>> >> *Cluster Innovation Centre*
> >> > >> > >>> >> *University of Delhi *
> >> > >> > >>> >>
> >> > >> > >>>
> >> > >> > >>>
> >> > >> > >>>
> >> > >> > >>> --
> >> > >> > >>> Stian Soiland-Reyes
> >> > >> > >>> Apache Taverna (incubating), Apache Commons
> >> > >> > >>> http://orcid.org/0000-0001-9842-9718
> >> > >> > >>>
> >> > >> > >>
> >> > >> > >>
> >> > >> > >>
> >> > >> > >> --
> >> > >> > >>
> >> > >> > >> *With warm regards  *
> >> > >> > >> *Sincerely yours*
> >> > >> > >> Sagar
> >> > >> > >>
> >> > >> > >>
> >> > >> > >> *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> >> > >> > >> *Cluster Innovation Centre*
> >> > >> > >> *University of Delhi *
> >> > >> > >>
> >> > >> > >>
> >> > >> > >
> >> > >> > >
> >> > >> > > --
> >> > >> > >
> >> > >> > > *With warm regards  *
> >> > >> > > *Sincerely yours*
> >> > >> > > Sagar
> >> > >> > >
> >> > >> > >
> >> > >> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> > >> > > *Cluster Innovation Centre*
> >> > >> > > *University of Delhi *
> >> > >> >
> >> > >> >
> >> > >> >
> >> > >> > --
> >> > >> > Stian Soiland-Reyes
> >> > >> > http://orcid.org/0000-0001-9842-9718
> >> > >> >
> >> > >>
> >> >
> >> >
> >> >
> >> > --
> >> > Stian Soiland-Reyes
> >> > http://orcid.org/0000-0001-9842-9718
> >> >
> >>
> >>
> >>
> >> --
> >>
> >> *With warm regards  *
> >> *Sincerely yours*
> >> Sagar
> >>
> >>
> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> *Cluster Innovation Centre*
> >> *University of Delhi *
> >>
>
>
>
> --
> Stian Soiland-Reyes
> http://orcid.org/0000-0001-9842-9718
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
I think you won't get the annotation content for the mimetype without also using
https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/annotation/AnnotationTools.html

but that would add dependency on Jena, which latest versions require
Java 7 and I'm not sure if it works well on Android.


Perhaps using just the XSD mapping from taverna-scufl2-t2flow would be
a bit easier? You still need to trundle through the annotations which
in .t2flow were serialized in a perhaps awkward way (an annotation
chain which then contains a set of revisioned annotations).



On 15 September 2016 at 11:29, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> @sagar did you use the maven profile idea? If so could you send a pull
> request so that we can keep this for the future.
>
> I've never used the scufl2-api. I did find
> https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/core/Workflow.html#getInputPorts--
> which has
> https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/common/Named.html#getName--
> I remember from way back that the mime types were hidden inside an
> annotation on the port. So maybe try
> https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/common/AbstractNamed.html#getAnnotations--
> and have a look at what is there.
>
> Cheers,
>
> Ian
>
> On 15 September 2016 at 10:36, Sagar <ku...@gmail.com> wrote:
>
>> Hi,
>>
>> I have build taverna-scufl2-api as jar using java 7 .
>>
>> Can you tell me how to use it to get all input and output MIME type and
>> their name?
>>
>>
>> On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <st...@apache.org>
>> wrote:
>>
>> > Thanks - from this I would say Taverna Mobile can target KitKat (API
>> > level 19), get 80% share - which would rise by the time we release the
>> > app.
>> >
>> > But that still grounds us on Java 6 features - and even in latest
>> > Android SDK API the package java.nio.file is not there - so robundle
>> > would not work anyway.
>> >
>> > On 8 September 2016 at 19:24, Gale Naylor <Ga...@noventussolutions.com>
>> > wrote:
>> > > Here is the distribution of Android API levels in use as of Aug 1:
>> > > https://developer.android.com/about/dashboards/index.html
>> > >
>> > > According to this, only 15% of all Android devices are running API 23.
>> > >
>> > >
>> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
>> wrote:
>> > >
>> > >> Hello,
>> > >>
>> > >> That page is typically clear as mud! I think it is implying that jdk 7
>> > is
>> > >> fine for all API levels but for jdk 8 you need API 23 and (if special
>> > >> language features required) a different compiler. So as long as we
>> don't
>> > >> use jdk 8 features we will be ok (maybe).  I guess that means
>> > >> taverna-language can be used (until we go all lambda crazy).
>> > >>
>> > >> Cheers,
>> > >>
>> > >> Ian
>> > >>
>> > >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
>> > >> wrote:
>> > >>
>> > >> > I don't think we use any Java 8 features in taverna-language (e.g.
>> > >> > Stream or lambdas) - but taverna-robundle use java.nio.Path from
>> Java
>> > >> > 7.  I think it should be possible to make a subset of
>> Taverna-language
>> > >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
>> > >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
>> > >> > Maven profile?
>> > >> >
>> > >> > https://developer.android.com/guide/platform/j8-jack.html says you
>> > can
>> > >> > use Java 7/8 features from API level 23-24.
>> > >> >
>> > >> > How do we decide which Android API level we want to support..?
>> > >> >
>> > >> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
>> > wrote:
>> > >> > > Hi,
>> > >> > >
>> > >> > > I was reading the readme and I found Taverna-language-API will
>> only
>> > >> work
>> > >> > > with JAVA 8 and newer.
>> > >> > > We can't use in taverna-mobile because Android API 16 works with
>> > JAVA
>> > >> 6.
>> > >> > >
>> > >> > > So, Now provide me with the schema of the .t2flow file.
>> > >> > >
>> > >> > > Thanks
>> > >> > >
>> > >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
>> > >> wrote:
>> > >> > >
>> > >> > >> Hi,
>> > >> > >>
>> > >> > >> How can I use the taverna-language API to know what will the
>> inputs
>> > >> and
>> > >> > >> what will the outputs of workflow?
>> > >> > >>
>> > >> > >> I don't get any proper guide or code.
>> > >> > >>
>> > >> > >> Thanks
>> > >> > >>
>> > >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
>> > stain@apache.org
>> > >> >
>> > >> > >> wrote:
>> > >> > >>
>> > >> > >>> Yes, you should use taverna-language to load the .t2flow and
>> > inspect
>> > >> > it.
>> > >> > >>>
>> > >> > >>> You should not really need to make any Java beans for it as the
>> > >> > >>> workflow wouldn't be constructed on the phone (although you
>> could
>> > do
>> > >> > >>> that with the Taverna Language API), but loaded from $somewhere
>> as
>> > >> > >>> previously saved from the Taverna Workbench or downloaded from
>> > >> > >>> myExperiment - however you can use the API to inspect the
>> > workflow,
>> > >> > >>> e.g. list the input port names of the main workflow.
>> > >> > >>>
>> > >> > >>>
>> > >> > >>> See:
>> > >> > >>>
>> > >> > >>> https://taverna.incubator.apache.org/download/language/
>> > >> > >>>
>> > >> > >>> Javadoc:
>> > >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> > >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
>> > >> > >>>
>> > >> > >>> Example:
>> > >> > >>> https://github.com/apache/incubator-taverna-language/blob/
>> > >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> > >> > >>> taverna/examples/ProcessorNames.java
>> > >> > >>>
>> > >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
>> > wrote:
>> > >> > >>> > Hello,
>> > >> > >>> >
>> > >> > >>> > There is an xsd for t2flow available in the taverna-language
>> > module
>> > >> > >>> > https://github.com/apache/incubator-taverna-language/blob/
>> > >> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> > >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> > >> > >>> > You should be able to re-use taverna-language to parse t2flow
>> > >> rather
>> > >> > >>> than
>> > >> > >>> > build your own parser. Perhaps using
>> > >> > >>> > https://github.com/apache/incubator-taverna-language/tree/
>> > >> > >>> master/taverna-scufl2-t2flow.
>> > >> > >>> > No readme though. Maybe some other devs can advise how to use
>> > it.
>> > >> > >>> >
>> > >> > >>> > Cheers,
>> > >> > >>> >
>> > >> > >>> > Ian
>> > >> > >>> >
>> > >> > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
>> > >> wrote:
>> > >> > >>> >
>> > >> > >>> >> Hi,
>> > >> > >>> >>
>> > >> > >>> >> Is there any predefined tree structure for t2flow xml file ?
>> > >> > >>> >>
>> > >> > >>> >> if yes, then provide me so that I am able to create java
>> beans
>> > for
>> > >> > it.
>> > >> > >>> >> otherwise, I will create it according to any t2flow xml file.
>> > >> > >>> >>
>> > >> > >>> >> Please revert ASAP.
>> > >> > >>> >>
>> > >> > >>> >> Thanks
>> > >> > >>> >>
>> > >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> > >> > >>> finn.bacall@manchester.ac.uk
>> > >> > >>> >> >
>> > >> > >>> >> wrote:
>> > >> > >>> >>
>> > >> > >>> >> > This wouldn't be that hard to implement, you can get the
>> > unique
>> > >> ID
>> > >> > >>> for
>> > >> > >>> >> the
>> > >> > >>> >> > workflow from the parser gem, see:
>> > >> > >>> >> >
>> > >> > >>> >> > https://github.com/myExperiment/workflow_parser-
>> t2flow/blob/
>> > >> > >>> >> > master/lib/t2flow/model.rb#L136
>> > >> > >>> >> >
>> > >> > >>> >> > Then you'd just need to extract it in the parsing method:
>> > >> > >>> >> >
>> > >> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
>> master/
>> > >> > >>> >> > app/models/workflow.rb#L40
>> > >> > >>> >> >
>> > >> > >>> >> > and store it in a new field in the database.
>> > >> > >>> >> >
>> > >> > >>> >> > Cheers,
>> > >> > >>> >> >
>> > >> > >>> >> > Finn
>> > >> > >>> >> >
>> > >> > >>> >> >
>> > >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> > >> > >>> >> >
>> > >> > >>> >> >> Hello,
>> > >> > >>> >> >>
>> > >> > >>> >> >> I think you are pretty much spot on with your diagnosis. I
>> > >> agree
>> > >> > it
>> > >> > >>> is a
>> > >> > >>> >> >> bit of a pain that the workflow ids are different.
>> However,
>> > >> each
>> > >> > >>> >> workflow
>> > >> > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
>> > that
>> > >> > >>> could be
>> > >> > >>> >> >> used to check if a workflow on myexperiment and the portal
>> > are
>> > >> > the
>> > >> > >>> same.
>> > >> > >>> >> >> Look for the element <dataflow
>> id="0f5e83c1-bbb5-42e7-9ba3-
>> > >> > >>> >> 438f645d3d17"
>> > >> > >>> >> >> role="top"> in a t2flow file. This probably means that the
>> > >> portal
>> > >> > >>> would
>> > >> > >>> >> >> need an extension to search by workflow uuid. For now I
>> > would
>> > >> > just
>> > >> > >>> treat
>> > >> > >>> >> >> each run as having a unique workflow and we can always
>> > improve
>> > >> it
>> > >> > >>> later.
>> > >> > >>> >> >>
>> > >> > >>> >> >> Cheers,
>> > >> > >>> >> >>
>> > >> > >>> >> >> Ian
>> > >> > >>> >> >>
>> > >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
>> > kumarsagar15795@gmail.com>
>> > >> > >>> wrote:
>> > >> > >>> >> >>
>> > >> > >>> >> >> Hello,
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> Thank you for providing code. Now, I am working on it.
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> Currently, I have understood that I need following steps
>> to
>> > >> run
>> > >> > a
>> > >> > >>> >> >>> workflow
>> > >> > >>> >> >>> on taverna player portal
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> 1) Download workflow content.
>> > >> > >>> >> >>> 2) Upload it to taverna player portal.
>> > >> > >>> >> >>> 3) Run it on taverna player portal.
>> > >> > >>> >> >>> 4) Show output of the complete workflow's run.
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> I have also understood that there is no link between
>> > >> > myExperiment
>> > >> > >>> >> >>> workflow
>> > >> > >>> >> >>> and Taverna Player workflow that's why I can't retain
>> > >> > >>> myExperiment's
>> > >> > >>> >> >>> workflow running history on Taverna player portal and
>> also
>> > I
>> > >> > can't
>> > >> > >>> >> search
>> > >> > >>> >> >>> the same workflow in taverna player portal. For each new
>> > run,
>> > >> I
>> > >> > >>> have to
>> > >> > >>> >> >>> upload it again.
>> > >> > >>> >> >>>
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> If I have understood correct then Please revert back .
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> If not then, Please correct me.
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> Thanks
>> > >> > >>> >> >>>
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
>> > >> > ianwdunlop@gmail.com>
>> > >> > >>> >> >>> wrote:
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> Hello,
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>> This is where the upload code is in the current mobile
>> > code
>> > >> > >>> >> >>>> https://github.com/apache/
>> incubator-taverna-mobile/blob/
>> > >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
>> > c1483cebff/app/src/main/java/
>> > >> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> > >> > >>> >> >>>> WorkflowdetailFragment.java#L655
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>> Cheers,
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>> Ian
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
>> > ianwdunlop@gmail.com
>> > >> >
>> > >> > >>> wrote:
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>> Hello,
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>>> That upload code should already be available in the
>> > mobile
>> > >> > app.
>> > >> > >>> >> Larry,
>> > >> > >>> >> >>>>> myself and Finn spent a few hours figuring all that
>> stuff
>> > >> out
>> > >> > >>> last
>> > >> > >>> >> time
>> > >> > >>> >> >>>>> round.
>> > >> > >>> >> >>>>> I have added an API call in the taverna-player-portal
>> to
>> > get
>> > >> > the
>> > >> > >>> runs
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>> for
>> > >> > >>> >> >>>
>> > >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
>> > (hint
>> > >> > hint
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>> Finn). I
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>>> even added some tests.
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>>> Cheers,
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>>> Ian
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> > >> > >>> >> finn.bacall@manchester.ac.uk>
>> > >> > >>> >> >>>>> wrote:
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>> Hi,
>> > >> > >>> >> >>>>>>>
>> > >> > >>> >> >>>>>>> I think there is some problem as mention below
>> > >> > >>> >> >>>>>>>
>> > >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> > >> > >>> >> >>>>>>>
>> > >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
>> > upload a
>> > >> > >>> workflow
>> > >> > >>> >> to
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>> the
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>>> portal:
>> > >> > >>> >> >>>>>> https://gist.github.com/larrytech7/
>> 957cc61a3bdd82e3e030
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>> Basically the format is:
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>>      { "workflow" : { "document" :
>> > "data:application/octet-
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>> stream;base64,<<<Insert
>> > >> > >>> >> >>>>
>> > >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>> Finn
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>>
>> > >> > >>> >> >>>>>
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> --
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> *With warm regards  *
>> > >> > >>> >> >>> *Sincerely yours*
>> > >> > >>> >> >>> Sagar
>> > >> > >>> >> >>>
>> > >> > >>> >> >>>
>> > >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
>> > >> innovation*
>> > >> > >>> >> >>> *Cluster Innovation Centre*
>> > >> > >>> >> >>> *University of Delhi *
>> > >> > >>> >> >>>
>> > >> > >>> >> >>>
>> > >> > >>> >> >
>> > >> > >>> >>
>> > >> > >>> >>
>> > >> > >>> >> --
>> > >> > >>> >>
>> > >> > >>> >> *With warm regards  *
>> > >> > >>> >> *Sincerely yours*
>> > >> > >>> >> Sagar
>> > >> > >>> >>
>> > >> > >>> >>
>> > >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
>> innovation*
>> > >> > >>> >> *Cluster Innovation Centre*
>> > >> > >>> >> *University of Delhi *
>> > >> > >>> >>
>> > >> > >>>
>> > >> > >>>
>> > >> > >>>
>> > >> > >>> --
>> > >> > >>> Stian Soiland-Reyes
>> > >> > >>> Apache Taverna (incubating), Apache Commons
>> > >> > >>> http://orcid.org/0000-0001-9842-9718
>> > >> > >>>
>> > >> > >>
>> > >> > >>
>> > >> > >>
>> > >> > >> --
>> > >> > >>
>> > >> > >> *With warm regards  *
>> > >> > >> *Sincerely yours*
>> > >> > >> Sagar
>> > >> > >>
>> > >> > >>
>> > >> > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > >> > >> *Cluster Innovation Centre*
>> > >> > >> *University of Delhi *
>> > >> > >>
>> > >> > >>
>> > >> > >
>> > >> > >
>> > >> > > --
>> > >> > >
>> > >> > > *With warm regards  *
>> > >> > > *Sincerely yours*
>> > >> > > Sagar
>> > >> > >
>> > >> > >
>> > >> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > >> > > *Cluster Innovation Centre*
>> > >> > > *University of Delhi *
>> > >> >
>> > >> >
>> > >> >
>> > >> > --
>> > >> > Stian Soiland-Reyes
>> > >> > http://orcid.org/0000-0001-9842-9718
>> > >> >
>> > >>
>> >
>> >
>> >
>> > --
>> > Stian Soiland-Reyes
>> > http://orcid.org/0000-0001-9842-9718
>> >
>>
>>
>>
>> --
>>
>> *With warm regards  *
>> *Sincerely yours*
>> Sagar
>>
>>
>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> *Cluster Innovation Centre*
>> *University of Delhi *
>>



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

@sagar did you use the maven profile idea? If so could you send a pull
request so that we can keep this for the future.

I've never used the scufl2-api. I did find
https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/core/Workflow.html#getInputPorts--
which has
https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/common/Named.html#getName--
I remember from way back that the mime types were hidden inside an
annotation on the port. So maybe try
https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/common/AbstractNamed.html#getAnnotations--
and have a look at what is there.

Cheers,

Ian

On 15 September 2016 at 10:36, Sagar <ku...@gmail.com> wrote:

> Hi,
>
> I have build taverna-scufl2-api as jar using java 7 .
>
> Can you tell me how to use it to get all input and output MIME type and
> their name?
>
>
> On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <st...@apache.org>
> wrote:
>
> > Thanks - from this I would say Taverna Mobile can target KitKat (API
> > level 19), get 80% share - which would rise by the time we release the
> > app.
> >
> > But that still grounds us on Java 6 features - and even in latest
> > Android SDK API the package java.nio.file is not there - so robundle
> > would not work anyway.
> >
> > On 8 September 2016 at 19:24, Gale Naylor <Ga...@noventussolutions.com>
> > wrote:
> > > Here is the distribution of Android API levels in use as of Aug 1:
> > > https://developer.android.com/about/dashboards/index.html
> > >
> > > According to this, only 15% of all Android devices are running API 23.
> > >
> > >
> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
> wrote:
> > >
> > >> Hello,
> > >>
> > >> That page is typically clear as mud! I think it is implying that jdk 7
> > is
> > >> fine for all API levels but for jdk 8 you need API 23 and (if special
> > >> language features required) a different compiler. So as long as we
> don't
> > >> use jdk 8 features we will be ok (maybe).  I guess that means
> > >> taverna-language can be used (until we go all lambda crazy).
> > >>
> > >> Cheers,
> > >>
> > >> Ian
> > >>
> > >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> > >> wrote:
> > >>
> > >> > I don't think we use any Java 8 features in taverna-language (e.g.
> > >> > Stream or lambdas) - but taverna-robundle use java.nio.Path from
> Java
> > >> > 7.  I think it should be possible to make a subset of
> Taverna-language
> > >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> > >> > Maven profile?
> > >> >
> > >> > https://developer.android.com/guide/platform/j8-jack.html says you
> > can
> > >> > use Java 7/8 features from API level 23-24.
> > >> >
> > >> > How do we decide which Android API level we want to support..?
> > >> >
> > >> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> > wrote:
> > >> > > Hi,
> > >> > >
> > >> > > I was reading the readme and I found Taverna-language-API will
> only
> > >> work
> > >> > > with JAVA 8 and newer.
> > >> > > We can't use in taverna-mobile because Android API 16 works with
> > JAVA
> > >> 6.
> > >> > >
> > >> > > So, Now provide me with the schema of the .t2flow file.
> > >> > >
> > >> > > Thanks
> > >> > >
> > >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
> > >> wrote:
> > >> > >
> > >> > >> Hi,
> > >> > >>
> > >> > >> How can I use the taverna-language API to know what will the
> inputs
> > >> and
> > >> > >> what will the outputs of workflow?
> > >> > >>
> > >> > >> I don't get any proper guide or code.
> > >> > >>
> > >> > >> Thanks
> > >> > >>
> > >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> > stain@apache.org
> > >> >
> > >> > >> wrote:
> > >> > >>
> > >> > >>> Yes, you should use taverna-language to load the .t2flow and
> > inspect
> > >> > it.
> > >> > >>>
> > >> > >>> You should not really need to make any Java beans for it as the
> > >> > >>> workflow wouldn't be constructed on the phone (although you
> could
> > do
> > >> > >>> that with the Taverna Language API), but loaded from $somewhere
> as
> > >> > >>> previously saved from the Taverna Workbench or downloaded from
> > >> > >>> myExperiment - however you can use the API to inspect the
> > workflow,
> > >> > >>> e.g. list the input port names of the main workflow.
> > >> > >>>
> > >> > >>>
> > >> > >>> See:
> > >> > >>>
> > >> > >>> https://taverna.incubator.apache.org/download/language/
> > >> > >>>
> > >> > >>> Javadoc:
> > >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > >> > >>>
> > >> > >>> Example:
> > >> > >>> https://github.com/apache/incubator-taverna-language/blob/
> > >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > >> > >>> taverna/examples/ProcessorNames.java
> > >> > >>>
> > >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
> > wrote:
> > >> > >>> > Hello,
> > >> > >>> >
> > >> > >>> > There is an xsd for t2flow available in the taverna-language
> > module
> > >> > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > >> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > >> > >>> > You should be able to re-use taverna-language to parse t2flow
> > >> rather
> > >> > >>> than
> > >> > >>> > build your own parser. Perhaps using
> > >> > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > >> > >>> master/taverna-scufl2-t2flow.
> > >> > >>> > No readme though. Maybe some other devs can advise how to use
> > it.
> > >> > >>> >
> > >> > >>> > Cheers,
> > >> > >>> >
> > >> > >>> > Ian
> > >> > >>> >
> > >> > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
> > >> wrote:
> > >> > >>> >
> > >> > >>> >> Hi,
> > >> > >>> >>
> > >> > >>> >> Is there any predefined tree structure for t2flow xml file ?
> > >> > >>> >>
> > >> > >>> >> if yes, then provide me so that I am able to create java
> beans
> > for
> > >> > it.
> > >> > >>> >> otherwise, I will create it according to any t2flow xml file.
> > >> > >>> >>
> > >> > >>> >> Please revert ASAP.
> > >> > >>> >>
> > >> > >>> >> Thanks
> > >> > >>> >>
> > >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > >> > >>> finn.bacall@manchester.ac.uk
> > >> > >>> >> >
> > >> > >>> >> wrote:
> > >> > >>> >>
> > >> > >>> >> > This wouldn't be that hard to implement, you can get the
> > unique
> > >> ID
> > >> > >>> for
> > >> > >>> >> the
> > >> > >>> >> > workflow from the parser gem, see:
> > >> > >>> >> >
> > >> > >>> >> > https://github.com/myExperiment/workflow_parser-
> t2flow/blob/
> > >> > >>> >> > master/lib/t2flow/model.rb#L136
> > >> > >>> >> >
> > >> > >>> >> > Then you'd just need to extract it in the parsing method:
> > >> > >>> >> >
> > >> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
> master/
> > >> > >>> >> > app/models/workflow.rb#L40
> > >> > >>> >> >
> > >> > >>> >> > and store it in a new field in the database.
> > >> > >>> >> >
> > >> > >>> >> > Cheers,
> > >> > >>> >> >
> > >> > >>> >> > Finn
> > >> > >>> >> >
> > >> > >>> >> >
> > >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > >> > >>> >> >
> > >> > >>> >> >> Hello,
> > >> > >>> >> >>
> > >> > >>> >> >> I think you are pretty much spot on with your diagnosis. I
> > >> agree
> > >> > it
> > >> > >>> is a
> > >> > >>> >> >> bit of a pain that the workflow ids are different.
> However,
> > >> each
> > >> > >>> >> workflow
> > >> > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
> > that
> > >> > >>> could be
> > >> > >>> >> >> used to check if a workflow on myexperiment and the portal
> > are
> > >> > the
> > >> > >>> same.
> > >> > >>> >> >> Look for the element <dataflow
> id="0f5e83c1-bbb5-42e7-9ba3-
> > >> > >>> >> 438f645d3d17"
> > >> > >>> >> >> role="top"> in a t2flow file. This probably means that the
> > >> portal
> > >> > >>> would
> > >> > >>> >> >> need an extension to search by workflow uuid. For now I
> > would
> > >> > just
> > >> > >>> treat
> > >> > >>> >> >> each run as having a unique workflow and we can always
> > improve
> > >> it
> > >> > >>> later.
> > >> > >>> >> >>
> > >> > >>> >> >> Cheers,
> > >> > >>> >> >>
> > >> > >>> >> >> Ian
> > >> > >>> >> >>
> > >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> > kumarsagar15795@gmail.com>
> > >> > >>> wrote:
> > >> > >>> >> >>
> > >> > >>> >> >> Hello,
> > >> > >>> >> >>>
> > >> > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > >> > >>> >> >>>
> > >> > >>> >> >>> Currently, I have understood that I need following steps
> to
> > >> run
> > >> > a
> > >> > >>> >> >>> workflow
> > >> > >>> >> >>> on taverna player portal
> > >> > >>> >> >>>
> > >> > >>> >> >>> 1) Download workflow content.
> > >> > >>> >> >>> 2) Upload it to taverna player portal.
> > >> > >>> >> >>> 3) Run it on taverna player portal.
> > >> > >>> >> >>> 4) Show output of the complete workflow's run.
> > >> > >>> >> >>>
> > >> > >>> >> >>> I have also understood that there is no link between
> > >> > myExperiment
> > >> > >>> >> >>> workflow
> > >> > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > >> > >>> myExperiment's
> > >> > >>> >> >>> workflow running history on Taverna player portal and
> also
> > I
> > >> > can't
> > >> > >>> >> search
> > >> > >>> >> >>> the same workflow in taverna player portal. For each new
> > run,
> > >> I
> > >> > >>> have to
> > >> > >>> >> >>> upload it again.
> > >> > >>> >> >>>
> > >> > >>> >> >>>
> > >> > >>> >> >>> If I have understood correct then Please revert back .
> > >> > >>> >> >>>
> > >> > >>> >> >>> If not then, Please correct me.
> > >> > >>> >> >>>
> > >> > >>> >> >>> Thanks
> > >> > >>> >> >>>
> > >> > >>> >> >>>
> > >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > >> > ianwdunlop@gmail.com>
> > >> > >>> >> >>> wrote:
> > >> > >>> >> >>>
> > >> > >>> >> >>> Hello,
> > >> > >>> >> >>>>
> > >> > >>> >> >>>> This is where the upload code is in the current mobile
> > code
> > >> > >>> >> >>>> https://github.com/apache/
> incubator-taverna-mobile/blob/
> > >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> > c1483cebff/app/src/main/java/
> > >> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > >> > >>> >> >>>> WorkflowdetailFragment.java#L655
> > >> > >>> >> >>>>
> > >> > >>> >> >>>> Cheers,
> > >> > >>> >> >>>>
> > >> > >>> >> >>>> Ian
> > >> > >>> >> >>>>
> > >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> > ianwdunlop@gmail.com
> > >> >
> > >> > >>> wrote:
> > >> > >>> >> >>>>
> > >> > >>> >> >>>> Hello,
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>>> That upload code should already be available in the
> > mobile
> > >> > app.
> > >> > >>> >> Larry,
> > >> > >>> >> >>>>> myself and Finn spent a few hours figuring all that
> stuff
> > >> out
> > >> > >>> last
> > >> > >>> >> time
> > >> > >>> >> >>>>> round.
> > >> > >>> >> >>>>> I have added an API call in the taverna-player-portal
> to
> > get
> > >> > the
> > >> > >>> runs
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>> for
> > >> > >>> >> >>>
> > >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
> > (hint
> > >> > hint
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>> Finn). I
> > >> > >>> >> >>>>
> > >> > >>> >> >>>>> even added some tests.
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>>> Cheers,
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>>> Ian
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > >> > >>> >> finn.bacall@manchester.ac.uk>
> > >> > >>> >> >>>>> wrote:
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>> Hi,
> > >> > >>> >> >>>>>>>
> > >> > >>> >> >>>>>>> I think there is some problem as mention below
> > >> > >>> >> >>>>>>>
> > >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > >> > >>> >> >>>>>>>
> > >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> > upload a
> > >> > >>> workflow
> > >> > >>> >> to
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>> the
> > >> > >>> >> >>>>
> > >> > >>> >> >>>>> portal:
> > >> > >>> >> >>>>>> https://gist.github.com/larrytech7/
> 957cc61a3bdd82e3e030
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>> Basically the format is:
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>>      { "workflow" : { "document" :
> > "data:application/octet-
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>> stream;base64,<<<Insert
> > >> > >>> >> >>>>
> > >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>> Finn
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>>
> > >> > >>> >> >>>>>
> > >> > >>> >> >>>
> > >> > >>> >> >>> --
> > >> > >>> >> >>>
> > >> > >>> >> >>> *With warm regards  *
> > >> > >>> >> >>> *Sincerely yours*
> > >> > >>> >> >>> Sagar
> > >> > >>> >> >>>
> > >> > >>> >> >>>
> > >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> > >> innovation*
> > >> > >>> >> >>> *Cluster Innovation Centre*
> > >> > >>> >> >>> *University of Delhi *
> > >> > >>> >> >>>
> > >> > >>> >> >>>
> > >> > >>> >> >
> > >> > >>> >>
> > >> > >>> >>
> > >> > >>> >> --
> > >> > >>> >>
> > >> > >>> >> *With warm regards  *
> > >> > >>> >> *Sincerely yours*
> > >> > >>> >> Sagar
> > >> > >>> >>
> > >> > >>> >>
> > >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> > >> > >>> >> *Cluster Innovation Centre*
> > >> > >>> >> *University of Delhi *
> > >> > >>> >>
> > >> > >>>
> > >> > >>>
> > >> > >>>
> > >> > >>> --
> > >> > >>> Stian Soiland-Reyes
> > >> > >>> Apache Taverna (incubating), Apache Commons
> > >> > >>> http://orcid.org/0000-0001-9842-9718
> > >> > >>>
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >> --
> > >> > >>
> > >> > >> *With warm regards  *
> > >> > >> *Sincerely yours*
> > >> > >> Sagar
> > >> > >>
> > >> > >>
> > >> > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > >> > >> *Cluster Innovation Centre*
> > >> > >> *University of Delhi *
> > >> > >>
> > >> > >>
> > >> > >
> > >> > >
> > >> > > --
> > >> > >
> > >> > > *With warm regards  *
> > >> > > *Sincerely yours*
> > >> > > Sagar
> > >> > >
> > >> > >
> > >> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > >> > > *Cluster Innovation Centre*
> > >> > > *University of Delhi *
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Stian Soiland-Reyes
> > >> > http://orcid.org/0000-0001-9842-9718
> > >> >
> > >>
> >
> >
> >
> > --
> > Stian Soiland-Reyes
> > http://orcid.org/0000-0001-9842-9718
> >
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

I have build taverna-scufl2-api as jar using java 7 .

Can you tell me how to use it to get all input and output MIME type and
their name?


On Mon, Sep 12, 2016 at 6:05 PM, Stian Soiland-Reyes <st...@apache.org>
wrote:

> Thanks - from this I would say Taverna Mobile can target KitKat (API
> level 19), get 80% share - which would rise by the time we release the
> app.
>
> But that still grounds us on Java 6 features - and even in latest
> Android SDK API the package java.nio.file is not there - so robundle
> would not work anyway.
>
> On 8 September 2016 at 19:24, Gale Naylor <Ga...@noventussolutions.com>
> wrote:
> > Here is the distribution of Android API levels in use as of Aug 1:
> > https://developer.android.com/about/dashboards/index.html
> >
> > According to this, only 15% of all Android devices are running API 23.
> >
> >
> > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:
> >
> >> Hello,
> >>
> >> That page is typically clear as mud! I think it is implying that jdk 7
> is
> >> fine for all API levels but for jdk 8 you need API 23 and (if special
> >> language features required) a different compiler. So as long as we don't
> >> use jdk 8 features we will be ok (maybe).  I guess that means
> >> taverna-language can be used (until we go all lambda crazy).
> >>
> >> Cheers,
> >>
> >> Ian
> >>
> >> On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> >> wrote:
> >>
> >> > I don't think we use any Java 8 features in taverna-language (e.g.
> >> > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
> >> > 7.  I think it should be possible to make a subset of Taverna-language
> >> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> >> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> >> > Maven profile?
> >> >
> >> > https://developer.android.com/guide/platform/j8-jack.html says you
> can
> >> > use Java 7/8 features from API level 23-24.
> >> >
> >> > How do we decide which Android API level we want to support..?
> >> >
> >> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> wrote:
> >> > > Hi,
> >> > >
> >> > > I was reading the readme and I found Taverna-language-API will only
> >> work
> >> > > with JAVA 8 and newer.
> >> > > We can't use in taverna-mobile because Android API 16 works with
> JAVA
> >> 6.
> >> > >
> >> > > So, Now provide me with the schema of the .t2flow file.
> >> > >
> >> > > Thanks
> >> > >
> >> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
> >> wrote:
> >> > >
> >> > >> Hi,
> >> > >>
> >> > >> How can I use the taverna-language API to know what will the inputs
> >> and
> >> > >> what will the outputs of workflow?
> >> > >>
> >> > >> I don't get any proper guide or code.
> >> > >>
> >> > >> Thanks
> >> > >>
> >> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> stain@apache.org
> >> >
> >> > >> wrote:
> >> > >>
> >> > >>> Yes, you should use taverna-language to load the .t2flow and
> inspect
> >> > it.
> >> > >>>
> >> > >>> You should not really need to make any Java beans for it as the
> >> > >>> workflow wouldn't be constructed on the phone (although you could
> do
> >> > >>> that with the Taverna Language API), but loaded from $somewhere as
> >> > >>> previously saved from the Taverna Workbench or downloaded from
> >> > >>> myExperiment - however you can use the API to inspect the
> workflow,
> >> > >>> e.g. list the input port names of the main workflow.
> >> > >>>
> >> > >>>
> >> > >>> See:
> >> > >>>
> >> > >>> https://taverna.incubator.apache.org/download/language/
> >> > >>>
> >> > >>> Javadoc:
> >> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> >> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> >> > >>>
> >> > >>> Example:
> >> > >>> https://github.com/apache/incubator-taverna-language/blob/
> >> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> >> > >>> taverna/examples/ProcessorNames.java
> >> > >>>
> >> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
> wrote:
> >> > >>> > Hello,
> >> > >>> >
> >> > >>> > There is an xsd for t2flow available in the taverna-language
> module
> >> > >>> > https://github.com/apache/incubator-taverna-language/blob/
> >> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> >> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> >> > >>> > You should be able to re-use taverna-language to parse t2flow
> >> rather
> >> > >>> than
> >> > >>> > build your own parser. Perhaps using
> >> > >>> > https://github.com/apache/incubator-taverna-language/tree/
> >> > >>> master/taverna-scufl2-t2flow.
> >> > >>> > No readme though. Maybe some other devs can advise how to use
> it.
> >> > >>> >
> >> > >>> > Cheers,
> >> > >>> >
> >> > >>> > Ian
> >> > >>> >
> >> > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
> >> wrote:
> >> > >>> >
> >> > >>> >> Hi,
> >> > >>> >>
> >> > >>> >> Is there any predefined tree structure for t2flow xml file ?
> >> > >>> >>
> >> > >>> >> if yes, then provide me so that I am able to create java beans
> for
> >> > it.
> >> > >>> >> otherwise, I will create it according to any t2flow xml file.
> >> > >>> >>
> >> > >>> >> Please revert ASAP.
> >> > >>> >>
> >> > >>> >> Thanks
> >> > >>> >>
> >> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> >> > >>> finn.bacall@manchester.ac.uk
> >> > >>> >> >
> >> > >>> >> wrote:
> >> > >>> >>
> >> > >>> >> > This wouldn't be that hard to implement, you can get the
> unique
> >> ID
> >> > >>> for
> >> > >>> >> the
> >> > >>> >> > workflow from the parser gem, see:
> >> > >>> >> >
> >> > >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> >> > >>> >> > master/lib/t2flow/model.rb#L136
> >> > >>> >> >
> >> > >>> >> > Then you'd just need to extract it in the parsing method:
> >> > >>> >> >
> >> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
> >> > >>> >> > app/models/workflow.rb#L40
> >> > >>> >> >
> >> > >>> >> > and store it in a new field in the database.
> >> > >>> >> >
> >> > >>> >> > Cheers,
> >> > >>> >> >
> >> > >>> >> > Finn
> >> > >>> >> >
> >> > >>> >> >
> >> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >> > >>> >> >
> >> > >>> >> >> Hello,
> >> > >>> >> >>
> >> > >>> >> >> I think you are pretty much spot on with your diagnosis. I
> >> agree
> >> > it
> >> > >>> is a
> >> > >>> >> >> bit of a pain that the workflow ids are different. However,
> >> each
> >> > >>> >> workflow
> >> > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
> that
> >> > >>> could be
> >> > >>> >> >> used to check if a workflow on myexperiment and the portal
> are
> >> > the
> >> > >>> same.
> >> > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> >> > >>> >> 438f645d3d17"
> >> > >>> >> >> role="top"> in a t2flow file. This probably means that the
> >> portal
> >> > >>> would
> >> > >>> >> >> need an extension to search by workflow uuid. For now I
> would
> >> > just
> >> > >>> treat
> >> > >>> >> >> each run as having a unique workflow and we can always
> improve
> >> it
> >> > >>> later.
> >> > >>> >> >>
> >> > >>> >> >> Cheers,
> >> > >>> >> >>
> >> > >>> >> >> Ian
> >> > >>> >> >>
> >> > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> kumarsagar15795@gmail.com>
> >> > >>> wrote:
> >> > >>> >> >>
> >> > >>> >> >> Hello,
> >> > >>> >> >>>
> >> > >>> >> >>> Thank you for providing code. Now, I am working on it.
> >> > >>> >> >>>
> >> > >>> >> >>> Currently, I have understood that I need following steps to
> >> run
> >> > a
> >> > >>> >> >>> workflow
> >> > >>> >> >>> on taverna player portal
> >> > >>> >> >>>
> >> > >>> >> >>> 1) Download workflow content.
> >> > >>> >> >>> 2) Upload it to taverna player portal.
> >> > >>> >> >>> 3) Run it on taverna player portal.
> >> > >>> >> >>> 4) Show output of the complete workflow's run.
> >> > >>> >> >>>
> >> > >>> >> >>> I have also understood that there is no link between
> >> > myExperiment
> >> > >>> >> >>> workflow
> >> > >>> >> >>> and Taverna Player workflow that's why I can't retain
> >> > >>> myExperiment's
> >> > >>> >> >>> workflow running history on Taverna player portal and also
> I
> >> > can't
> >> > >>> >> search
> >> > >>> >> >>> the same workflow in taverna player portal. For each new
> run,
> >> I
> >> > >>> have to
> >> > >>> >> >>> upload it again.
> >> > >>> >> >>>
> >> > >>> >> >>>
> >> > >>> >> >>> If I have understood correct then Please revert back .
> >> > >>> >> >>>
> >> > >>> >> >>> If not then, Please correct me.
> >> > >>> >> >>>
> >> > >>> >> >>> Thanks
> >> > >>> >> >>>
> >> > >>> >> >>>
> >> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> >> > ianwdunlop@gmail.com>
> >> > >>> >> >>> wrote:
> >> > >>> >> >>>
> >> > >>> >> >>> Hello,
> >> > >>> >> >>>>
> >> > >>> >> >>>> This is where the upload code is in the current mobile
> code
> >> > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> >> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> c1483cebff/app/src/main/java/
> >> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> >> > >>> >> >>>> WorkflowdetailFragment.java#L655
> >> > >>> >> >>>>
> >> > >>> >> >>>> Cheers,
> >> > >>> >> >>>>
> >> > >>> >> >>>> Ian
> >> > >>> >> >>>>
> >> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> ianwdunlop@gmail.com
> >> >
> >> > >>> wrote:
> >> > >>> >> >>>>
> >> > >>> >> >>>> Hello,
> >> > >>> >> >>>>>
> >> > >>> >> >>>>> That upload code should already be available in the
> mobile
> >> > app.
> >> > >>> >> Larry,
> >> > >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff
> >> out
> >> > >>> last
> >> > >>> >> time
> >> > >>> >> >>>>> round.
> >> > >>> >> >>>>> I have added an API call in the taverna-player-portal to
> get
> >> > the
> >> > >>> runs
> >> > >>> >> >>>>>
> >> > >>> >> >>>> for
> >> > >>> >> >>>
> >> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
> (hint
> >> > hint
> >> > >>> >> >>>>>
> >> > >>> >> >>>> Finn). I
> >> > >>> >> >>>>
> >> > >>> >> >>>>> even added some tests.
> >> > >>> >> >>>>>
> >> > >>> >> >>>>> Cheers,
> >> > >>> >> >>>>>
> >> > >>> >> >>>>> Ian
> >> > >>> >> >>>>>
> >> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> >> > >>> >> finn.bacall@manchester.ac.uk>
> >> > >>> >> >>>>> wrote:
> >> > >>> >> >>>>>
> >> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>> Hi,
> >> > >>> >> >>>>>>>
> >> > >>> >> >>>>>>> I think there is some problem as mention below
> >> > >>> >> >>>>>>>
> >> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> >> > >>> >> >>>>>>>
> >> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> upload a
> >> > >>> workflow
> >> > >>> >> to
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>> the
> >> > >>> >> >>>>
> >> > >>> >> >>>>> portal:
> >> > >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>> Basically the format is:
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>>      { "workflow" : { "document" :
> "data:application/octet-
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>> stream;base64,<<<Insert
> >> > >>> >> >>>>
> >> > >>> >> >>>>> base64 encoded workflow here>>>" } }
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>> Finn
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>>
> >> > >>> >> >>>>>
> >> > >>> >> >>>
> >> > >>> >> >>> --
> >> > >>> >> >>>
> >> > >>> >> >>> *With warm regards  *
> >> > >>> >> >>> *Sincerely yours*
> >> > >>> >> >>> Sagar
> >> > >>> >> >>>
> >> > >>> >> >>>
> >> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> >> innovation*
> >> > >>> >> >>> *Cluster Innovation Centre*
> >> > >>> >> >>> *University of Delhi *
> >> > >>> >> >>>
> >> > >>> >> >>>
> >> > >>> >> >
> >> > >>> >>
> >> > >>> >>
> >> > >>> >> --
> >> > >>> >>
> >> > >>> >> *With warm regards  *
> >> > >>> >> *Sincerely yours*
> >> > >>> >> Sagar
> >> > >>> >>
> >> > >>> >>
> >> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> > >>> >> *Cluster Innovation Centre*
> >> > >>> >> *University of Delhi *
> >> > >>> >>
> >> > >>>
> >> > >>>
> >> > >>>
> >> > >>> --
> >> > >>> Stian Soiland-Reyes
> >> > >>> Apache Taverna (incubating), Apache Commons
> >> > >>> http://orcid.org/0000-0001-9842-9718
> >> > >>>
> >> > >>
> >> > >>
> >> > >>
> >> > >> --
> >> > >>
> >> > >> *With warm regards  *
> >> > >> *Sincerely yours*
> >> > >> Sagar
> >> > >>
> >> > >>
> >> > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> > >> *Cluster Innovation Centre*
> >> > >> *University of Delhi *
> >> > >>
> >> > >>
> >> > >
> >> > >
> >> > > --
> >> > >
> >> > > *With warm regards  *
> >> > > *Sincerely yours*
> >> > > Sagar
> >> > >
> >> > >
> >> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> > > *Cluster Innovation Centre*
> >> > > *University of Delhi *
> >> >
> >> >
> >> >
> >> > --
> >> > Stian Soiland-Reyes
> >> > http://orcid.org/0000-0001-9842-9718
> >> >
> >>
>
>
>
> --
> Stian Soiland-Reyes
> http://orcid.org/0000-0001-9842-9718
>



-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
Thanks - from this I would say Taverna Mobile can target KitKat (API
level 19), get 80% share - which would rise by the time we release the
app.

But that still grounds us on Java 6 features - and even in latest
Android SDK API the package java.nio.file is not there - so robundle
would not work anyway.

On 8 September 2016 at 19:24, Gale Naylor <Ga...@noventussolutions.com> wrote:
> Here is the distribution of Android API levels in use as of Aug 1:
> https://developer.android.com/about/dashboards/index.html
>
> According to this, only 15% of all Android devices are running API 23.
>
>
> On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:
>
>> Hello,
>>
>> That page is typically clear as mud! I think it is implying that jdk 7 is
>> fine for all API levels but for jdk 8 you need API 23 and (if special
>> language features required) a different compiler. So as long as we don't
>> use jdk 8 features we will be ok (maybe).  I guess that means
>> taverna-language can be used (until we go all lambda crazy).
>>
>> Cheers,
>>
>> Ian
>>
>> On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
>> wrote:
>>
>> > I don't think we use any Java 8 features in taverna-language (e.g.
>> > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
>> > 7.  I think it should be possible to make a subset of Taverna-language
>> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
>> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
>> > Maven profile?
>> >
>> > https://developer.android.com/guide/platform/j8-jack.html says you can
>> > use Java 7/8 features from API level 23-24.
>> >
>> > How do we decide which Android API level we want to support..?
>> >
>> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
>> > > Hi,
>> > >
>> > > I was reading the readme and I found Taverna-language-API will only
>> work
>> > > with JAVA 8 and newer.
>> > > We can't use in taverna-mobile because Android API 16 works with JAVA
>> 6.
>> > >
>> > > So, Now provide me with the schema of the .t2flow file.
>> > >
>> > > Thanks
>> > >
>> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
>> wrote:
>> > >
>> > >> Hi,
>> > >>
>> > >> How can I use the taverna-language API to know what will the inputs
>> and
>> > >> what will the outputs of workflow?
>> > >>
>> > >> I don't get any proper guide or code.
>> > >>
>> > >> Thanks
>> > >>
>> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <stain@apache.org
>> >
>> > >> wrote:
>> > >>
>> > >>> Yes, you should use taverna-language to load the .t2flow and inspect
>> > it.
>> > >>>
>> > >>> You should not really need to make any Java beans for it as the
>> > >>> workflow wouldn't be constructed on the phone (although you could do
>> > >>> that with the Taverna Language API), but loaded from $somewhere as
>> > >>> previously saved from the Taverna Workbench or downloaded from
>> > >>> myExperiment - however you can use the API to inspect the workflow,
>> > >>> e.g. list the input port names of the main workflow.
>> > >>>
>> > >>>
>> > >>> See:
>> > >>>
>> > >>> https://taverna.incubator.apache.org/download/language/
>> > >>>
>> > >>> Javadoc:
>> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
>> > >>>
>> > >>> Example:
>> > >>> https://github.com/apache/incubator-taverna-language/blob/
>> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> > >>> taverna/examples/ProcessorNames.java
>> > >>>
>> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
>> > >>> > Hello,
>> > >>> >
>> > >>> > There is an xsd for t2flow available in the taverna-language module
>> > >>> > https://github.com/apache/incubator-taverna-language/blob/
>> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> > >>> > You should be able to re-use taverna-language to parse t2flow
>> rather
>> > >>> than
>> > >>> > build your own parser. Perhaps using
>> > >>> > https://github.com/apache/incubator-taverna-language/tree/
>> > >>> master/taverna-scufl2-t2flow.
>> > >>> > No readme though. Maybe some other devs can advise how to use it.
>> > >>> >
>> > >>> > Cheers,
>> > >>> >
>> > >>> > Ian
>> > >>> >
>> > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
>> wrote:
>> > >>> >
>> > >>> >> Hi,
>> > >>> >>
>> > >>> >> Is there any predefined tree structure for t2flow xml file ?
>> > >>> >>
>> > >>> >> if yes, then provide me so that I am able to create java beans for
>> > it.
>> > >>> >> otherwise, I will create it according to any t2flow xml file.
>> > >>> >>
>> > >>> >> Please revert ASAP.
>> > >>> >>
>> > >>> >> Thanks
>> > >>> >>
>> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> > >>> finn.bacall@manchester.ac.uk
>> > >>> >> >
>> > >>> >> wrote:
>> > >>> >>
>> > >>> >> > This wouldn't be that hard to implement, you can get the unique
>> ID
>> > >>> for
>> > >>> >> the
>> > >>> >> > workflow from the parser gem, see:
>> > >>> >> >
>> > >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
>> > >>> >> > master/lib/t2flow/model.rb#L136
>> > >>> >> >
>> > >>> >> > Then you'd just need to extract it in the parsing method:
>> > >>> >> >
>> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
>> > >>> >> > app/models/workflow.rb#L40
>> > >>> >> >
>> > >>> >> > and store it in a new field in the database.
>> > >>> >> >
>> > >>> >> > Cheers,
>> > >>> >> >
>> > >>> >> > Finn
>> > >>> >> >
>> > >>> >> >
>> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> > >>> >> >
>> > >>> >> >> Hello,
>> > >>> >> >>
>> > >>> >> >> I think you are pretty much spot on with your diagnosis. I
>> agree
>> > it
>> > >>> is a
>> > >>> >> >> bit of a pain that the workflow ids are different. However,
>> each
>> > >>> >> workflow
>> > >>> >> >> does have a unique uuid internally (with t2flow anyway) so that
>> > >>> could be
>> > >>> >> >> used to check if a workflow on myexperiment and the portal are
>> > the
>> > >>> same.
>> > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
>> > >>> >> 438f645d3d17"
>> > >>> >> >> role="top"> in a t2flow file. This probably means that the
>> portal
>> > >>> would
>> > >>> >> >> need an extension to search by workflow uuid. For now I would
>> > just
>> > >>> treat
>> > >>> >> >> each run as having a unique workflow and we can always improve
>> it
>> > >>> later.
>> > >>> >> >>
>> > >>> >> >> Cheers,
>> > >>> >> >>
>> > >>> >> >> Ian
>> > >>> >> >>
>> > >>> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com>
>> > >>> wrote:
>> > >>> >> >>
>> > >>> >> >> Hello,
>> > >>> >> >>>
>> > >>> >> >>> Thank you for providing code. Now, I am working on it.
>> > >>> >> >>>
>> > >>> >> >>> Currently, I have understood that I need following steps to
>> run
>> > a
>> > >>> >> >>> workflow
>> > >>> >> >>> on taverna player portal
>> > >>> >> >>>
>> > >>> >> >>> 1) Download workflow content.
>> > >>> >> >>> 2) Upload it to taverna player portal.
>> > >>> >> >>> 3) Run it on taverna player portal.
>> > >>> >> >>> 4) Show output of the complete workflow's run.
>> > >>> >> >>>
>> > >>> >> >>> I have also understood that there is no link between
>> > myExperiment
>> > >>> >> >>> workflow
>> > >>> >> >>> and Taverna Player workflow that's why I can't retain
>> > >>> myExperiment's
>> > >>> >> >>> workflow running history on Taverna player portal and also I
>> > can't
>> > >>> >> search
>> > >>> >> >>> the same workflow in taverna player portal. For each new run,
>> I
>> > >>> have to
>> > >>> >> >>> upload it again.
>> > >>> >> >>>
>> > >>> >> >>>
>> > >>> >> >>> If I have understood correct then Please revert back .
>> > >>> >> >>>
>> > >>> >> >>> If not then, Please correct me.
>> > >>> >> >>>
>> > >>> >> >>> Thanks
>> > >>> >> >>>
>> > >>> >> >>>
>> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
>> > ianwdunlop@gmail.com>
>> > >>> >> >>> wrote:
>> > >>> >> >>>
>> > >>> >> >>> Hello,
>> > >>> >> >>>>
>> > >>> >> >>>> This is where the upload code is in the current mobile code
>> > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
>> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> > >>> >> >>>> WorkflowdetailFragment.java#L655
>> > >>> >> >>>>
>> > >>> >> >>>> Cheers,
>> > >>> >> >>>>
>> > >>> >> >>>> Ian
>> > >>> >> >>>>
>> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ianwdunlop@gmail.com
>> >
>> > >>> wrote:
>> > >>> >> >>>>
>> > >>> >> >>>> Hello,
>> > >>> >> >>>>>
>> > >>> >> >>>>> That upload code should already be available in the mobile
>> > app.
>> > >>> >> Larry,
>> > >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff
>> out
>> > >>> last
>> > >>> >> time
>> > >>> >> >>>>> round.
>> > >>> >> >>>>> I have added an API call in the taverna-player-portal to get
>> > the
>> > >>> runs
>> > >>> >> >>>>>
>> > >>> >> >>>> for
>> > >>> >> >>>
>> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint
>> > hint
>> > >>> >> >>>>>
>> > >>> >> >>>> Finn). I
>> > >>> >> >>>>
>> > >>> >> >>>>> even added some tests.
>> > >>> >> >>>>>
>> > >>> >> >>>>> Cheers,
>> > >>> >> >>>>>
>> > >>> >> >>>>> Ian
>> > >>> >> >>>>>
>> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> > >>> >> finn.bacall@manchester.ac.uk>
>> > >>> >> >>>>> wrote:
>> > >>> >> >>>>>
>> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> > >>> >> >>>>>>
>> > >>> >> >>>>>> Hi,
>> > >>> >> >>>>>>>
>> > >>> >> >>>>>>> I think there is some problem as mention below
>> > >>> >> >>>>>>>
>> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> > >>> >> >>>>>>>
>> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
>> > >>> workflow
>> > >>> >> to
>> > >>> >> >>>>>>
>> > >>> >> >>>>> the
>> > >>> >> >>>>
>> > >>> >> >>>>> portal:
>> > >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>> > >>> >> >>>>>>
>> > >>> >> >>>>>> Basically the format is:
>> > >>> >> >>>>>>
>> > >>> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
>> > >>> >> >>>>>>
>> > >>> >> >>>>> stream;base64,<<<Insert
>> > >>> >> >>>>
>> > >>> >> >>>>> base64 encoded workflow here>>>" } }
>> > >>> >> >>>>>>
>> > >>> >> >>>>>> Finn
>> > >>> >> >>>>>>
>> > >>> >> >>>>>>
>> > >>> >> >>>>>
>> > >>> >> >>>
>> > >>> >> >>> --
>> > >>> >> >>>
>> > >>> >> >>> *With warm regards  *
>> > >>> >> >>> *Sincerely yours*
>> > >>> >> >>> Sagar
>> > >>> >> >>>
>> > >>> >> >>>
>> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
>> innovation*
>> > >>> >> >>> *Cluster Innovation Centre*
>> > >>> >> >>> *University of Delhi *
>> > >>> >> >>>
>> > >>> >> >>>
>> > >>> >> >
>> > >>> >>
>> > >>> >>
>> > >>> >> --
>> > >>> >>
>> > >>> >> *With warm regards  *
>> > >>> >> *Sincerely yours*
>> > >>> >> Sagar
>> > >>> >>
>> > >>> >>
>> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > >>> >> *Cluster Innovation Centre*
>> > >>> >> *University of Delhi *
>> > >>> >>
>> > >>>
>> > >>>
>> > >>>
>> > >>> --
>> > >>> Stian Soiland-Reyes
>> > >>> Apache Taverna (incubating), Apache Commons
>> > >>> http://orcid.org/0000-0001-9842-9718
>> > >>>
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >>
>> > >> *With warm regards  *
>> > >> *Sincerely yours*
>> > >> Sagar
>> > >>
>> > >>
>> > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > >> *Cluster Innovation Centre*
>> > >> *University of Delhi *
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > >
>> > > *With warm regards  *
>> > > *Sincerely yours*
>> > > Sagar
>> > >
>> > >
>> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > *Cluster Innovation Centre*
>> > > *University of Delhi *
>> >
>> >
>> >
>> > --
>> > Stian Soiland-Reyes
>> > http://orcid.org/0000-0001-9842-9718
>> >
>>



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
An alternative is to do something very similar to the
maven-jaxb2-plugin in taverna-scufl2-t2flow

https://github.com/apache/incubator-taverna-language/blob/0.15.1-incubating/taverna-scufl2-t2flow/pom.xml#L43

with those schemas from
https://github.com/apache/incubator-taverna-language/tree/0.15.1-incubating/taverna-scufl2-t2flow/src/main/resources/org/apache/taverna/scufl2/translator/t2flow/xsd

(you should just need t2flow.xsd and t2annotations.xsd to get the
MimeType annotations)


If you generate that once, then you can also copy over the JAXB
annotated Java source files from target/generated-sources - which
perhaps is not best practice, but probably better than making a
gradle/Maven mixed project.  (Or find a jaxb plugin for gradle?)


On 9 September 2016 at 08:00, Sagar <ku...@gmail.com> wrote:
> Hi,
>
> Here is the JDK requirement for different Android Version
> https://source.android.com/source/requirements.html
>
> Currently taverna language api support JAVA 8 and newer but we need minimum
> JAVA 6 and newer support to use taverna language api in taverna mobile for
> API 16 (JellyBean).
>
> That's why we can't use taverna language api in taverna mobile.
>
> So, Can you provide me what are the input and output  attribute in .t2flow
> file to get their MIME ?
>
>
> Thanks
>
> On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <Ga...@noventussolutions.com>
> wrote:
>
>> Here is the distribution of Android API levels in use as of Aug 1:
>> https://developer.android.com/about/dashboards/index.html
>>
>> According to this, only 15% of all Android devices are running API 23.
>>
>>
>> On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:
>>
>> > Hello,
>> >
>> > That page is typically clear as mud! I think it is implying that jdk 7 is
>> > fine for all API levels but for jdk 8 you need API 23 and (if special
>> > language features required) a different compiler. So as long as we don't
>> > use jdk 8 features we will be ok (maybe).  I guess that means
>> > taverna-language can be used (until we go all lambda crazy).
>> >
>> > Cheers,
>> >
>> > Ian
>> >
>> > On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
>> > wrote:
>> >
>> > > I don't think we use any Java 8 features in taverna-language (e.g.
>> > > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
>> > > 7.  I think it should be possible to make a subset of Taverna-language
>> > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
>> > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
>> > > Maven profile?
>> > >
>> > > https://developer.android.com/guide/platform/j8-jack.html says you can
>> > > use Java 7/8 features from API level 23-24.
>> > >
>> > > How do we decide which Android API level we want to support..?
>> > >
>> > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
>> > > > Hi,
>> > > >
>> > > > I was reading the readme and I found Taverna-language-API will only
>> > work
>> > > > with JAVA 8 and newer.
>> > > > We can't use in taverna-mobile because Android API 16 works with JAVA
>> > 6.
>> > > >
>> > > > So, Now provide me with the schema of the .t2flow file.
>> > > >
>> > > > Thanks
>> > > >
>> > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
>> > wrote:
>> > > >
>> > > >> Hi,
>> > > >>
>> > > >> How can I use the taverna-language API to know what will the inputs
>> > and
>> > > >> what will the outputs of workflow?
>> > > >>
>> > > >> I don't get any proper guide or code.
>> > > >>
>> > > >> Thanks
>> > > >>
>> > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
>> stain@apache.org
>> > >
>> > > >> wrote:
>> > > >>
>> > > >>> Yes, you should use taverna-language to load the .t2flow and
>> inspect
>> > > it.
>> > > >>>
>> > > >>> You should not really need to make any Java beans for it as the
>> > > >>> workflow wouldn't be constructed on the phone (although you could
>> do
>> > > >>> that with the Taverna Language API), but loaded from $somewhere as
>> > > >>> previously saved from the Taverna Workbench or downloaded from
>> > > >>> myExperiment - however you can use the API to inspect the workflow,
>> > > >>> e.g. list the input port names of the main workflow.
>> > > >>>
>> > > >>>
>> > > >>> See:
>> > > >>>
>> > > >>> https://taverna.incubator.apache.org/download/language/
>> > > >>>
>> > > >>> Javadoc:
>> > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
>> > > >>>
>> > > >>> Example:
>> > > >>> https://github.com/apache/incubator-taverna-language/blob/
>> > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> > > >>> taverna/examples/ProcessorNames.java
>> > > >>>
>> > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
>> wrote:
>> > > >>> > Hello,
>> > > >>> >
>> > > >>> > There is an xsd for t2flow available in the taverna-language
>> module
>> > > >>> > https://github.com/apache/incubator-taverna-language/blob/
>> > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> > > >>> > You should be able to re-use taverna-language to parse t2flow
>> > rather
>> > > >>> than
>> > > >>> > build your own parser. Perhaps using
>> > > >>> > https://github.com/apache/incubator-taverna-language/tree/
>> > > >>> master/taverna-scufl2-t2flow.
>> > > >>> > No readme though. Maybe some other devs can advise how to use it.
>> > > >>> >
>> > > >>> > Cheers,
>> > > >>> >
>> > > >>> > Ian
>> > > >>> >
>> > > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
>> > wrote:
>> > > >>> >
>> > > >>> >> Hi,
>> > > >>> >>
>> > > >>> >> Is there any predefined tree structure for t2flow xml file ?
>> > > >>> >>
>> > > >>> >> if yes, then provide me so that I am able to create java beans
>> for
>> > > it.
>> > > >>> >> otherwise, I will create it according to any t2flow xml file.
>> > > >>> >>
>> > > >>> >> Please revert ASAP.
>> > > >>> >>
>> > > >>> >> Thanks
>> > > >>> >>
>> > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> > > >>> finn.bacall@manchester.ac.uk
>> > > >>> >> >
>> > > >>> >> wrote:
>> > > >>> >>
>> > > >>> >> > This wouldn't be that hard to implement, you can get the
>> unique
>> > ID
>> > > >>> for
>> > > >>> >> the
>> > > >>> >> > workflow from the parser gem, see:
>> > > >>> >> >
>> > > >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
>> > > >>> >> > master/lib/t2flow/model.rb#L136
>> > > >>> >> >
>> > > >>> >> > Then you'd just need to extract it in the parsing method:
>> > > >>> >> >
>> > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
>> > > >>> >> > app/models/workflow.rb#L40
>> > > >>> >> >
>> > > >>> >> > and store it in a new field in the database.
>> > > >>> >> >
>> > > >>> >> > Cheers,
>> > > >>> >> >
>> > > >>> >> > Finn
>> > > >>> >> >
>> > > >>> >> >
>> > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> > > >>> >> >
>> > > >>> >> >> Hello,
>> > > >>> >> >>
>> > > >>> >> >> I think you are pretty much spot on with your diagnosis. I
>> > agree
>> > > it
>> > > >>> is a
>> > > >>> >> >> bit of a pain that the workflow ids are different. However,
>> > each
>> > > >>> >> workflow
>> > > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
>> that
>> > > >>> could be
>> > > >>> >> >> used to check if a workflow on myexperiment and the portal
>> are
>> > > the
>> > > >>> same.
>> > > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
>> > > >>> >> 438f645d3d17"
>> > > >>> >> >> role="top"> in a t2flow file. This probably means that the
>> > portal
>> > > >>> would
>> > > >>> >> >> need an extension to search by workflow uuid. For now I would
>> > > just
>> > > >>> treat
>> > > >>> >> >> each run as having a unique workflow and we can always
>> improve
>> > it
>> > > >>> later.
>> > > >>> >> >>
>> > > >>> >> >> Cheers,
>> > > >>> >> >>
>> > > >>> >> >> Ian
>> > > >>> >> >>
>> > > >>> >> >> On 26 August 2016 at 08:02, Sagar <kumarsagar15795@gmail.com
>> >
>> > > >>> wrote:
>> > > >>> >> >>
>> > > >>> >> >> Hello,
>> > > >>> >> >>>
>> > > >>> >> >>> Thank you for providing code. Now, I am working on it.
>> > > >>> >> >>>
>> > > >>> >> >>> Currently, I have understood that I need following steps to
>> > run
>> > > a
>> > > >>> >> >>> workflow
>> > > >>> >> >>> on taverna player portal
>> > > >>> >> >>>
>> > > >>> >> >>> 1) Download workflow content.
>> > > >>> >> >>> 2) Upload it to taverna player portal.
>> > > >>> >> >>> 3) Run it on taverna player portal.
>> > > >>> >> >>> 4) Show output of the complete workflow's run.
>> > > >>> >> >>>
>> > > >>> >> >>> I have also understood that there is no link between
>> > > myExperiment
>> > > >>> >> >>> workflow
>> > > >>> >> >>> and Taverna Player workflow that's why I can't retain
>> > > >>> myExperiment's
>> > > >>> >> >>> workflow running history on Taverna player portal and also I
>> > > can't
>> > > >>> >> search
>> > > >>> >> >>> the same workflow in taverna player portal. For each new
>> run,
>> > I
>> > > >>> have to
>> > > >>> >> >>> upload it again.
>> > > >>> >> >>>
>> > > >>> >> >>>
>> > > >>> >> >>> If I have understood correct then Please revert back .
>> > > >>> >> >>>
>> > > >>> >> >>> If not then, Please correct me.
>> > > >>> >> >>>
>> > > >>> >> >>> Thanks
>> > > >>> >> >>>
>> > > >>> >> >>>
>> > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
>> > > ianwdunlop@gmail.com>
>> > > >>> >> >>> wrote:
>> > > >>> >> >>>
>> > > >>> >> >>> Hello,
>> > > >>> >> >>>>
>> > > >>> >> >>>> This is where the upload code is in the current mobile code
>> > > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
>> > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
>> c1483cebff/app/src/main/java/
>> > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> > > >>> >> >>>> WorkflowdetailFragment.java#L655
>> > > >>> >> >>>>
>> > > >>> >> >>>> Cheers,
>> > > >>> >> >>>>
>> > > >>> >> >>>> Ian
>> > > >>> >> >>>>
>> > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
>> ianwdunlop@gmail.com
>> > >
>> > > >>> wrote:
>> > > >>> >> >>>>
>> > > >>> >> >>>> Hello,
>> > > >>> >> >>>>>
>> > > >>> >> >>>>> That upload code should already be available in the mobile
>> > > app.
>> > > >>> >> Larry,
>> > > >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff
>> > out
>> > > >>> last
>> > > >>> >> time
>> > > >>> >> >>>>> round.
>> > > >>> >> >>>>> I have added an API call in the taverna-player-portal to
>> get
>> > > the
>> > > >>> runs
>> > > >>> >> >>>>>
>> > > >>> >> >>>> for
>> > > >>> >> >>>
>> > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
>> (hint
>> > > hint
>> > > >>> >> >>>>>
>> > > >>> >> >>>> Finn). I
>> > > >>> >> >>>>
>> > > >>> >> >>>>> even added some tests.
>> > > >>> >> >>>>>
>> > > >>> >> >>>>> Cheers,
>> > > >>> >> >>>>>
>> > > >>> >> >>>>> Ian
>> > > >>> >> >>>>>
>> > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> > > >>> >> finn.bacall@manchester.ac.uk>
>> > > >>> >> >>>>> wrote:
>> > > >>> >> >>>>>
>> > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>> Hi,
>> > > >>> >> >>>>>>>
>> > > >>> >> >>>>>>> I think there is some problem as mention below
>> > > >>> >> >>>>>>>
>> > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> > > >>> >> >>>>>>>
>> > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to upload
>> a
>> > > >>> workflow
>> > > >>> >> to
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>> the
>> > > >>> >> >>>>
>> > > >>> >> >>>>> portal:
>> > > >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>> Basically the format is:
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>>      { "workflow" : { "document" :
>> "data:application/octet-
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>> stream;base64,<<<Insert
>> > > >>> >> >>>>
>> > > >>> >> >>>>> base64 encoded workflow here>>>" } }
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>> Finn
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>>
>> > > >>> >> >>>>>
>> > > >>> >> >>>
>> > > >>> >> >>> --
>> > > >>> >> >>>
>> > > >>> >> >>> *With warm regards  *
>> > > >>> >> >>> *Sincerely yours*
>> > > >>> >> >>> Sagar
>> > > >>> >> >>>
>> > > >>> >> >>>
>> > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
>> > innovation*
>> > > >>> >> >>> *Cluster Innovation Centre*
>> > > >>> >> >>> *University of Delhi *
>> > > >>> >> >>>
>> > > >>> >> >>>
>> > > >>> >> >
>> > > >>> >>
>> > > >>> >>
>> > > >>> >> --
>> > > >>> >>
>> > > >>> >> *With warm regards  *
>> > > >>> >> *Sincerely yours*
>> > > >>> >> Sagar
>> > > >>> >>
>> > > >>> >>
>> > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > >>> >> *Cluster Innovation Centre*
>> > > >>> >> *University of Delhi *
>> > > >>> >>
>> > > >>>
>> > > >>>
>> > > >>>
>> > > >>> --
>> > > >>> Stian Soiland-Reyes
>> > > >>> Apache Taverna (incubating), Apache Commons
>> > > >>> http://orcid.org/0000-0001-9842-9718
>> > > >>>
>> > > >>
>> > > >>
>> > > >>
>> > > >> --
>> > > >>
>> > > >> *With warm regards  *
>> > > >> *Sincerely yours*
>> > > >> Sagar
>> > > >>
>> > > >>
>> > > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > >> *Cluster Innovation Centre*
>> > > >> *University of Delhi *
>> > > >>
>> > > >>
>> > > >
>> > > >
>> > > > --
>> > > >
>> > > > *With warm regards  *
>> > > > *Sincerely yours*
>> > > > Sagar
>> > > >
>> > > >
>> > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > > *Cluster Innovation Centre*
>> > > > *University of Delhi *
>> > >
>> > >
>> > >
>> > > --
>> > > Stian Soiland-Reyes
>> > > http://orcid.org/0000-0001-9842-9718
>> > >
>> >
>>
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
Yes, I think a Maven profile with a smaller <modules> with just
taverna-scufl2-* (excluding wfdesc, robundle, databundle) could work,
and also set:


<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>





On 9 September 2016 at 12:35, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> Stian hinted that maybe maven profiles could build the language jars needed
> while excluding the java 8 ro-bundle. Maybe we can define a profile which
> only has the modules we need
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
>
> Cheers,
>
> Ian
>
> On 9 September 2016 at 12:21, Sagar <ku...@gmail.com> wrote:
>
>> Hi,
>>
>> @ian
>>  You get right that we can use JDK 7 or 8 to compile as long as the source
>> is 6 compatible.
>>
>> @stain
>> Now how can I make a java 6 version of taverna-language? Because I have
>> done with all other work to run a workflow .
>>
>> Thanks
>>
>> On Fri, Sep 9, 2016 at 3:36 PM, Ian Dunlop <ia...@gmail.com> wrote:
>>
>> > Hello,
>> >
>> > Isn't that just to build android from source? Anyway, it's all really
>> > unclear. I found this
>> > http://stackoverflow.com/questions/20480090/does-
>> > android-support-jdk-6-or-7
>> > but it still didn't help me. You can use jdk 7 or 8 to compile as long as
>> > the source is 6 compatible. There is a difference here between language
>> > features and api features. The android API probably has some of the jdk 7
>> > API but it seems to be at the whim of google.
>> > So....as Stian said earlier we could make a java 6 version of
>> > taverna-language by ignoring the ro-bundle module.
>> >
>> > Cheers,
>> >
>> > Ian
>> >
>> > On 9 September 2016 at 08:00, Sagar <ku...@gmail.com> wrote:
>> >
>> > > Hi,
>> > >
>> > > Here is the JDK requirement for different Android Version
>> > > https://source.android.com/source/requirements.html
>> > >
>> > > Currently taverna language api support JAVA 8 and newer but we need
>> > minimum
>> > > JAVA 6 and newer support to use taverna language api in taverna mobile
>> > for
>> > > API 16 (JellyBean).
>> > >
>> > > That's why we can't use taverna language api in taverna mobile.
>> > >
>> > > So, Can you provide me what are the input and output  attribute in
>> > .t2flow
>> > > file to get their MIME ?
>> > >
>> > >
>> > > Thanks
>> > >
>> > > On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <
>> > GaleN@noventussolutions.com>
>> > > wrote:
>> > >
>> > > > Here is the distribution of Android API levels in use as of Aug 1:
>> > > > https://developer.android.com/about/dashboards/index.html
>> > > >
>> > > > According to this, only 15% of all Android devices are running API
>> 23.
>> > > >
>> > > >
>> > > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
>> > wrote:
>> > > >
>> > > > > Hello,
>> > > > >
>> > > > > That page is typically clear as mud! I think it is implying that
>> jdk
>> > 7
>> > > is
>> > > > > fine for all API levels but for jdk 8 you need API 23 and (if
>> special
>> > > > > language features required) a different compiler. So as long as we
>> > > don't
>> > > > > use jdk 8 features we will be ok (maybe).  I guess that means
>> > > > > taverna-language can be used (until we go all lambda crazy).
>> > > > >
>> > > > > Cheers,
>> > > > >
>> > > > > Ian
>> > > > >
>> > > > > On 8 September 2016 at 14:24, Stian Soiland-Reyes <
>> stain@apache.org>
>> > > > > wrote:
>> > > > >
>> > > > > > I don't think we use any Java 8 features in taverna-language
>> (e.g.
>> > > > > > Stream or lambdas) - but taverna-robundle use java.nio.Path from
>> > Java
>> > > > > > 7.  I think it should be possible to make a subset of
>> > > Taverna-language
>> > > > > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
>> > > > > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps
>> as a
>> > > > > > Maven profile?
>> > > > > >
>> > > > > > https://developer.android.com/guide/platform/j8-jack.html says
>> you
>> > > can
>> > > > > > use Java 7/8 features from API level 23-24.
>> > > > > >
>> > > > > > How do we decide which Android API level we want to support..?
>> > > > > >
>> > > > > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
>> > > wrote:
>> > > > > > > Hi,
>> > > > > > >
>> > > > > > > I was reading the readme and I found Taverna-language-API will
>> > only
>> > > > > work
>> > > > > > > with JAVA 8 and newer.
>> > > > > > > We can't use in taverna-mobile because Android API 16 works
>> with
>> > > JAVA
>> > > > > 6.
>> > > > > > >
>> > > > > > > So, Now provide me with the schema of the .t2flow file.
>> > > > > > >
>> > > > > > > Thanks
>> > > > > > >
>> > > > > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <
>> kumarsagar15795@gmail.com
>> > >
>> > > > > wrote:
>> > > > > > >
>> > > > > > >> Hi,
>> > > > > > >>
>> > > > > > >> How can I use the taverna-language API to know what will the
>> > > inputs
>> > > > > and
>> > > > > > >> what will the outputs of workflow?
>> > > > > > >>
>> > > > > > >> I don't get any proper guide or code.
>> > > > > > >>
>> > > > > > >> Thanks
>> > > > > > >>
>> > > > > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
>> > > > stain@apache.org
>> > > > > >
>> > > > > > >> wrote:
>> > > > > > >>
>> > > > > > >>> Yes, you should use taverna-language to load the .t2flow and
>> > > > inspect
>> > > > > > it.
>> > > > > > >>>
>> > > > > > >>> You should not really need to make any Java beans for it as
>> the
>> > > > > > >>> workflow wouldn't be constructed on the phone (although you
>> > could
>> > > > do
>> > > > > > >>> that with the Taverna Language API), but loaded from
>> $somewhere
>> > > as
>> > > > > > >>> previously saved from the Taverna Workbench or downloaded
>> from
>> > > > > > >>> myExperiment - however you can use the API to inspect the
>> > > workflow,
>> > > > > > >>> e.g. list the input port names of the main workflow.
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>> See:
>> > > > > > >>>
>> > > > > > >>> https://taverna.incubator.apache.org/download/language/
>> > > > > > >>>
>> > > > > > >>> Javadoc:
>> > > > > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> > > > > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
>> > > > > > >>>
>> > > > > > >>> Example:
>> > > > > > >>> https://github.com/apache/incubator-taverna-language/blob/
>> > > > > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> > > > > > >>> taverna/examples/ProcessorNames.java
>> > > > > > >>>
>> > > > > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ianwdunlop@gmail.com
>> >
>> > > > wrote:
>> > > > > > >>> > Hello,
>> > > > > > >>> >
>> > > > > > >>> > There is an xsd for t2flow available in the
>> taverna-language
>> > > > module
>> > > > > > >>> > https://github.com/apache/incubator-taverna-language/blob/
>> > > > > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> > > > > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> > > > > > >>> > You should be able to re-use taverna-language to parse
>> t2flow
>> > > > > rather
>> > > > > > >>> than
>> > > > > > >>> > build your own parser. Perhaps using
>> > > > > > >>> > https://github.com/apache/incubator-taverna-language/tree/
>> > > > > > >>> master/taverna-scufl2-t2flow.
>> > > > > > >>> > No readme though. Maybe some other devs can advise how to
>> use
>> > > it.
>> > > > > > >>> >
>> > > > > > >>> > Cheers,
>> > > > > > >>> >
>> > > > > > >>> > Ian
>> > > > > > >>> >
>> > > > > > >>> > On 28 August 2016 at 18:23, Sagar <
>> kumarsagar15795@gmail.com
>> > >
>> > > > > wrote:
>> > > > > > >>> >
>> > > > > > >>> >> Hi,
>> > > > > > >>> >>
>> > > > > > >>> >> Is there any predefined tree structure for t2flow xml
>> file ?
>> > > > > > >>> >>
>> > > > > > >>> >> if yes, then provide me so that I am able to create java
>> > beans
>> > > > for
>> > > > > > it.
>> > > > > > >>> >> otherwise, I will create it according to any t2flow xml
>> > file.
>> > > > > > >>> >>
>> > > > > > >>> >> Please revert ASAP.
>> > > > > > >>> >>
>> > > > > > >>> >> Thanks
>> > > > > > >>> >>
>> > > > > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> > > > > > >>> finn.bacall@manchester.ac.uk
>> > > > > > >>> >> >
>> > > > > > >>> >> wrote:
>> > > > > > >>> >>
>> > > > > > >>> >> > This wouldn't be that hard to implement, you can get the
>> > > > unique
>> > > > > ID
>> > > > > > >>> for
>> > > > > > >>> >> the
>> > > > > > >>> >> > workflow from the parser gem, see:
>> > > > > > >>> >> >
>> > > > > > >>> >> > https://github.com/myExperiment/workflow_parser-
>> > > t2flow/blob/
>> > > > > > >>> >> > master/lib/t2flow/model.rb#L136
>> > > > > > >>> >> >
>> > > > > > >>> >> > Then you'd just need to extract it in the parsing
>> method:
>> > > > > > >>> >> >
>> > > > > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
>> > > master/
>> > > > > > >>> >> > app/models/workflow.rb#L40
>> > > > > > >>> >> >
>> > > > > > >>> >> > and store it in a new field in the database.
>> > > > > > >>> >> >
>> > > > > > >>> >> > Cheers,
>> > > > > > >>> >> >
>> > > > > > >>> >> > Finn
>> > > > > > >>> >> >
>> > > > > > >>> >> >
>> > > > > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> > > > > > >>> >> >
>> > > > > > >>> >> >> Hello,
>> > > > > > >>> >> >>
>> > > > > > >>> >> >> I think you are pretty much spot on with your
>> diagnosis.
>> > I
>> > > > > agree
>> > > > > > it
>> > > > > > >>> is a
>> > > > > > >>> >> >> bit of a pain that the workflow ids are different.
>> > However,
>> > > > > each
>> > > > > > >>> >> workflow
>> > > > > > >>> >> >> does have a unique uuid internally (with t2flow anyway)
>> > so
>> > > > that
>> > > > > > >>> could be
>> > > > > > >>> >> >> used to check if a workflow on myexperiment and the
>> > portal
>> > > > are
>> > > > > > the
>> > > > > > >>> same.
>> > > > > > >>> >> >> Look for the element <dataflow
>> > id="0f5e83c1-bbb5-42e7-9ba3-
>> > > > > > >>> >> 438f645d3d17"
>> > > > > > >>> >> >> role="top"> in a t2flow file. This probably means that
>> > the
>> > > > > portal
>> > > > > > >>> would
>> > > > > > >>> >> >> need an extension to search by workflow uuid. For now I
>> > > would
>> > > > > > just
>> > > > > > >>> treat
>> > > > > > >>> >> >> each run as having a unique workflow and we can always
>> > > > improve
>> > > > > it
>> > > > > > >>> later.
>> > > > > > >>> >> >>
>> > > > > > >>> >> >> Cheers,
>> > > > > > >>> >> >>
>> > > > > > >>> >> >> Ian
>> > > > > > >>> >> >>
>> > > > > > >>> >> >> On 26 August 2016 at 08:02, Sagar <
>> > > kumarsagar15795@gmail.com
>> > > > >
>> > > > > > >>> wrote:
>> > > > > > >>> >> >>
>> > > > > > >>> >> >> Hello,
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> Thank you for providing code. Now, I am working on it.
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> Currently, I have understood that I need following
>> steps
>> > > to
>> > > > > run
>> > > > > > a
>> > > > > > >>> >> >>> workflow
>> > > > > > >>> >> >>> on taverna player portal
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> 1) Download workflow content.
>> > > > > > >>> >> >>> 2) Upload it to taverna player portal.
>> > > > > > >>> >> >>> 3) Run it on taverna player portal.
>> > > > > > >>> >> >>> 4) Show output of the complete workflow's run.
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> I have also understood that there is no link between
>> > > > > > myExperiment
>> > > > > > >>> >> >>> workflow
>> > > > > > >>> >> >>> and Taverna Player workflow that's why I can't retain
>> > > > > > >>> myExperiment's
>> > > > > > >>> >> >>> workflow running history on Taverna player portal and
>> > > also I
>> > > > > > can't
>> > > > > > >>> >> search
>> > > > > > >>> >> >>> the same workflow in taverna player portal. For each
>> new
>> > > > run,
>> > > > > I
>> > > > > > >>> have to
>> > > > > > >>> >> >>> upload it again.
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> If I have understood correct then Please revert back .
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> If not then, Please correct me.
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> Thanks
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
>> > > > > > ianwdunlop@gmail.com>
>> > > > > > >>> >> >>> wrote:
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> Hello,
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>> This is where the upload code is in the current
>> mobile
>> > > code
>> > > > > > >>> >> >>>> https://github.com/apache/
>> > incubator-taverna-mobile/blob/
>> > > > > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
>> > > > c1483cebff/app/src/main/java/
>> > > > > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> > > > > > >>> >> >>>> WorkflowdetailFragment.java#L655
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>> Cheers,
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>> Ian
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
>> > > > ianwdunlop@gmail.com
>> > > > > >
>> > > > > > >>> wrote:
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>> Hello,
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>>> That upload code should already be available in the
>> > > mobile
>> > > > > > app.
>> > > > > > >>> >> Larry,
>> > > > > > >>> >> >>>>> myself and Finn spent a few hours figuring all that
>> > > stuff
>> > > > > out
>> > > > > > >>> last
>> > > > > > >>> >> time
>> > > > > > >>> >> >>>>> round.
>> > > > > > >>> >> >>>>> I have added an API call in the
>> taverna-player-portal
>> > to
>> > > > get
>> > > > > > the
>> > > > > > >>> runs
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>> for
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in
>> github
>> > > > (hint
>> > > > > > hint
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>> Finn). I
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>>> even added some tests.
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>>> Cheers,
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>>> Ian
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> > > > > > >>> >> finn.bacall@manchester.ac.uk>
>> > > > > > >>> >> >>>>> wrote:
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>> Hi,
>> > > > > > >>> >> >>>>>>>
>> > > > > > >>> >> >>>>>>> I think there is some problem as mention below
>> > > > > > >>> >> >>>>>>>
>> > > > > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> > > > > > >>> >> >>>>>>>
>> > > > > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
>> > > upload
>> > > > a
>> > > > > > >>> workflow
>> > > > > > >>> >> to
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>> the
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>>> portal:
>> > > > > > >>> >> >>>>>> https://gist.github.com/larrytech7/
>> > > 957cc61a3bdd82e3e030
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>> Basically the format is:
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>>      { "workflow" : { "document" :
>> > > > "data:application/octet-
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>> stream;base64,<<<Insert
>> > > > > > >>> >> >>>>
>> > > > > > >>> >> >>>>> base64 encoded workflow here>>>" } }
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>> Finn
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>>
>> > > > > > >>> >> >>>>>
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> --
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> *With warm regards  *
>> > > > > > >>> >> >>> *Sincerely yours*
>> > > > > > >>> >> >>> Sagar
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
>> > > > > innovation*
>> > > > > > >>> >> >>> *Cluster Innovation Centre*
>> > > > > > >>> >> >>> *University of Delhi *
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >>>
>> > > > > > >>> >> >
>> > > > > > >>> >>
>> > > > > > >>> >>
>> > > > > > >>> >> --
>> > > > > > >>> >>
>> > > > > > >>> >> *With warm regards  *
>> > > > > > >>> >> *Sincerely yours*
>> > > > > > >>> >> Sagar
>> > > > > > >>> >>
>> > > > > > >>> >>
>> > > > > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
>> > > innovation*
>> > > > > > >>> >> *Cluster Innovation Centre*
>> > > > > > >>> >> *University of Delhi *
>> > > > > > >>> >>
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>>
>> > > > > > >>> --
>> > > > > > >>> Stian Soiland-Reyes
>> > > > > > >>> Apache Taverna (incubating), Apache Commons
>> > > > > > >>> http://orcid.org/0000-0001-9842-9718
>> > > > > > >>>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> --
>> > > > > > >>
>> > > > > > >> *With warm regards  *
>> > > > > > >> *Sincerely yours*
>> > > > > > >> Sagar
>> > > > > > >>
>> > > > > > >>
>> > > > > > >> *Student ,(7th Semester )B.Tech IT and mathematical
>> innovation*
>> > > > > > >> *Cluster Innovation Centre*
>> > > > > > >> *University of Delhi *
>> > > > > > >>
>> > > > > > >>
>> > > > > > >
>> > > > > > >
>> > > > > > > --
>> > > > > > >
>> > > > > > > *With warm regards  *
>> > > > > > > *Sincerely yours*
>> > > > > > > Sagar
>> > > > > > >
>> > > > > > >
>> > > > > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > > > > > *Cluster Innovation Centre*
>> > > > > > > *University of Delhi *
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Stian Soiland-Reyes
>> > > > > > http://orcid.org/0000-0001-9842-9718
>> > > > > >
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> > > --
>> > >
>> > > *With warm regards  *
>> > > *Sincerely yours*
>> > > Sagar
>> > >
>> > >
>> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> > > *Cluster Innovation Centre*
>> > > *University of Delhi *
>> > >
>> >
>>
>>
>>
>> --
>>
>> *With warm regards  *
>> *Sincerely yours*
>> Sagar
>>
>>
>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> *Cluster Innovation Centre*
>> *University of Delhi *
>>



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

Stian hinted that maybe maven profiles could build the language jars needed
while excluding the java 8 ro-bundle. Maybe we can define a profile which
only has the modules we need
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Cheers,

Ian

On 9 September 2016 at 12:21, Sagar <ku...@gmail.com> wrote:

> Hi,
>
> @ian
>  You get right that we can use JDK 7 or 8 to compile as long as the source
> is 6 compatible.
>
> @stain
> Now how can I make a java 6 version of taverna-language? Because I have
> done with all other work to run a workflow .
>
> Thanks
>
> On Fri, Sep 9, 2016 at 3:36 PM, Ian Dunlop <ia...@gmail.com> wrote:
>
> > Hello,
> >
> > Isn't that just to build android from source? Anyway, it's all really
> > unclear. I found this
> > http://stackoverflow.com/questions/20480090/does-
> > android-support-jdk-6-or-7
> > but it still didn't help me. You can use jdk 7 or 8 to compile as long as
> > the source is 6 compatible. There is a difference here between language
> > features and api features. The android API probably has some of the jdk 7
> > API but it seems to be at the whim of google.
> > So....as Stian said earlier we could make a java 6 version of
> > taverna-language by ignoring the ro-bundle module.
> >
> > Cheers,
> >
> > Ian
> >
> > On 9 September 2016 at 08:00, Sagar <ku...@gmail.com> wrote:
> >
> > > Hi,
> > >
> > > Here is the JDK requirement for different Android Version
> > > https://source.android.com/source/requirements.html
> > >
> > > Currently taverna language api support JAVA 8 and newer but we need
> > minimum
> > > JAVA 6 and newer support to use taverna language api in taverna mobile
> > for
> > > API 16 (JellyBean).
> > >
> > > That's why we can't use taverna language api in taverna mobile.
> > >
> > > So, Can you provide me what are the input and output  attribute in
> > .t2flow
> > > file to get their MIME ?
> > >
> > >
> > > Thanks
> > >
> > > On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <
> > GaleN@noventussolutions.com>
> > > wrote:
> > >
> > > > Here is the distribution of Android API levels in use as of Aug 1:
> > > > https://developer.android.com/about/dashboards/index.html
> > > >
> > > > According to this, only 15% of all Android devices are running API
> 23.
> > > >
> > > >
> > > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
> > wrote:
> > > >
> > > > > Hello,
> > > > >
> > > > > That page is typically clear as mud! I think it is implying that
> jdk
> > 7
> > > is
> > > > > fine for all API levels but for jdk 8 you need API 23 and (if
> special
> > > > > language features required) a different compiler. So as long as we
> > > don't
> > > > > use jdk 8 features we will be ok (maybe).  I guess that means
> > > > > taverna-language can be used (until we go all lambda crazy).
> > > > >
> > > > > Cheers,
> > > > >
> > > > > Ian
> > > > >
> > > > > On 8 September 2016 at 14:24, Stian Soiland-Reyes <
> stain@apache.org>
> > > > > wrote:
> > > > >
> > > > > > I don't think we use any Java 8 features in taverna-language
> (e.g.
> > > > > > Stream or lambdas) - but taverna-robundle use java.nio.Path from
> > Java
> > > > > > 7.  I think it should be possible to make a subset of
> > > Taverna-language
> > > > > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > > > > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps
> as a
> > > > > > Maven profile?
> > > > > >
> > > > > > https://developer.android.com/guide/platform/j8-jack.html says
> you
> > > can
> > > > > > use Java 7/8 features from API level 23-24.
> > > > > >
> > > > > > How do we decide which Android API level we want to support..?
> > > > > >
> > > > > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> > > wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I was reading the readme and I found Taverna-language-API will
> > only
> > > > > work
> > > > > > > with JAVA 8 and newer.
> > > > > > > We can't use in taverna-mobile because Android API 16 works
> with
> > > JAVA
> > > > > 6.
> > > > > > >
> > > > > > > So, Now provide me with the schema of the .t2flow file.
> > > > > > >
> > > > > > > Thanks
> > > > > > >
> > > > > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <
> kumarsagar15795@gmail.com
> > >
> > > > > wrote:
> > > > > > >
> > > > > > >> Hi,
> > > > > > >>
> > > > > > >> How can I use the taverna-language API to know what will the
> > > inputs
> > > > > and
> > > > > > >> what will the outputs of workflow?
> > > > > > >>
> > > > > > >> I don't get any proper guide or code.
> > > > > > >>
> > > > > > >> Thanks
> > > > > > >>
> > > > > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> > > > stain@apache.org
> > > > > >
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >>> Yes, you should use taverna-language to load the .t2flow and
> > > > inspect
> > > > > > it.
> > > > > > >>>
> > > > > > >>> You should not really need to make any Java beans for it as
> the
> > > > > > >>> workflow wouldn't be constructed on the phone (although you
> > could
> > > > do
> > > > > > >>> that with the Taverna Language API), but loaded from
> $somewhere
> > > as
> > > > > > >>> previously saved from the Taverna Workbench or downloaded
> from
> > > > > > >>> myExperiment - however you can use the API to inspect the
> > > workflow,
> > > > > > >>> e.g. list the input port names of the main workflow.
> > > > > > >>>
> > > > > > >>>
> > > > > > >>> See:
> > > > > > >>>
> > > > > > >>> https://taverna.incubator.apache.org/download/language/
> > > > > > >>>
> > > > > > >>> Javadoc:
> > > > > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > > > > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > > > > > >>>
> > > > > > >>> Example:
> > > > > > >>> https://github.com/apache/incubator-taverna-language/blob/
> > > > > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > > > > > >>> taverna/examples/ProcessorNames.java
> > > > > > >>>
> > > > > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ianwdunlop@gmail.com
> >
> > > > wrote:
> > > > > > >>> > Hello,
> > > > > > >>> >
> > > > > > >>> > There is an xsd for t2flow available in the
> taverna-language
> > > > module
> > > > > > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > > > > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > > > > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > > > > > >>> > You should be able to re-use taverna-language to parse
> t2flow
> > > > > rather
> > > > > > >>> than
> > > > > > >>> > build your own parser. Perhaps using
> > > > > > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > > > > > >>> master/taverna-scufl2-t2flow.
> > > > > > >>> > No readme though. Maybe some other devs can advise how to
> use
> > > it.
> > > > > > >>> >
> > > > > > >>> > Cheers,
> > > > > > >>> >
> > > > > > >>> > Ian
> > > > > > >>> >
> > > > > > >>> > On 28 August 2016 at 18:23, Sagar <
> kumarsagar15795@gmail.com
> > >
> > > > > wrote:
> > > > > > >>> >
> > > > > > >>> >> Hi,
> > > > > > >>> >>
> > > > > > >>> >> Is there any predefined tree structure for t2flow xml
> file ?
> > > > > > >>> >>
> > > > > > >>> >> if yes, then provide me so that I am able to create java
> > beans
> > > > for
> > > > > > it.
> > > > > > >>> >> otherwise, I will create it according to any t2flow xml
> > file.
> > > > > > >>> >>
> > > > > > >>> >> Please revert ASAP.
> > > > > > >>> >>
> > > > > > >>> >> Thanks
> > > > > > >>> >>
> > > > > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > > > > > >>> finn.bacall@manchester.ac.uk
> > > > > > >>> >> >
> > > > > > >>> >> wrote:
> > > > > > >>> >>
> > > > > > >>> >> > This wouldn't be that hard to implement, you can get the
> > > > unique
> > > > > ID
> > > > > > >>> for
> > > > > > >>> >> the
> > > > > > >>> >> > workflow from the parser gem, see:
> > > > > > >>> >> >
> > > > > > >>> >> > https://github.com/myExperiment/workflow_parser-
> > > t2flow/blob/
> > > > > > >>> >> > master/lib/t2flow/model.rb#L136
> > > > > > >>> >> >
> > > > > > >>> >> > Then you'd just need to extract it in the parsing
> method:
> > > > > > >>> >> >
> > > > > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
> > > master/
> > > > > > >>> >> > app/models/workflow.rb#L40
> > > > > > >>> >> >
> > > > > > >>> >> > and store it in a new field in the database.
> > > > > > >>> >> >
> > > > > > >>> >> > Cheers,
> > > > > > >>> >> >
> > > > > > >>> >> > Finn
> > > > > > >>> >> >
> > > > > > >>> >> >
> > > > > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > > > > > >>> >> >
> > > > > > >>> >> >> Hello,
> > > > > > >>> >> >>
> > > > > > >>> >> >> I think you are pretty much spot on with your
> diagnosis.
> > I
> > > > > agree
> > > > > > it
> > > > > > >>> is a
> > > > > > >>> >> >> bit of a pain that the workflow ids are different.
> > However,
> > > > > each
> > > > > > >>> >> workflow
> > > > > > >>> >> >> does have a unique uuid internally (with t2flow anyway)
> > so
> > > > that
> > > > > > >>> could be
> > > > > > >>> >> >> used to check if a workflow on myexperiment and the
> > portal
> > > > are
> > > > > > the
> > > > > > >>> same.
> > > > > > >>> >> >> Look for the element <dataflow
> > id="0f5e83c1-bbb5-42e7-9ba3-
> > > > > > >>> >> 438f645d3d17"
> > > > > > >>> >> >> role="top"> in a t2flow file. This probably means that
> > the
> > > > > portal
> > > > > > >>> would
> > > > > > >>> >> >> need an extension to search by workflow uuid. For now I
> > > would
> > > > > > just
> > > > > > >>> treat
> > > > > > >>> >> >> each run as having a unique workflow and we can always
> > > > improve
> > > > > it
> > > > > > >>> later.
> > > > > > >>> >> >>
> > > > > > >>> >> >> Cheers,
> > > > > > >>> >> >>
> > > > > > >>> >> >> Ian
> > > > > > >>> >> >>
> > > > > > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> > > kumarsagar15795@gmail.com
> > > > >
> > > > > > >>> wrote:
> > > > > > >>> >> >>
> > > > > > >>> >> >> Hello,
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> Currently, I have understood that I need following
> steps
> > > to
> > > > > run
> > > > > > a
> > > > > > >>> >> >>> workflow
> > > > > > >>> >> >>> on taverna player portal
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> 1) Download workflow content.
> > > > > > >>> >> >>> 2) Upload it to taverna player portal.
> > > > > > >>> >> >>> 3) Run it on taverna player portal.
> > > > > > >>> >> >>> 4) Show output of the complete workflow's run.
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> I have also understood that there is no link between
> > > > > > myExperiment
> > > > > > >>> >> >>> workflow
> > > > > > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > > > > > >>> myExperiment's
> > > > > > >>> >> >>> workflow running history on Taverna player portal and
> > > also I
> > > > > > can't
> > > > > > >>> >> search
> > > > > > >>> >> >>> the same workflow in taverna player portal. For each
> new
> > > > run,
> > > > > I
> > > > > > >>> have to
> > > > > > >>> >> >>> upload it again.
> > > > > > >>> >> >>>
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> If I have understood correct then Please revert back .
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> If not then, Please correct me.
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> Thanks
> > > > > > >>> >> >>>
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > > > > > ianwdunlop@gmail.com>
> > > > > > >>> >> >>> wrote:
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> Hello,
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>> This is where the upload code is in the current
> mobile
> > > code
> > > > > > >>> >> >>>> https://github.com/apache/
> > incubator-taverna-mobile/blob/
> > > > > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> > > > c1483cebff/app/src/main/java/
> > > > > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > > > > > >>> >> >>>> WorkflowdetailFragment.java#L655
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>> Cheers,
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>> Ian
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> > > > ianwdunlop@gmail.com
> > > > > >
> > > > > > >>> wrote:
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>> Hello,
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>>> That upload code should already be available in the
> > > mobile
> > > > > > app.
> > > > > > >>> >> Larry,
> > > > > > >>> >> >>>>> myself and Finn spent a few hours figuring all that
> > > stuff
> > > > > out
> > > > > > >>> last
> > > > > > >>> >> time
> > > > > > >>> >> >>>>> round.
> > > > > > >>> >> >>>>> I have added an API call in the
> taverna-player-portal
> > to
> > > > get
> > > > > > the
> > > > > > >>> runs
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>> for
> > > > > > >>> >> >>>
> > > > > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in
> github
> > > > (hint
> > > > > > hint
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>> Finn). I
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>>> even added some tests.
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>>> Cheers,
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>>> Ian
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > > > > > >>> >> finn.bacall@manchester.ac.uk>
> > > > > > >>> >> >>>>> wrote:
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>> Hi,
> > > > > > >>> >> >>>>>>>
> > > > > > >>> >> >>>>>>> I think there is some problem as mention below
> > > > > > >>> >> >>>>>>>
> > > > > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > > > > > >>> >> >>>>>>>
> > > > > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> > > upload
> > > > a
> > > > > > >>> workflow
> > > > > > >>> >> to
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>> the
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>>> portal:
> > > > > > >>> >> >>>>>> https://gist.github.com/larrytech7/
> > > 957cc61a3bdd82e3e030
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>> Basically the format is:
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>>      { "workflow" : { "document" :
> > > > "data:application/octet-
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>> stream;base64,<<<Insert
> > > > > > >>> >> >>>>
> > > > > > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>> Finn
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>>
> > > > > > >>> >> >>>>>
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> --
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> *With warm regards  *
> > > > > > >>> >> >>> *Sincerely yours*
> > > > > > >>> >> >>> Sagar
> > > > > > >>> >> >>>
> > > > > > >>> >> >>>
> > > > > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> > > > > innovation*
> > > > > > >>> >> >>> *Cluster Innovation Centre*
> > > > > > >>> >> >>> *University of Delhi *
> > > > > > >>> >> >>>
> > > > > > >>> >> >>>
> > > > > > >>> >> >
> > > > > > >>> >>
> > > > > > >>> >>
> > > > > > >>> >> --
> > > > > > >>> >>
> > > > > > >>> >> *With warm regards  *
> > > > > > >>> >> *Sincerely yours*
> > > > > > >>> >> Sagar
> > > > > > >>> >>
> > > > > > >>> >>
> > > > > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> > > innovation*
> > > > > > >>> >> *Cluster Innovation Centre*
> > > > > > >>> >> *University of Delhi *
> > > > > > >>> >>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>>
> > > > > > >>> --
> > > > > > >>> Stian Soiland-Reyes
> > > > > > >>> Apache Taverna (incubating), Apache Commons
> > > > > > >>> http://orcid.org/0000-0001-9842-9718
> > > > > > >>>
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >>
> > > > > > >> *With warm regards  *
> > > > > > >> *Sincerely yours*
> > > > > > >> Sagar
> > > > > > >>
> > > > > > >>
> > > > > > >> *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> > > > > > >> *Cluster Innovation Centre*
> > > > > > >> *University of Delhi *
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > *With warm regards  *
> > > > > > > *Sincerely yours*
> > > > > > > Sagar
> > > > > > >
> > > > > > >
> > > > > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > > > > *Cluster Innovation Centre*
> > > > > > > *University of Delhi *
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Stian Soiland-Reyes
> > > > > > http://orcid.org/0000-0001-9842-9718
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > *With warm regards  *
> > > *Sincerely yours*
> > > Sagar
> > >
> > >
> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > *Cluster Innovation Centre*
> > > *University of Delhi *
> > >
> >
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

@ian
 You get right that we can use JDK 7 or 8 to compile as long as the source
is 6 compatible.

@stain
Now how can I make a java 6 version of taverna-language? Because I have
done with all other work to run a workflow .

Thanks

On Fri, Sep 9, 2016 at 3:36 PM, Ian Dunlop <ia...@gmail.com> wrote:

> Hello,
>
> Isn't that just to build android from source? Anyway, it's all really
> unclear. I found this
> http://stackoverflow.com/questions/20480090/does-
> android-support-jdk-6-or-7
> but it still didn't help me. You can use jdk 7 or 8 to compile as long as
> the source is 6 compatible. There is a difference here between language
> features and api features. The android API probably has some of the jdk 7
> API but it seems to be at the whim of google.
> So....as Stian said earlier we could make a java 6 version of
> taverna-language by ignoring the ro-bundle module.
>
> Cheers,
>
> Ian
>
> On 9 September 2016 at 08:00, Sagar <ku...@gmail.com> wrote:
>
> > Hi,
> >
> > Here is the JDK requirement for different Android Version
> > https://source.android.com/source/requirements.html
> >
> > Currently taverna language api support JAVA 8 and newer but we need
> minimum
> > JAVA 6 and newer support to use taverna language api in taverna mobile
> for
> > API 16 (JellyBean).
> >
> > That's why we can't use taverna language api in taverna mobile.
> >
> > So, Can you provide me what are the input and output  attribute in
> .t2flow
> > file to get their MIME ?
> >
> >
> > Thanks
> >
> > On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <
> GaleN@noventussolutions.com>
> > wrote:
> >
> > > Here is the distribution of Android API levels in use as of Aug 1:
> > > https://developer.android.com/about/dashboards/index.html
> > >
> > > According to this, only 15% of all Android devices are running API 23.
> > >
> > >
> > > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com>
> wrote:
> > >
> > > > Hello,
> > > >
> > > > That page is typically clear as mud! I think it is implying that jdk
> 7
> > is
> > > > fine for all API levels but for jdk 8 you need API 23 and (if special
> > > > language features required) a different compiler. So as long as we
> > don't
> > > > use jdk 8 features we will be ok (maybe).  I guess that means
> > > > taverna-language can be used (until we go all lambda crazy).
> > > >
> > > > Cheers,
> > > >
> > > > Ian
> > > >
> > > > On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> > > > wrote:
> > > >
> > > > > I don't think we use any Java 8 features in taverna-language (e.g.
> > > > > Stream or lambdas) - but taverna-robundle use java.nio.Path from
> Java
> > > > > 7.  I think it should be possible to make a subset of
> > Taverna-language
> > > > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > > > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> > > > > Maven profile?
> > > > >
> > > > > https://developer.android.com/guide/platform/j8-jack.html says you
> > can
> > > > > use Java 7/8 features from API level 23-24.
> > > > >
> > > > > How do we decide which Android API level we want to support..?
> > > > >
> > > > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> > wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I was reading the readme and I found Taverna-language-API will
> only
> > > > work
> > > > > > with JAVA 8 and newer.
> > > > > > We can't use in taverna-mobile because Android API 16 works with
> > JAVA
> > > > 6.
> > > > > >
> > > > > > So, Now provide me with the schema of the .t2flow file.
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <kumarsagar15795@gmail.com
> >
> > > > wrote:
> > > > > >
> > > > > >> Hi,
> > > > > >>
> > > > > >> How can I use the taverna-language API to know what will the
> > inputs
> > > > and
> > > > > >> what will the outputs of workflow?
> > > > > >>
> > > > > >> I don't get any proper guide or code.
> > > > > >>
> > > > > >> Thanks
> > > > > >>
> > > > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> > > stain@apache.org
> > > > >
> > > > > >> wrote:
> > > > > >>
> > > > > >>> Yes, you should use taverna-language to load the .t2flow and
> > > inspect
> > > > > it.
> > > > > >>>
> > > > > >>> You should not really need to make any Java beans for it as the
> > > > > >>> workflow wouldn't be constructed on the phone (although you
> could
> > > do
> > > > > >>> that with the Taverna Language API), but loaded from $somewhere
> > as
> > > > > >>> previously saved from the Taverna Workbench or downloaded from
> > > > > >>> myExperiment - however you can use the API to inspect the
> > workflow,
> > > > > >>> e.g. list the input port names of the main workflow.
> > > > > >>>
> > > > > >>>
> > > > > >>> See:
> > > > > >>>
> > > > > >>> https://taverna.incubator.apache.org/download/language/
> > > > > >>>
> > > > > >>> Javadoc:
> > > > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > > > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > > > > >>>
> > > > > >>> Example:
> > > > > >>> https://github.com/apache/incubator-taverna-language/blob/
> > > > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > > > > >>> taverna/examples/ProcessorNames.java
> > > > > >>>
> > > > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
> > > wrote:
> > > > > >>> > Hello,
> > > > > >>> >
> > > > > >>> > There is an xsd for t2flow available in the taverna-language
> > > module
> > > > > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > > > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > > > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > > > > >>> > You should be able to re-use taverna-language to parse t2flow
> > > > rather
> > > > > >>> than
> > > > > >>> > build your own parser. Perhaps using
> > > > > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > > > > >>> master/taverna-scufl2-t2flow.
> > > > > >>> > No readme though. Maybe some other devs can advise how to use
> > it.
> > > > > >>> >
> > > > > >>> > Cheers,
> > > > > >>> >
> > > > > >>> > Ian
> > > > > >>> >
> > > > > >>> > On 28 August 2016 at 18:23, Sagar <kumarsagar15795@gmail.com
> >
> > > > wrote:
> > > > > >>> >
> > > > > >>> >> Hi,
> > > > > >>> >>
> > > > > >>> >> Is there any predefined tree structure for t2flow xml file ?
> > > > > >>> >>
> > > > > >>> >> if yes, then provide me so that I am able to create java
> beans
> > > for
> > > > > it.
> > > > > >>> >> otherwise, I will create it according to any t2flow xml
> file.
> > > > > >>> >>
> > > > > >>> >> Please revert ASAP.
> > > > > >>> >>
> > > > > >>> >> Thanks
> > > > > >>> >>
> > > > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > > > > >>> finn.bacall@manchester.ac.uk
> > > > > >>> >> >
> > > > > >>> >> wrote:
> > > > > >>> >>
> > > > > >>> >> > This wouldn't be that hard to implement, you can get the
> > > unique
> > > > ID
> > > > > >>> for
> > > > > >>> >> the
> > > > > >>> >> > workflow from the parser gem, see:
> > > > > >>> >> >
> > > > > >>> >> > https://github.com/myExperiment/workflow_parser-
> > t2flow/blob/
> > > > > >>> >> > master/lib/t2flow/model.rb#L136
> > > > > >>> >> >
> > > > > >>> >> > Then you'd just need to extract it in the parsing method:
> > > > > >>> >> >
> > > > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
> > master/
> > > > > >>> >> > app/models/workflow.rb#L40
> > > > > >>> >> >
> > > > > >>> >> > and store it in a new field in the database.
> > > > > >>> >> >
> > > > > >>> >> > Cheers,
> > > > > >>> >> >
> > > > > >>> >> > Finn
> > > > > >>> >> >
> > > > > >>> >> >
> > > > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > > > > >>> >> >
> > > > > >>> >> >> Hello,
> > > > > >>> >> >>
> > > > > >>> >> >> I think you are pretty much spot on with your diagnosis.
> I
> > > > agree
> > > > > it
> > > > > >>> is a
> > > > > >>> >> >> bit of a pain that the workflow ids are different.
> However,
> > > > each
> > > > > >>> >> workflow
> > > > > >>> >> >> does have a unique uuid internally (with t2flow anyway)
> so
> > > that
> > > > > >>> could be
> > > > > >>> >> >> used to check if a workflow on myexperiment and the
> portal
> > > are
> > > > > the
> > > > > >>> same.
> > > > > >>> >> >> Look for the element <dataflow
> id="0f5e83c1-bbb5-42e7-9ba3-
> > > > > >>> >> 438f645d3d17"
> > > > > >>> >> >> role="top"> in a t2flow file. This probably means that
> the
> > > > portal
> > > > > >>> would
> > > > > >>> >> >> need an extension to search by workflow uuid. For now I
> > would
> > > > > just
> > > > > >>> treat
> > > > > >>> >> >> each run as having a unique workflow and we can always
> > > improve
> > > > it
> > > > > >>> later.
> > > > > >>> >> >>
> > > > > >>> >> >> Cheers,
> > > > > >>> >> >>
> > > > > >>> >> >> Ian
> > > > > >>> >> >>
> > > > > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> > kumarsagar15795@gmail.com
> > > >
> > > > > >>> wrote:
> > > > > >>> >> >>
> > > > > >>> >> >> Hello,
> > > > > >>> >> >>>
> > > > > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > > > > >>> >> >>>
> > > > > >>> >> >>> Currently, I have understood that I need following steps
> > to
> > > > run
> > > > > a
> > > > > >>> >> >>> workflow
> > > > > >>> >> >>> on taverna player portal
> > > > > >>> >> >>>
> > > > > >>> >> >>> 1) Download workflow content.
> > > > > >>> >> >>> 2) Upload it to taverna player portal.
> > > > > >>> >> >>> 3) Run it on taverna player portal.
> > > > > >>> >> >>> 4) Show output of the complete workflow's run.
> > > > > >>> >> >>>
> > > > > >>> >> >>> I have also understood that there is no link between
> > > > > myExperiment
> > > > > >>> >> >>> workflow
> > > > > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > > > > >>> myExperiment's
> > > > > >>> >> >>> workflow running history on Taverna player portal and
> > also I
> > > > > can't
> > > > > >>> >> search
> > > > > >>> >> >>> the same workflow in taverna player portal. For each new
> > > run,
> > > > I
> > > > > >>> have to
> > > > > >>> >> >>> upload it again.
> > > > > >>> >> >>>
> > > > > >>> >> >>>
> > > > > >>> >> >>> If I have understood correct then Please revert back .
> > > > > >>> >> >>>
> > > > > >>> >> >>> If not then, Please correct me.
> > > > > >>> >> >>>
> > > > > >>> >> >>> Thanks
> > > > > >>> >> >>>
> > > > > >>> >> >>>
> > > > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > > > > ianwdunlop@gmail.com>
> > > > > >>> >> >>> wrote:
> > > > > >>> >> >>>
> > > > > >>> >> >>> Hello,
> > > > > >>> >> >>>>
> > > > > >>> >> >>>> This is where the upload code is in the current mobile
> > code
> > > > > >>> >> >>>> https://github.com/apache/
> incubator-taverna-mobile/blob/
> > > > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> > > c1483cebff/app/src/main/java/
> > > > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > > > > >>> >> >>>> WorkflowdetailFragment.java#L655
> > > > > >>> >> >>>>
> > > > > >>> >> >>>> Cheers,
> > > > > >>> >> >>>>
> > > > > >>> >> >>>> Ian
> > > > > >>> >> >>>>
> > > > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> > > ianwdunlop@gmail.com
> > > > >
> > > > > >>> wrote:
> > > > > >>> >> >>>>
> > > > > >>> >> >>>> Hello,
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>>> That upload code should already be available in the
> > mobile
> > > > > app.
> > > > > >>> >> Larry,
> > > > > >>> >> >>>>> myself and Finn spent a few hours figuring all that
> > stuff
> > > > out
> > > > > >>> last
> > > > > >>> >> time
> > > > > >>> >> >>>>> round.
> > > > > >>> >> >>>>> I have added an API call in the taverna-player-portal
> to
> > > get
> > > > > the
> > > > > >>> runs
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>> for
> > > > > >>> >> >>>
> > > > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
> > > (hint
> > > > > hint
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>> Finn). I
> > > > > >>> >> >>>>
> > > > > >>> >> >>>>> even added some tests.
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>>> Cheers,
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>>> Ian
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > > > > >>> >> finn.bacall@manchester.ac.uk>
> > > > > >>> >> >>>>> wrote:
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>> Hi,
> > > > > >>> >> >>>>>>>
> > > > > >>> >> >>>>>>> I think there is some problem as mention below
> > > > > >>> >> >>>>>>>
> > > > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > > > > >>> >> >>>>>>>
> > > > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> > upload
> > > a
> > > > > >>> workflow
> > > > > >>> >> to
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>> the
> > > > > >>> >> >>>>
> > > > > >>> >> >>>>> portal:
> > > > > >>> >> >>>>>> https://gist.github.com/larrytech7/
> > 957cc61a3bdd82e3e030
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>> Basically the format is:
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>>      { "workflow" : { "document" :
> > > "data:application/octet-
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>> stream;base64,<<<Insert
> > > > > >>> >> >>>>
> > > > > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>> Finn
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>>
> > > > > >>> >> >>>>>
> > > > > >>> >> >>>
> > > > > >>> >> >>> --
> > > > > >>> >> >>>
> > > > > >>> >> >>> *With warm regards  *
> > > > > >>> >> >>> *Sincerely yours*
> > > > > >>> >> >>> Sagar
> > > > > >>> >> >>>
> > > > > >>> >> >>>
> > > > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> > > > innovation*
> > > > > >>> >> >>> *Cluster Innovation Centre*
> > > > > >>> >> >>> *University of Delhi *
> > > > > >>> >> >>>
> > > > > >>> >> >>>
> > > > > >>> >> >
> > > > > >>> >>
> > > > > >>> >>
> > > > > >>> >> --
> > > > > >>> >>
> > > > > >>> >> *With warm regards  *
> > > > > >>> >> *Sincerely yours*
> > > > > >>> >> Sagar
> > > > > >>> >>
> > > > > >>> >>
> > > > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> > innovation*
> > > > > >>> >> *Cluster Innovation Centre*
> > > > > >>> >> *University of Delhi *
> > > > > >>> >>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>> --
> > > > > >>> Stian Soiland-Reyes
> > > > > >>> Apache Taverna (incubating), Apache Commons
> > > > > >>> http://orcid.org/0000-0001-9842-9718
> > > > > >>>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >>
> > > > > >> *With warm regards  *
> > > > > >> *Sincerely yours*
> > > > > >> Sagar
> > > > > >>
> > > > > >>
> > > > > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > > >> *Cluster Innovation Centre*
> > > > > >> *University of Delhi *
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > *With warm regards  *
> > > > > > *Sincerely yours*
> > > > > > Sagar
> > > > > >
> > > > > >
> > > > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > > > *Cluster Innovation Centre*
> > > > > > *University of Delhi *
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Stian Soiland-Reyes
> > > > > http://orcid.org/0000-0001-9842-9718
> > > > >
> > > >
> > >
> >
> >
> >
> > --
> >
> > *With warm regards  *
> > *Sincerely yours*
> > Sagar
> >
> >
> > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > *Cluster Innovation Centre*
> > *University of Delhi *
> >
>



-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

Isn't that just to build android from source? Anyway, it's all really
unclear. I found this
http://stackoverflow.com/questions/20480090/does-android-support-jdk-6-or-7
but it still didn't help me. You can use jdk 7 or 8 to compile as long as
the source is 6 compatible. There is a difference here between language
features and api features. The android API probably has some of the jdk 7
API but it seems to be at the whim of google.
So....as Stian said earlier we could make a java 6 version of
taverna-language by ignoring the ro-bundle module.

Cheers,

Ian

On 9 September 2016 at 08:00, Sagar <ku...@gmail.com> wrote:

> Hi,
>
> Here is the JDK requirement for different Android Version
> https://source.android.com/source/requirements.html
>
> Currently taverna language api support JAVA 8 and newer but we need minimum
> JAVA 6 and newer support to use taverna language api in taverna mobile for
> API 16 (JellyBean).
>
> That's why we can't use taverna language api in taverna mobile.
>
> So, Can you provide me what are the input and output  attribute in .t2flow
> file to get their MIME ?
>
>
> Thanks
>
> On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <Ga...@noventussolutions.com>
> wrote:
>
> > Here is the distribution of Android API levels in use as of Aug 1:
> > https://developer.android.com/about/dashboards/index.html
> >
> > According to this, only 15% of all Android devices are running API 23.
> >
> >
> > On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > That page is typically clear as mud! I think it is implying that jdk 7
> is
> > > fine for all API levels but for jdk 8 you need API 23 and (if special
> > > language features required) a different compiler. So as long as we
> don't
> > > use jdk 8 features we will be ok (maybe).  I guess that means
> > > taverna-language can be used (until we go all lambda crazy).
> > >
> > > Cheers,
> > >
> > > Ian
> > >
> > > On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> > > wrote:
> > >
> > > > I don't think we use any Java 8 features in taverna-language (e.g.
> > > > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
> > > > 7.  I think it should be possible to make a subset of
> Taverna-language
> > > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> > > > Maven profile?
> > > >
> > > > https://developer.android.com/guide/platform/j8-jack.html says you
> can
> > > > use Java 7/8 features from API level 23-24.
> > > >
> > > > How do we decide which Android API level we want to support..?
> > > >
> > > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com>
> wrote:
> > > > > Hi,
> > > > >
> > > > > I was reading the readme and I found Taverna-language-API will only
> > > work
> > > > > with JAVA 8 and newer.
> > > > > We can't use in taverna-mobile because Android API 16 works with
> JAVA
> > > 6.
> > > > >
> > > > > So, Now provide me with the schema of the .t2flow file.
> > > > >
> > > > > Thanks
> > > > >
> > > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
> > > wrote:
> > > > >
> > > > >> Hi,
> > > > >>
> > > > >> How can I use the taverna-language API to know what will the
> inputs
> > > and
> > > > >> what will the outputs of workflow?
> > > > >>
> > > > >> I don't get any proper guide or code.
> > > > >>
> > > > >> Thanks
> > > > >>
> > > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> > stain@apache.org
> > > >
> > > > >> wrote:
> > > > >>
> > > > >>> Yes, you should use taverna-language to load the .t2flow and
> > inspect
> > > > it.
> > > > >>>
> > > > >>> You should not really need to make any Java beans for it as the
> > > > >>> workflow wouldn't be constructed on the phone (although you could
> > do
> > > > >>> that with the Taverna Language API), but loaded from $somewhere
> as
> > > > >>> previously saved from the Taverna Workbench or downloaded from
> > > > >>> myExperiment - however you can use the API to inspect the
> workflow,
> > > > >>> e.g. list the input port names of the main workflow.
> > > > >>>
> > > > >>>
> > > > >>> See:
> > > > >>>
> > > > >>> https://taverna.incubator.apache.org/download/language/
> > > > >>>
> > > > >>> Javadoc:
> > > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > > > >>>
> > > > >>> Example:
> > > > >>> https://github.com/apache/incubator-taverna-language/blob/
> > > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > > > >>> taverna/examples/ProcessorNames.java
> > > > >>>
> > > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
> > wrote:
> > > > >>> > Hello,
> > > > >>> >
> > > > >>> > There is an xsd for t2flow available in the taverna-language
> > module
> > > > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > > > >>> > You should be able to re-use taverna-language to parse t2flow
> > > rather
> > > > >>> than
> > > > >>> > build your own parser. Perhaps using
> > > > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > > > >>> master/taverna-scufl2-t2flow.
> > > > >>> > No readme though. Maybe some other devs can advise how to use
> it.
> > > > >>> >
> > > > >>> > Cheers,
> > > > >>> >
> > > > >>> > Ian
> > > > >>> >
> > > > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
> > > wrote:
> > > > >>> >
> > > > >>> >> Hi,
> > > > >>> >>
> > > > >>> >> Is there any predefined tree structure for t2flow xml file ?
> > > > >>> >>
> > > > >>> >> if yes, then provide me so that I am able to create java beans
> > for
> > > > it.
> > > > >>> >> otherwise, I will create it according to any t2flow xml file.
> > > > >>> >>
> > > > >>> >> Please revert ASAP.
> > > > >>> >>
> > > > >>> >> Thanks
> > > > >>> >>
> > > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > > > >>> finn.bacall@manchester.ac.uk
> > > > >>> >> >
> > > > >>> >> wrote:
> > > > >>> >>
> > > > >>> >> > This wouldn't be that hard to implement, you can get the
> > unique
> > > ID
> > > > >>> for
> > > > >>> >> the
> > > > >>> >> > workflow from the parser gem, see:
> > > > >>> >> >
> > > > >>> >> > https://github.com/myExperiment/workflow_parser-
> t2flow/blob/
> > > > >>> >> > master/lib/t2flow/model.rb#L136
> > > > >>> >> >
> > > > >>> >> > Then you'd just need to extract it in the parsing method:
> > > > >>> >> >
> > > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/
> master/
> > > > >>> >> > app/models/workflow.rb#L40
> > > > >>> >> >
> > > > >>> >> > and store it in a new field in the database.
> > > > >>> >> >
> > > > >>> >> > Cheers,
> > > > >>> >> >
> > > > >>> >> > Finn
> > > > >>> >> >
> > > > >>> >> >
> > > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > > > >>> >> >
> > > > >>> >> >> Hello,
> > > > >>> >> >>
> > > > >>> >> >> I think you are pretty much spot on with your diagnosis. I
> > > agree
> > > > it
> > > > >>> is a
> > > > >>> >> >> bit of a pain that the workflow ids are different. However,
> > > each
> > > > >>> >> workflow
> > > > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
> > that
> > > > >>> could be
> > > > >>> >> >> used to check if a workflow on myexperiment and the portal
> > are
> > > > the
> > > > >>> same.
> > > > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> > > > >>> >> 438f645d3d17"
> > > > >>> >> >> role="top"> in a t2flow file. This probably means that the
> > > portal
> > > > >>> would
> > > > >>> >> >> need an extension to search by workflow uuid. For now I
> would
> > > > just
> > > > >>> treat
> > > > >>> >> >> each run as having a unique workflow and we can always
> > improve
> > > it
> > > > >>> later.
> > > > >>> >> >>
> > > > >>> >> >> Cheers,
> > > > >>> >> >>
> > > > >>> >> >> Ian
> > > > >>> >> >>
> > > > >>> >> >> On 26 August 2016 at 08:02, Sagar <
> kumarsagar15795@gmail.com
> > >
> > > > >>> wrote:
> > > > >>> >> >>
> > > > >>> >> >> Hello,
> > > > >>> >> >>>
> > > > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > > > >>> >> >>>
> > > > >>> >> >>> Currently, I have understood that I need following steps
> to
> > > run
> > > > a
> > > > >>> >> >>> workflow
> > > > >>> >> >>> on taverna player portal
> > > > >>> >> >>>
> > > > >>> >> >>> 1) Download workflow content.
> > > > >>> >> >>> 2) Upload it to taverna player portal.
> > > > >>> >> >>> 3) Run it on taverna player portal.
> > > > >>> >> >>> 4) Show output of the complete workflow's run.
> > > > >>> >> >>>
> > > > >>> >> >>> I have also understood that there is no link between
> > > > myExperiment
> > > > >>> >> >>> workflow
> > > > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > > > >>> myExperiment's
> > > > >>> >> >>> workflow running history on Taverna player portal and
> also I
> > > > can't
> > > > >>> >> search
> > > > >>> >> >>> the same workflow in taverna player portal. For each new
> > run,
> > > I
> > > > >>> have to
> > > > >>> >> >>> upload it again.
> > > > >>> >> >>>
> > > > >>> >> >>>
> > > > >>> >> >>> If I have understood correct then Please revert back .
> > > > >>> >> >>>
> > > > >>> >> >>> If not then, Please correct me.
> > > > >>> >> >>>
> > > > >>> >> >>> Thanks
> > > > >>> >> >>>
> > > > >>> >> >>>
> > > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > > > ianwdunlop@gmail.com>
> > > > >>> >> >>> wrote:
> > > > >>> >> >>>
> > > > >>> >> >>> Hello,
> > > > >>> >> >>>>
> > > > >>> >> >>>> This is where the upload code is in the current mobile
> code
> > > > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> > > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> > c1483cebff/app/src/main/java/
> > > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > > > >>> >> >>>> WorkflowdetailFragment.java#L655
> > > > >>> >> >>>>
> > > > >>> >> >>>> Cheers,
> > > > >>> >> >>>>
> > > > >>> >> >>>> Ian
> > > > >>> >> >>>>
> > > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> > ianwdunlop@gmail.com
> > > >
> > > > >>> wrote:
> > > > >>> >> >>>>
> > > > >>> >> >>>> Hello,
> > > > >>> >> >>>>>
> > > > >>> >> >>>>> That upload code should already be available in the
> mobile
> > > > app.
> > > > >>> >> Larry,
> > > > >>> >> >>>>> myself and Finn spent a few hours figuring all that
> stuff
> > > out
> > > > >>> last
> > > > >>> >> time
> > > > >>> >> >>>>> round.
> > > > >>> >> >>>>> I have added an API call in the taverna-player-portal to
> > get
> > > > the
> > > > >>> runs
> > > > >>> >> >>>>>
> > > > >>> >> >>>> for
> > > > >>> >> >>>
> > > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
> > (hint
> > > > hint
> > > > >>> >> >>>>>
> > > > >>> >> >>>> Finn). I
> > > > >>> >> >>>>
> > > > >>> >> >>>>> even added some tests.
> > > > >>> >> >>>>>
> > > > >>> >> >>>>> Cheers,
> > > > >>> >> >>>>>
> > > > >>> >> >>>>> Ian
> > > > >>> >> >>>>>
> > > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > > > >>> >> finn.bacall@manchester.ac.uk>
> > > > >>> >> >>>>> wrote:
> > > > >>> >> >>>>>
> > > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>> Hi,
> > > > >>> >> >>>>>>>
> > > > >>> >> >>>>>>> I think there is some problem as mention below
> > > > >>> >> >>>>>>>
> > > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > > > >>> >> >>>>>>>
> > > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to
> upload
> > a
> > > > >>> workflow
> > > > >>> >> to
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>> the
> > > > >>> >> >>>>
> > > > >>> >> >>>>> portal:
> > > > >>> >> >>>>>> https://gist.github.com/larrytech7/
> 957cc61a3bdd82e3e030
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>> Basically the format is:
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>>      { "workflow" : { "document" :
> > "data:application/octet-
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>> stream;base64,<<<Insert
> > > > >>> >> >>>>
> > > > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>> Finn
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>>
> > > > >>> >> >>>>>
> > > > >>> >> >>>
> > > > >>> >> >>> --
> > > > >>> >> >>>
> > > > >>> >> >>> *With warm regards  *
> > > > >>> >> >>> *Sincerely yours*
> > > > >>> >> >>> Sagar
> > > > >>> >> >>>
> > > > >>> >> >>>
> > > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> > > innovation*
> > > > >>> >> >>> *Cluster Innovation Centre*
> > > > >>> >> >>> *University of Delhi *
> > > > >>> >> >>>
> > > > >>> >> >>>
> > > > >>> >> >
> > > > >>> >>
> > > > >>> >>
> > > > >>> >> --
> > > > >>> >>
> > > > >>> >> *With warm regards  *
> > > > >>> >> *Sincerely yours*
> > > > >>> >> Sagar
> > > > >>> >>
> > > > >>> >>
> > > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> > > > >>> >> *Cluster Innovation Centre*
> > > > >>> >> *University of Delhi *
> > > > >>> >>
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>> --
> > > > >>> Stian Soiland-Reyes
> > > > >>> Apache Taverna (incubating), Apache Commons
> > > > >>> http://orcid.org/0000-0001-9842-9718
> > > > >>>
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >>
> > > > >> *With warm regards  *
> > > > >> *Sincerely yours*
> > > > >> Sagar
> > > > >>
> > > > >>
> > > > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > >> *Cluster Innovation Centre*
> > > > >> *University of Delhi *
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > *With warm regards  *
> > > > > *Sincerely yours*
> > > > > Sagar
> > > > >
> > > > >
> > > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > > *Cluster Innovation Centre*
> > > > > *University of Delhi *
> > > >
> > > >
> > > >
> > > > --
> > > > Stian Soiland-Reyes
> > > > http://orcid.org/0000-0001-9842-9718
> > > >
> > >
> >
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

Here is the JDK requirement for different Android Version
https://source.android.com/source/requirements.html

Currently taverna language api support JAVA 8 and newer but we need minimum
JAVA 6 and newer support to use taverna language api in taverna mobile for
API 16 (JellyBean).

That's why we can't use taverna language api in taverna mobile.

So, Can you provide me what are the input and output  attribute in .t2flow
file to get their MIME ?


Thanks

On Thu, Sep 8, 2016 at 11:54 PM, Gale Naylor <Ga...@noventussolutions.com>
wrote:

> Here is the distribution of Android API levels in use as of Aug 1:
> https://developer.android.com/about/dashboards/index.html
>
> According to this, only 15% of all Android devices are running API 23.
>
>
> On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:
>
> > Hello,
> >
> > That page is typically clear as mud! I think it is implying that jdk 7 is
> > fine for all API levels but for jdk 8 you need API 23 and (if special
> > language features required) a different compiler. So as long as we don't
> > use jdk 8 features we will be ok (maybe).  I guess that means
> > taverna-language can be used (until we go all lambda crazy).
> >
> > Cheers,
> >
> > Ian
> >
> > On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> > wrote:
> >
> > > I don't think we use any Java 8 features in taverna-language (e.g.
> > > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
> > > 7.  I think it should be possible to make a subset of Taverna-language
> > > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> > > Maven profile?
> > >
> > > https://developer.android.com/guide/platform/j8-jack.html says you can
> > > use Java 7/8 features from API level 23-24.
> > >
> > > How do we decide which Android API level we want to support..?
> > >
> > > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > I was reading the readme and I found Taverna-language-API will only
> > work
> > > > with JAVA 8 and newer.
> > > > We can't use in taverna-mobile because Android API 16 works with JAVA
> > 6.
> > > >
> > > > So, Now provide me with the schema of the .t2flow file.
> > > >
> > > > Thanks
> > > >
> > > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
> > wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> How can I use the taverna-language API to know what will the inputs
> > and
> > > >> what will the outputs of workflow?
> > > >>
> > > >> I don't get any proper guide or code.
> > > >>
> > > >> Thanks
> > > >>
> > > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <
> stain@apache.org
> > >
> > > >> wrote:
> > > >>
> > > >>> Yes, you should use taverna-language to load the .t2flow and
> inspect
> > > it.
> > > >>>
> > > >>> You should not really need to make any Java beans for it as the
> > > >>> workflow wouldn't be constructed on the phone (although you could
> do
> > > >>> that with the Taverna Language API), but loaded from $somewhere as
> > > >>> previously saved from the Taverna Workbench or downloaded from
> > > >>> myExperiment - however you can use the API to inspect the workflow,
> > > >>> e.g. list the input port names of the main workflow.
> > > >>>
> > > >>>
> > > >>> See:
> > > >>>
> > > >>> https://taverna.incubator.apache.org/download/language/
> > > >>>
> > > >>> Javadoc:
> > > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > > >>>
> > > >>> Example:
> > > >>> https://github.com/apache/incubator-taverna-language/blob/
> > > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > > >>> taverna/examples/ProcessorNames.java
> > > >>>
> > > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com>
> wrote:
> > > >>> > Hello,
> > > >>> >
> > > >>> > There is an xsd for t2flow available in the taverna-language
> module
> > > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > > >>> > You should be able to re-use taverna-language to parse t2flow
> > rather
> > > >>> than
> > > >>> > build your own parser. Perhaps using
> > > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > > >>> master/taverna-scufl2-t2flow.
> > > >>> > No readme though. Maybe some other devs can advise how to use it.
> > > >>> >
> > > >>> > Cheers,
> > > >>> >
> > > >>> > Ian
> > > >>> >
> > > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
> > wrote:
> > > >>> >
> > > >>> >> Hi,
> > > >>> >>
> > > >>> >> Is there any predefined tree structure for t2flow xml file ?
> > > >>> >>
> > > >>> >> if yes, then provide me so that I am able to create java beans
> for
> > > it.
> > > >>> >> otherwise, I will create it according to any t2flow xml file.
> > > >>> >>
> > > >>> >> Please revert ASAP.
> > > >>> >>
> > > >>> >> Thanks
> > > >>> >>
> > > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > > >>> finn.bacall@manchester.ac.uk
> > > >>> >> >
> > > >>> >> wrote:
> > > >>> >>
> > > >>> >> > This wouldn't be that hard to implement, you can get the
> unique
> > ID
> > > >>> for
> > > >>> >> the
> > > >>> >> > workflow from the parser gem, see:
> > > >>> >> >
> > > >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> > > >>> >> > master/lib/t2flow/model.rb#L136
> > > >>> >> >
> > > >>> >> > Then you'd just need to extract it in the parsing method:
> > > >>> >> >
> > > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
> > > >>> >> > app/models/workflow.rb#L40
> > > >>> >> >
> > > >>> >> > and store it in a new field in the database.
> > > >>> >> >
> > > >>> >> > Cheers,
> > > >>> >> >
> > > >>> >> > Finn
> > > >>> >> >
> > > >>> >> >
> > > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > > >>> >> >
> > > >>> >> >> Hello,
> > > >>> >> >>
> > > >>> >> >> I think you are pretty much spot on with your diagnosis. I
> > agree
> > > it
> > > >>> is a
> > > >>> >> >> bit of a pain that the workflow ids are different. However,
> > each
> > > >>> >> workflow
> > > >>> >> >> does have a unique uuid internally (with t2flow anyway) so
> that
> > > >>> could be
> > > >>> >> >> used to check if a workflow on myexperiment and the portal
> are
> > > the
> > > >>> same.
> > > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> > > >>> >> 438f645d3d17"
> > > >>> >> >> role="top"> in a t2flow file. This probably means that the
> > portal
> > > >>> would
> > > >>> >> >> need an extension to search by workflow uuid. For now I would
> > > just
> > > >>> treat
> > > >>> >> >> each run as having a unique workflow and we can always
> improve
> > it
> > > >>> later.
> > > >>> >> >>
> > > >>> >> >> Cheers,
> > > >>> >> >>
> > > >>> >> >> Ian
> > > >>> >> >>
> > > >>> >> >> On 26 August 2016 at 08:02, Sagar <kumarsagar15795@gmail.com
> >
> > > >>> wrote:
> > > >>> >> >>
> > > >>> >> >> Hello,
> > > >>> >> >>>
> > > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > > >>> >> >>>
> > > >>> >> >>> Currently, I have understood that I need following steps to
> > run
> > > a
> > > >>> >> >>> workflow
> > > >>> >> >>> on taverna player portal
> > > >>> >> >>>
> > > >>> >> >>> 1) Download workflow content.
> > > >>> >> >>> 2) Upload it to taverna player portal.
> > > >>> >> >>> 3) Run it on taverna player portal.
> > > >>> >> >>> 4) Show output of the complete workflow's run.
> > > >>> >> >>>
> > > >>> >> >>> I have also understood that there is no link between
> > > myExperiment
> > > >>> >> >>> workflow
> > > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > > >>> myExperiment's
> > > >>> >> >>> workflow running history on Taverna player portal and also I
> > > can't
> > > >>> >> search
> > > >>> >> >>> the same workflow in taverna player portal. For each new
> run,
> > I
> > > >>> have to
> > > >>> >> >>> upload it again.
> > > >>> >> >>>
> > > >>> >> >>>
> > > >>> >> >>> If I have understood correct then Please revert back .
> > > >>> >> >>>
> > > >>> >> >>> If not then, Please correct me.
> > > >>> >> >>>
> > > >>> >> >>> Thanks
> > > >>> >> >>>
> > > >>> >> >>>
> > > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > > ianwdunlop@gmail.com>
> > > >>> >> >>> wrote:
> > > >>> >> >>>
> > > >>> >> >>> Hello,
> > > >>> >> >>>>
> > > >>> >> >>>> This is where the upload code is in the current mobile code
> > > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> > > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7e
> c1483cebff/app/src/main/java/
> > > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > > >>> >> >>>> WorkflowdetailFragment.java#L655
> > > >>> >> >>>>
> > > >>> >> >>>> Cheers,
> > > >>> >> >>>>
> > > >>> >> >>>> Ian
> > > >>> >> >>>>
> > > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <
> ianwdunlop@gmail.com
> > >
> > > >>> wrote:
> > > >>> >> >>>>
> > > >>> >> >>>> Hello,
> > > >>> >> >>>>>
> > > >>> >> >>>>> That upload code should already be available in the mobile
> > > app.
> > > >>> >> Larry,
> > > >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff
> > out
> > > >>> last
> > > >>> >> time
> > > >>> >> >>>>> round.
> > > >>> >> >>>>> I have added an API call in the taverna-player-portal to
> get
> > > the
> > > >>> runs
> > > >>> >> >>>>>
> > > >>> >> >>>> for
> > > >>> >> >>>
> > > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github
> (hint
> > > hint
> > > >>> >> >>>>>
> > > >>> >> >>>> Finn). I
> > > >>> >> >>>>
> > > >>> >> >>>>> even added some tests.
> > > >>> >> >>>>>
> > > >>> >> >>>>> Cheers,
> > > >>> >> >>>>>
> > > >>> >> >>>>> Ian
> > > >>> >> >>>>>
> > > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > > >>> >> finn.bacall@manchester.ac.uk>
> > > >>> >> >>>>> wrote:
> > > >>> >> >>>>>
> > > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > > >>> >> >>>>>>
> > > >>> >> >>>>>> Hi,
> > > >>> >> >>>>>>>
> > > >>> >> >>>>>>> I think there is some problem as mention below
> > > >>> >> >>>>>>>
> > > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > > >>> >> >>>>>>>
> > > >>> >> >>>>>>> here's a gist of some Java code someone wrote to upload
> a
> > > >>> workflow
> > > >>> >> to
> > > >>> >> >>>>>>
> > > >>> >> >>>>> the
> > > >>> >> >>>>
> > > >>> >> >>>>> portal:
> > > >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> > > >>> >> >>>>>>
> > > >>> >> >>>>>> Basically the format is:
> > > >>> >> >>>>>>
> > > >>> >> >>>>>>      { "workflow" : { "document" :
> "data:application/octet-
> > > >>> >> >>>>>>
> > > >>> >> >>>>> stream;base64,<<<Insert
> > > >>> >> >>>>
> > > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > > >>> >> >>>>>>
> > > >>> >> >>>>>> Finn
> > > >>> >> >>>>>>
> > > >>> >> >>>>>>
> > > >>> >> >>>>>
> > > >>> >> >>>
> > > >>> >> >>> --
> > > >>> >> >>>
> > > >>> >> >>> *With warm regards  *
> > > >>> >> >>> *Sincerely yours*
> > > >>> >> >>> Sagar
> > > >>> >> >>>
> > > >>> >> >>>
> > > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> > innovation*
> > > >>> >> >>> *Cluster Innovation Centre*
> > > >>> >> >>> *University of Delhi *
> > > >>> >> >>>
> > > >>> >> >>>
> > > >>> >> >
> > > >>> >>
> > > >>> >>
> > > >>> >> --
> > > >>> >>
> > > >>> >> *With warm regards  *
> > > >>> >> *Sincerely yours*
> > > >>> >> Sagar
> > > >>> >>
> > > >>> >>
> > > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > >>> >> *Cluster Innovation Centre*
> > > >>> >> *University of Delhi *
> > > >>> >>
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Stian Soiland-Reyes
> > > >>> Apache Taverna (incubating), Apache Commons
> > > >>> http://orcid.org/0000-0001-9842-9718
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >>
> > > >> *With warm regards  *
> > > >> *Sincerely yours*
> > > >> Sagar
> > > >>
> > > >>
> > > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > >> *Cluster Innovation Centre*
> > > >> *University of Delhi *
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > >
> > > > *With warm regards  *
> > > > *Sincerely yours*
> > > > Sagar
> > > >
> > > >
> > > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > > *Cluster Innovation Centre*
> > > > *University of Delhi *
> > >
> > >
> > >
> > > --
> > > Stian Soiland-Reyes
> > > http://orcid.org/0000-0001-9842-9718
> > >
> >
>



-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Gale Naylor <Ga...@noventussolutions.com>.
Here is the distribution of Android API levels in use as of Aug 1:
https://developer.android.com/about/dashboards/index.html

According to this, only 15% of all Android devices are running API 23.


On Thu, Sep 8, 2016 at 6:29 AM Ian Dunlop <ia...@gmail.com> wrote:

> Hello,
>
> That page is typically clear as mud! I think it is implying that jdk 7 is
> fine for all API levels but for jdk 8 you need API 23 and (if special
> language features required) a different compiler. So as long as we don't
> use jdk 8 features we will be ok (maybe).  I guess that means
> taverna-language can be used (until we go all lambda crazy).
>
> Cheers,
>
> Ian
>
> On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org>
> wrote:
>
> > I don't think we use any Java 8 features in taverna-language (e.g.
> > Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
> > 7.  I think it should be possible to make a subset of Taverna-language
> > you need compile for JAva 6 (e.g. taverna-scufl2-api,
> > taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> > Maven profile?
> >
> > https://developer.android.com/guide/platform/j8-jack.html says you can
> > use Java 7/8 features from API level 23-24.
> >
> > How do we decide which Android API level we want to support..?
> >
> > On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
> > > Hi,
> > >
> > > I was reading the readme and I found Taverna-language-API will only
> work
> > > with JAVA 8 and newer.
> > > We can't use in taverna-mobile because Android API 16 works with JAVA
> 6.
> > >
> > > So, Now provide me with the schema of the .t2flow file.
> > >
> > > Thanks
> > >
> > > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com>
> wrote:
> > >
> > >> Hi,
> > >>
> > >> How can I use the taverna-language API to know what will the inputs
> and
> > >> what will the outputs of workflow?
> > >>
> > >> I don't get any proper guide or code.
> > >>
> > >> Thanks
> > >>
> > >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <stain@apache.org
> >
> > >> wrote:
> > >>
> > >>> Yes, you should use taverna-language to load the .t2flow and inspect
> > it.
> > >>>
> > >>> You should not really need to make any Java beans for it as the
> > >>> workflow wouldn't be constructed on the phone (although you could do
> > >>> that with the Taverna Language API), but loaded from $somewhere as
> > >>> previously saved from the Taverna Workbench or downloaded from
> > >>> myExperiment - however you can use the API to inspect the workflow,
> > >>> e.g. list the input port names of the main workflow.
> > >>>
> > >>>
> > >>> See:
> > >>>
> > >>> https://taverna.incubator.apache.org/download/language/
> > >>>
> > >>> Javadoc:
> > >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> > >>> e/org/apache/taverna/scufl2/api/package-summary.html
> > >>>
> > >>> Example:
> > >>> https://github.com/apache/incubator-taverna-language/blob/
> > >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> > >>> taverna/examples/ProcessorNames.java
> > >>>
> > >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
> > >>> > Hello,
> > >>> >
> > >>> > There is an xsd for t2flow available in the taverna-language module
> > >>> > https://github.com/apache/incubator-taverna-language/blob/
> > >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> > >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > >>> > You should be able to re-use taverna-language to parse t2flow
> rather
> > >>> than
> > >>> > build your own parser. Perhaps using
> > >>> > https://github.com/apache/incubator-taverna-language/tree/
> > >>> master/taverna-scufl2-t2flow.
> > >>> > No readme though. Maybe some other devs can advise how to use it.
> > >>> >
> > >>> > Cheers,
> > >>> >
> > >>> > Ian
> > >>> >
> > >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com>
> wrote:
> > >>> >
> > >>> >> Hi,
> > >>> >>
> > >>> >> Is there any predefined tree structure for t2flow xml file ?
> > >>> >>
> > >>> >> if yes, then provide me so that I am able to create java beans for
> > it.
> > >>> >> otherwise, I will create it according to any t2flow xml file.
> > >>> >>
> > >>> >> Please revert ASAP.
> > >>> >>
> > >>> >> Thanks
> > >>> >>
> > >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> > >>> finn.bacall@manchester.ac.uk
> > >>> >> >
> > >>> >> wrote:
> > >>> >>
> > >>> >> > This wouldn't be that hard to implement, you can get the unique
> ID
> > >>> for
> > >>> >> the
> > >>> >> > workflow from the parser gem, see:
> > >>> >> >
> > >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> > >>> >> > master/lib/t2flow/model.rb#L136
> > >>> >> >
> > >>> >> > Then you'd just need to extract it in the parsing method:
> > >>> >> >
> > >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
> > >>> >> > app/models/workflow.rb#L40
> > >>> >> >
> > >>> >> > and store it in a new field in the database.
> > >>> >> >
> > >>> >> > Cheers,
> > >>> >> >
> > >>> >> > Finn
> > >>> >> >
> > >>> >> >
> > >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> > >>> >> >
> > >>> >> >> Hello,
> > >>> >> >>
> > >>> >> >> I think you are pretty much spot on with your diagnosis. I
> agree
> > it
> > >>> is a
> > >>> >> >> bit of a pain that the workflow ids are different. However,
> each
> > >>> >> workflow
> > >>> >> >> does have a unique uuid internally (with t2flow anyway) so that
> > >>> could be
> > >>> >> >> used to check if a workflow on myexperiment and the portal are
> > the
> > >>> same.
> > >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> > >>> >> 438f645d3d17"
> > >>> >> >> role="top"> in a t2flow file. This probably means that the
> portal
> > >>> would
> > >>> >> >> need an extension to search by workflow uuid. For now I would
> > just
> > >>> treat
> > >>> >> >> each run as having a unique workflow and we can always improve
> it
> > >>> later.
> > >>> >> >>
> > >>> >> >> Cheers,
> > >>> >> >>
> > >>> >> >> Ian
> > >>> >> >>
> > >>> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com>
> > >>> wrote:
> > >>> >> >>
> > >>> >> >> Hello,
> > >>> >> >>>
> > >>> >> >>> Thank you for providing code. Now, I am working on it.
> > >>> >> >>>
> > >>> >> >>> Currently, I have understood that I need following steps to
> run
> > a
> > >>> >> >>> workflow
> > >>> >> >>> on taverna player portal
> > >>> >> >>>
> > >>> >> >>> 1) Download workflow content.
> > >>> >> >>> 2) Upload it to taverna player portal.
> > >>> >> >>> 3) Run it on taverna player portal.
> > >>> >> >>> 4) Show output of the complete workflow's run.
> > >>> >> >>>
> > >>> >> >>> I have also understood that there is no link between
> > myExperiment
> > >>> >> >>> workflow
> > >>> >> >>> and Taverna Player workflow that's why I can't retain
> > >>> myExperiment's
> > >>> >> >>> workflow running history on Taverna player portal and also I
> > can't
> > >>> >> search
> > >>> >> >>> the same workflow in taverna player portal. For each new run,
> I
> > >>> have to
> > >>> >> >>> upload it again.
> > >>> >> >>>
> > >>> >> >>>
> > >>> >> >>> If I have understood correct then Please revert back .
> > >>> >> >>>
> > >>> >> >>> If not then, Please correct me.
> > >>> >> >>>
> > >>> >> >>> Thanks
> > >>> >> >>>
> > >>> >> >>>
> > >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> > ianwdunlop@gmail.com>
> > >>> >> >>> wrote:
> > >>> >> >>>
> > >>> >> >>> Hello,
> > >>> >> >>>>
> > >>> >> >>>> This is where the upload code is in the current mobile code
> > >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> > >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> > >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> > >>> >> >>>> WorkflowdetailFragment.java#L655
> > >>> >> >>>>
> > >>> >> >>>> Cheers,
> > >>> >> >>>>
> > >>> >> >>>> Ian
> > >>> >> >>>>
> > >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ianwdunlop@gmail.com
> >
> > >>> wrote:
> > >>> >> >>>>
> > >>> >> >>>> Hello,
> > >>> >> >>>>>
> > >>> >> >>>>> That upload code should already be available in the mobile
> > app.
> > >>> >> Larry,
> > >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff
> out
> > >>> last
> > >>> >> time
> > >>> >> >>>>> round.
> > >>> >> >>>>> I have added an API call in the taverna-player-portal to get
> > the
> > >>> runs
> > >>> >> >>>>>
> > >>> >> >>>> for
> > >>> >> >>>
> > >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint
> > hint
> > >>> >> >>>>>
> > >>> >> >>>> Finn). I
> > >>> >> >>>>
> > >>> >> >>>>> even added some tests.
> > >>> >> >>>>>
> > >>> >> >>>>> Cheers,
> > >>> >> >>>>>
> > >>> >> >>>>> Ian
> > >>> >> >>>>>
> > >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> > >>> >> finn.bacall@manchester.ac.uk>
> > >>> >> >>>>> wrote:
> > >>> >> >>>>>
> > >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> > >>> >> >>>>>>
> > >>> >> >>>>>> Hi,
> > >>> >> >>>>>>>
> > >>> >> >>>>>>> I think there is some problem as mention below
> > >>> >> >>>>>>>
> > >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> > >>> >> >>>>>>>
> > >>> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
> > >>> workflow
> > >>> >> to
> > >>> >> >>>>>>
> > >>> >> >>>>> the
> > >>> >> >>>>
> > >>> >> >>>>> portal:
> > >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> > >>> >> >>>>>>
> > >>> >> >>>>>> Basically the format is:
> > >>> >> >>>>>>
> > >>> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
> > >>> >> >>>>>>
> > >>> >> >>>>> stream;base64,<<<Insert
> > >>> >> >>>>
> > >>> >> >>>>> base64 encoded workflow here>>>" } }
> > >>> >> >>>>>>
> > >>> >> >>>>>> Finn
> > >>> >> >>>>>>
> > >>> >> >>>>>>
> > >>> >> >>>>>
> > >>> >> >>>
> > >>> >> >>> --
> > >>> >> >>>
> > >>> >> >>> *With warm regards  *
> > >>> >> >>> *Sincerely yours*
> > >>> >> >>> Sagar
> > >>> >> >>>
> > >>> >> >>>
> > >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical
> innovation*
> > >>> >> >>> *Cluster Innovation Centre*
> > >>> >> >>> *University of Delhi *
> > >>> >> >>>
> > >>> >> >>>
> > >>> >> >
> > >>> >>
> > >>> >>
> > >>> >> --
> > >>> >>
> > >>> >> *With warm regards  *
> > >>> >> *Sincerely yours*
> > >>> >> Sagar
> > >>> >>
> > >>> >>
> > >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > >>> >> *Cluster Innovation Centre*
> > >>> >> *University of Delhi *
> > >>> >>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Stian Soiland-Reyes
> > >>> Apache Taverna (incubating), Apache Commons
> > >>> http://orcid.org/0000-0001-9842-9718
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >>
> > >> *With warm regards  *
> > >> *Sincerely yours*
> > >> Sagar
> > >>
> > >>
> > >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > >> *Cluster Innovation Centre*
> > >> *University of Delhi *
> > >>
> > >>
> > >
> > >
> > > --
> > >
> > > *With warm regards  *
> > > *Sincerely yours*
> > > Sagar
> > >
> > >
> > > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > > *Cluster Innovation Centre*
> > > *University of Delhi *
> >
> >
> >
> > --
> > Stian Soiland-Reyes
> > http://orcid.org/0000-0001-9842-9718
> >
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

That page is typically clear as mud! I think it is implying that jdk 7 is
fine for all API levels but for jdk 8 you need API 23 and (if special
language features required) a different compiler. So as long as we don't
use jdk 8 features we will be ok (maybe).  I guess that means
taverna-language can be used (until we go all lambda crazy).

Cheers,

Ian

On 8 September 2016 at 14:24, Stian Soiland-Reyes <st...@apache.org> wrote:

> I don't think we use any Java 8 features in taverna-language (e.g.
> Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
> 7.  I think it should be possible to make a subset of Taverna-language
> you need compile for JAva 6 (e.g. taverna-scufl2-api,
> taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
> Maven profile?
>
> https://developer.android.com/guide/platform/j8-jack.html says you can
> use Java 7/8 features from API level 23-24.
>
> How do we decide which Android API level we want to support..?
>
> On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
> > Hi,
> >
> > I was reading the readme and I found Taverna-language-API will only work
> > with JAVA 8 and newer.
> > We can't use in taverna-mobile because Android API 16 works with JAVA 6.
> >
> > So, Now provide me with the schema of the .t2flow file.
> >
> > Thanks
> >
> > On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> How can I use the taverna-language API to know what will the inputs and
> >> what will the outputs of workflow?
> >>
> >> I don't get any proper guide or code.
> >>
> >> Thanks
> >>
> >> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <st...@apache.org>
> >> wrote:
> >>
> >>> Yes, you should use taverna-language to load the .t2flow and inspect
> it.
> >>>
> >>> You should not really need to make any Java beans for it as the
> >>> workflow wouldn't be constructed on the phone (although you could do
> >>> that with the Taverna Language API), but loaded from $somewhere as
> >>> previously saved from the Taverna Workbench or downloaded from
> >>> myExperiment - however you can use the API to inspect the workflow,
> >>> e.g. list the input port names of the main workflow.
> >>>
> >>>
> >>> See:
> >>>
> >>> https://taverna.incubator.apache.org/download/language/
> >>>
> >>> Javadoc:
> >>> https://taverna.incubator.apache.org/javadoc/taverna-languag
> >>> e/org/apache/taverna/scufl2/api/package-summary.html
> >>>
> >>> Example:
> >>> https://github.com/apache/incubator-taverna-language/blob/
> >>> master/taverna-scufl2-examples/src/main/java/org/apache/
> >>> taverna/examples/ProcessorNames.java
> >>>
> >>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
> >>> > Hello,
> >>> >
> >>> > There is an xsd for t2flow available in the taverna-language module
> >>> > https://github.com/apache/incubator-taverna-language/blob/
> >>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
> >>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> >>> > You should be able to re-use taverna-language to parse t2flow rather
> >>> than
> >>> > build your own parser. Perhaps using
> >>> > https://github.com/apache/incubator-taverna-language/tree/
> >>> master/taverna-scufl2-t2flow.
> >>> > No readme though. Maybe some other devs can advise how to use it.
> >>> >
> >>> > Cheers,
> >>> >
> >>> > Ian
> >>> >
> >>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:
> >>> >
> >>> >> Hi,
> >>> >>
> >>> >> Is there any predefined tree structure for t2flow xml file ?
> >>> >>
> >>> >> if yes, then provide me so that I am able to create java beans for
> it.
> >>> >> otherwise, I will create it according to any t2flow xml file.
> >>> >>
> >>> >> Please revert ASAP.
> >>> >>
> >>> >> Thanks
> >>> >>
> >>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> >>> finn.bacall@manchester.ac.uk
> >>> >> >
> >>> >> wrote:
> >>> >>
> >>> >> > This wouldn't be that hard to implement, you can get the unique ID
> >>> for
> >>> >> the
> >>> >> > workflow from the parser gem, see:
> >>> >> >
> >>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> >>> >> > master/lib/t2flow/model.rb#L136
> >>> >> >
> >>> >> > Then you'd just need to extract it in the parsing method:
> >>> >> >
> >>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
> >>> >> > app/models/workflow.rb#L40
> >>> >> >
> >>> >> > and store it in a new field in the database.
> >>> >> >
> >>> >> > Cheers,
> >>> >> >
> >>> >> > Finn
> >>> >> >
> >>> >> >
> >>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >>> >> >
> >>> >> >> Hello,
> >>> >> >>
> >>> >> >> I think you are pretty much spot on with your diagnosis. I agree
> it
> >>> is a
> >>> >> >> bit of a pain that the workflow ids are different. However, each
> >>> >> workflow
> >>> >> >> does have a unique uuid internally (with t2flow anyway) so that
> >>> could be
> >>> >> >> used to check if a workflow on myexperiment and the portal are
> the
> >>> same.
> >>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> >>> >> 438f645d3d17"
> >>> >> >> role="top"> in a t2flow file. This probably means that the portal
> >>> would
> >>> >> >> need an extension to search by workflow uuid. For now I would
> just
> >>> treat
> >>> >> >> each run as having a unique workflow and we can always improve it
> >>> later.
> >>> >> >>
> >>> >> >> Cheers,
> >>> >> >>
> >>> >> >> Ian
> >>> >> >>
> >>> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com>
> >>> wrote:
> >>> >> >>
> >>> >> >> Hello,
> >>> >> >>>
> >>> >> >>> Thank you for providing code. Now, I am working on it.
> >>> >> >>>
> >>> >> >>> Currently, I have understood that I need following steps to run
> a
> >>> >> >>> workflow
> >>> >> >>> on taverna player portal
> >>> >> >>>
> >>> >> >>> 1) Download workflow content.
> >>> >> >>> 2) Upload it to taverna player portal.
> >>> >> >>> 3) Run it on taverna player portal.
> >>> >> >>> 4) Show output of the complete workflow's run.
> >>> >> >>>
> >>> >> >>> I have also understood that there is no link between
> myExperiment
> >>> >> >>> workflow
> >>> >> >>> and Taverna Player workflow that's why I can't retain
> >>> myExperiment's
> >>> >> >>> workflow running history on Taverna player portal and also I
> can't
> >>> >> search
> >>> >> >>> the same workflow in taverna player portal. For each new run, I
> >>> have to
> >>> >> >>> upload it again.
> >>> >> >>>
> >>> >> >>>
> >>> >> >>> If I have understood correct then Please revert back .
> >>> >> >>>
> >>> >> >>> If not then, Please correct me.
> >>> >> >>>
> >>> >> >>> Thanks
> >>> >> >>>
> >>> >> >>>
> >>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <
> ianwdunlop@gmail.com>
> >>> >> >>> wrote:
> >>> >> >>>
> >>> >> >>> Hello,
> >>> >> >>>>
> >>> >> >>>> This is where the upload code is in the current mobile code
> >>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> >>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> >>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> >>> >> >>>> WorkflowdetailFragment.java#L655
> >>> >> >>>>
> >>> >> >>>> Cheers,
> >>> >> >>>>
> >>> >> >>>> Ian
> >>> >> >>>>
> >>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com>
> >>> wrote:
> >>> >> >>>>
> >>> >> >>>> Hello,
> >>> >> >>>>>
> >>> >> >>>>> That upload code should already be available in the mobile
> app.
> >>> >> Larry,
> >>> >> >>>>> myself and Finn spent a few hours figuring all that stuff out
> >>> last
> >>> >> time
> >>> >> >>>>> round.
> >>> >> >>>>> I have added an API call in the taverna-player-portal to get
> the
> >>> runs
> >>> >> >>>>>
> >>> >> >>>> for
> >>> >> >>>
> >>> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint
> hint
> >>> >> >>>>>
> >>> >> >>>> Finn). I
> >>> >> >>>>
> >>> >> >>>>> even added some tests.
> >>> >> >>>>>
> >>> >> >>>>> Cheers,
> >>> >> >>>>>
> >>> >> >>>>> Ian
> >>> >> >>>>>
> >>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> >>> >> finn.bacall@manchester.ac.uk>
> >>> >> >>>>> wrote:
> >>> >> >>>>>
> >>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >>> >> >>>>>>
> >>> >> >>>>>> Hi,
> >>> >> >>>>>>>
> >>> >> >>>>>>> I think there is some problem as mention below
> >>> >> >>>>>>>
> >>> >> >>>>>>> 1) How can I upload a workflow using API ?
> >>> >> >>>>>>>
> >>> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
> >>> workflow
> >>> >> to
> >>> >> >>>>>>
> >>> >> >>>>> the
> >>> >> >>>>
> >>> >> >>>>> portal:
> >>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> >>> >> >>>>>>
> >>> >> >>>>>> Basically the format is:
> >>> >> >>>>>>
> >>> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
> >>> >> >>>>>>
> >>> >> >>>>> stream;base64,<<<Insert
> >>> >> >>>>
> >>> >> >>>>> base64 encoded workflow here>>>" } }
> >>> >> >>>>>>
> >>> >> >>>>>> Finn
> >>> >> >>>>>>
> >>> >> >>>>>>
> >>> >> >>>>>
> >>> >> >>>
> >>> >> >>> --
> >>> >> >>>
> >>> >> >>> *With warm regards  *
> >>> >> >>> *Sincerely yours*
> >>> >> >>> Sagar
> >>> >> >>>
> >>> >> >>>
> >>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >>> >> >>> *Cluster Innovation Centre*
> >>> >> >>> *University of Delhi *
> >>> >> >>>
> >>> >> >>>
> >>> >> >
> >>> >>
> >>> >>
> >>> >> --
> >>> >>
> >>> >> *With warm regards  *
> >>> >> *Sincerely yours*
> >>> >> Sagar
> >>> >>
> >>> >>
> >>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >>> >> *Cluster Innovation Centre*
> >>> >> *University of Delhi *
> >>> >>
> >>>
> >>>
> >>>
> >>> --
> >>> Stian Soiland-Reyes
> >>> Apache Taverna (incubating), Apache Commons
> >>> http://orcid.org/0000-0001-9842-9718
> >>>
> >>
> >>
> >>
> >> --
> >>
> >> *With warm regards  *
> >> *Sincerely yours*
> >> Sagar
> >>
> >>
> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> *Cluster Innovation Centre*
> >> *University of Delhi *
> >>
> >>
> >
> >
> > --
> >
> > *With warm regards  *
> > *Sincerely yours*
> > Sagar
> >
> >
> > *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> > *Cluster Innovation Centre*
> > *University of Delhi *
>
>
>
> --
> Stian Soiland-Reyes
> http://orcid.org/0000-0001-9842-9718
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
I don't think we use any Java 8 features in taverna-language (e.g.
Stream or lambdas) - but taverna-robundle use java.nio.Path from Java
7.  I think it should be possible to make a subset of Taverna-language
you need compile for JAva 6 (e.g. taverna-scufl2-api,
taverna-scufl2-t2flow and taverna-scufl2-ucfpackage) - perhaps as a
Maven profile?

https://developer.android.com/guide/platform/j8-jack.html says you can
use Java 7/8 features from API level 23-24.

How do we decide which Android API level we want to support..?

On 8 September 2016 at 10:56, Sagar <ku...@gmail.com> wrote:
> Hi,
>
> I was reading the readme and I found Taverna-language-API will only work
> with JAVA 8 and newer.
> We can't use in taverna-mobile because Android API 16 works with JAVA 6.
>
> So, Now provide me with the schema of the .t2flow file.
>
> Thanks
>
> On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com> wrote:
>
>> Hi,
>>
>> How can I use the taverna-language API to know what will the inputs and
>> what will the outputs of workflow?
>>
>> I don't get any proper guide or code.
>>
>> Thanks
>>
>> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <st...@apache.org>
>> wrote:
>>
>>> Yes, you should use taverna-language to load the .t2flow and inspect it.
>>>
>>> You should not really need to make any Java beans for it as the
>>> workflow wouldn't be constructed on the phone (although you could do
>>> that with the Taverna Language API), but loaded from $somewhere as
>>> previously saved from the Taverna Workbench or downloaded from
>>> myExperiment - however you can use the API to inspect the workflow,
>>> e.g. list the input port names of the main workflow.
>>>
>>>
>>> See:
>>>
>>> https://taverna.incubator.apache.org/download/language/
>>>
>>> Javadoc:
>>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>>> e/org/apache/taverna/scufl2/api/package-summary.html
>>>
>>> Example:
>>> https://github.com/apache/incubator-taverna-language/blob/
>>> master/taverna-scufl2-examples/src/main/java/org/apache/
>>> taverna/examples/ProcessorNames.java
>>>
>>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
>>> > Hello,
>>> >
>>> > There is an xsd for t2flow available in the taverna-language module
>>> > https://github.com/apache/incubator-taverna-language/blob/
>>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>>> > You should be able to re-use taverna-language to parse t2flow rather
>>> than
>>> > build your own parser. Perhaps using
>>> > https://github.com/apache/incubator-taverna-language/tree/
>>> master/taverna-scufl2-t2flow.
>>> > No readme though. Maybe some other devs can advise how to use it.
>>> >
>>> > Cheers,
>>> >
>>> > Ian
>>> >
>>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:
>>> >
>>> >> Hi,
>>> >>
>>> >> Is there any predefined tree structure for t2flow xml file ?
>>> >>
>>> >> if yes, then provide me so that I am able to create java beans for it.
>>> >> otherwise, I will create it according to any t2flow xml file.
>>> >>
>>> >> Please revert ASAP.
>>> >>
>>> >> Thanks
>>> >>
>>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>>> finn.bacall@manchester.ac.uk
>>> >> >
>>> >> wrote:
>>> >>
>>> >> > This wouldn't be that hard to implement, you can get the unique ID
>>> for
>>> >> the
>>> >> > workflow from the parser gem, see:
>>> >> >
>>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
>>> >> > master/lib/t2flow/model.rb#L136
>>> >> >
>>> >> > Then you'd just need to extract it in the parsing method:
>>> >> >
>>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
>>> >> > app/models/workflow.rb#L40
>>> >> >
>>> >> > and store it in a new field in the database.
>>> >> >
>>> >> > Cheers,
>>> >> >
>>> >> > Finn
>>> >> >
>>> >> >
>>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>>> >> >
>>> >> >> Hello,
>>> >> >>
>>> >> >> I think you are pretty much spot on with your diagnosis. I agree it
>>> is a
>>> >> >> bit of a pain that the workflow ids are different. However, each
>>> >> workflow
>>> >> >> does have a unique uuid internally (with t2flow anyway) so that
>>> could be
>>> >> >> used to check if a workflow on myexperiment and the portal are the
>>> same.
>>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
>>> >> 438f645d3d17"
>>> >> >> role="top"> in a t2flow file. This probably means that the portal
>>> would
>>> >> >> need an extension to search by workflow uuid. For now I would just
>>> treat
>>> >> >> each run as having a unique workflow and we can always improve it
>>> later.
>>> >> >>
>>> >> >> Cheers,
>>> >> >>
>>> >> >> Ian
>>> >> >>
>>> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com>
>>> wrote:
>>> >> >>
>>> >> >> Hello,
>>> >> >>>
>>> >> >>> Thank you for providing code. Now, I am working on it.
>>> >> >>>
>>> >> >>> Currently, I have understood that I need following steps to run a
>>> >> >>> workflow
>>> >> >>> on taverna player portal
>>> >> >>>
>>> >> >>> 1) Download workflow content.
>>> >> >>> 2) Upload it to taverna player portal.
>>> >> >>> 3) Run it on taverna player portal.
>>> >> >>> 4) Show output of the complete workflow's run.
>>> >> >>>
>>> >> >>> I have also understood that there is no link between myExperiment
>>> >> >>> workflow
>>> >> >>> and Taverna Player workflow that's why I can't retain
>>> myExperiment's
>>> >> >>> workflow running history on Taverna player portal and also I can't
>>> >> search
>>> >> >>> the same workflow in taverna player portal. For each new run, I
>>> have to
>>> >> >>> upload it again.
>>> >> >>>
>>> >> >>>
>>> >> >>> If I have understood correct then Please revert back .
>>> >> >>>
>>> >> >>> If not then, Please correct me.
>>> >> >>>
>>> >> >>> Thanks
>>> >> >>>
>>> >> >>>
>>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
>>> >> >>> wrote:
>>> >> >>>
>>> >> >>> Hello,
>>> >> >>>>
>>> >> >>>> This is where the upload code is in the current mobile code
>>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
>>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>>> >> >>>> WorkflowdetailFragment.java#L655
>>> >> >>>>
>>> >> >>>> Cheers,
>>> >> >>>>
>>> >> >>>> Ian
>>> >> >>>>
>>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com>
>>> wrote:
>>> >> >>>>
>>> >> >>>> Hello,
>>> >> >>>>>
>>> >> >>>>> That upload code should already be available in the mobile app.
>>> >> Larry,
>>> >> >>>>> myself and Finn spent a few hours figuring all that stuff out
>>> last
>>> >> time
>>> >> >>>>> round.
>>> >> >>>>> I have added an API call in the taverna-player-portal to get the
>>> runs
>>> >> >>>>>
>>> >> >>>> for
>>> >> >>>
>>> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
>>> >> >>>>>
>>> >> >>>> Finn). I
>>> >> >>>>
>>> >> >>>>> even added some tests.
>>> >> >>>>>
>>> >> >>>>> Cheers,
>>> >> >>>>>
>>> >> >>>>> Ian
>>> >> >>>>>
>>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>>> >> finn.bacall@manchester.ac.uk>
>>> >> >>>>> wrote:
>>> >> >>>>>
>>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>>> >> >>>>>>
>>> >> >>>>>> Hi,
>>> >> >>>>>>>
>>> >> >>>>>>> I think there is some problem as mention below
>>> >> >>>>>>>
>>> >> >>>>>>> 1) How can I upload a workflow using API ?
>>> >> >>>>>>>
>>> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
>>> workflow
>>> >> to
>>> >> >>>>>>
>>> >> >>>>> the
>>> >> >>>>
>>> >> >>>>> portal:
>>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>>> >> >>>>>>
>>> >> >>>>>> Basically the format is:
>>> >> >>>>>>
>>> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
>>> >> >>>>>>
>>> >> >>>>> stream;base64,<<<Insert
>>> >> >>>>
>>> >> >>>>> base64 encoded workflow here>>>" } }
>>> >> >>>>>>
>>> >> >>>>>> Finn
>>> >> >>>>>>
>>> >> >>>>>>
>>> >> >>>>>
>>> >> >>>
>>> >> >>> --
>>> >> >>>
>>> >> >>> *With warm regards  *
>>> >> >>> *Sincerely yours*
>>> >> >>> Sagar
>>> >> >>>
>>> >> >>>
>>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>>> >> >>> *Cluster Innovation Centre*
>>> >> >>> *University of Delhi *
>>> >> >>>
>>> >> >>>
>>> >> >
>>> >>
>>> >>
>>> >> --
>>> >>
>>> >> *With warm regards  *
>>> >> *Sincerely yours*
>>> >> Sagar
>>> >>
>>> >>
>>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>>> >> *Cluster Innovation Centre*
>>> >> *University of Delhi *
>>> >>
>>>
>>>
>>>
>>> --
>>> Stian Soiland-Reyes
>>> Apache Taverna (incubating), Apache Commons
>>> http://orcid.org/0000-0001-9842-9718
>>>
>>
>>
>>
>> --
>>
>> *With warm regards  *
>> *Sincerely yours*
>> Sagar
>>
>>
>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> *Cluster Innovation Centre*
>> *University of Delhi *
>>
>>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *



-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by alaninmcr <al...@googlemail.com>.
On 08/09/2016 10:56, Sagar wrote:
> Hi,

Hello Sagar

> I was reading the readme and I found Taverna-language-API will only work
> with JAVA 8 and newer.
> We can't use in taverna-mobile because Android API 16 works with JAVA 6.
>
> So, Now provide me with the schema of the .t2flow file.

There is a set of xsds in

/src/main/resources/org/apache/taverna/scufl2/translator/t2flow/xsd

within taverna-scufl2-t2flow in the incubator-taverna-language repository.

> Thanks

Alan

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

I was reading the readme and I found Taverna-language-API will only work
with JAVA 8 and newer.
We can't use in taverna-mobile because Android API 16 works with JAVA 6.

So, Now provide me with the schema of the .t2flow file.

Thanks

On Thu, Sep 8, 2016 at 2:13 PM, Sagar <ku...@gmail.com> wrote:

> Hi,
>
> How can I use the taverna-language API to know what will the inputs and
> what will the outputs of workflow?
>
> I don't get any proper guide or code.
>
> Thanks
>
> On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <st...@apache.org>
> wrote:
>
>> Yes, you should use taverna-language to load the .t2flow and inspect it.
>>
>> You should not really need to make any Java beans for it as the
>> workflow wouldn't be constructed on the phone (although you could do
>> that with the Taverna Language API), but loaded from $somewhere as
>> previously saved from the Taverna Workbench or downloaded from
>> myExperiment - however you can use the API to inspect the workflow,
>> e.g. list the input port names of the main workflow.
>>
>>
>> See:
>>
>> https://taverna.incubator.apache.org/download/language/
>>
>> Javadoc:
>> https://taverna.incubator.apache.org/javadoc/taverna-languag
>> e/org/apache/taverna/scufl2/api/package-summary.html
>>
>> Example:
>> https://github.com/apache/incubator-taverna-language/blob/
>> master/taverna-scufl2-examples/src/main/java/org/apache/
>> taverna/examples/ProcessorNames.java
>>
>> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
>> > Hello,
>> >
>> > There is an xsd for t2flow available in the taverna-language module
>> > https://github.com/apache/incubator-taverna-language/blob/
>> master/taverna-scufl2-t2flow/src/main/resources/org/apache/
>> taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
>> > You should be able to re-use taverna-language to parse t2flow rather
>> than
>> > build your own parser. Perhaps using
>> > https://github.com/apache/incubator-taverna-language/tree/
>> master/taverna-scufl2-t2flow.
>> > No readme though. Maybe some other devs can advise how to use it.
>> >
>> > Cheers,
>> >
>> > Ian
>> >
>> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:
>> >
>> >> Hi,
>> >>
>> >> Is there any predefined tree structure for t2flow xml file ?
>> >>
>> >> if yes, then provide me so that I am able to create java beans for it.
>> >> otherwise, I will create it according to any t2flow xml file.
>> >>
>> >> Please revert ASAP.
>> >>
>> >> Thanks
>> >>
>> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
>> finn.bacall@manchester.ac.uk
>> >> >
>> >> wrote:
>> >>
>> >> > This wouldn't be that hard to implement, you can get the unique ID
>> for
>> >> the
>> >> > workflow from the parser gem, see:
>> >> >
>> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
>> >> > master/lib/t2flow/model.rb#L136
>> >> >
>> >> > Then you'd just need to extract it in the parsing method:
>> >> >
>> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
>> >> > app/models/workflow.rb#L40
>> >> >
>> >> > and store it in a new field in the database.
>> >> >
>> >> > Cheers,
>> >> >
>> >> > Finn
>> >> >
>> >> >
>> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> >> >
>> >> >> Hello,
>> >> >>
>> >> >> I think you are pretty much spot on with your diagnosis. I agree it
>> is a
>> >> >> bit of a pain that the workflow ids are different. However, each
>> >> workflow
>> >> >> does have a unique uuid internally (with t2flow anyway) so that
>> could be
>> >> >> used to check if a workflow on myexperiment and the portal are the
>> same.
>> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
>> >> 438f645d3d17"
>> >> >> role="top"> in a t2flow file. This probably means that the portal
>> would
>> >> >> need an extension to search by workflow uuid. For now I would just
>> treat
>> >> >> each run as having a unique workflow and we can always improve it
>> later.
>> >> >>
>> >> >> Cheers,
>> >> >>
>> >> >> Ian
>> >> >>
>> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com>
>> wrote:
>> >> >>
>> >> >> Hello,
>> >> >>>
>> >> >>> Thank you for providing code. Now, I am working on it.
>> >> >>>
>> >> >>> Currently, I have understood that I need following steps to run a
>> >> >>> workflow
>> >> >>> on taverna player portal
>> >> >>>
>> >> >>> 1) Download workflow content.
>> >> >>> 2) Upload it to taverna player portal.
>> >> >>> 3) Run it on taverna player portal.
>> >> >>> 4) Show output of the complete workflow's run.
>> >> >>>
>> >> >>> I have also understood that there is no link between myExperiment
>> >> >>> workflow
>> >> >>> and Taverna Player workflow that's why I can't retain
>> myExperiment's
>> >> >>> workflow running history on Taverna player portal and also I can't
>> >> search
>> >> >>> the same workflow in taverna player portal. For each new run, I
>> have to
>> >> >>> upload it again.
>> >> >>>
>> >> >>>
>> >> >>> If I have understood correct then Please revert back .
>> >> >>>
>> >> >>> If not then, Please correct me.
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>>
>> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
>> >> >>> wrote:
>> >> >>>
>> >> >>> Hello,
>> >> >>>>
>> >> >>>> This is where the upload code is in the current mobile code
>> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
>> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> >> >>>> WorkflowdetailFragment.java#L655
>> >> >>>>
>> >> >>>> Cheers,
>> >> >>>>
>> >> >>>> Ian
>> >> >>>>
>> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com>
>> wrote:
>> >> >>>>
>> >> >>>> Hello,
>> >> >>>>>
>> >> >>>>> That upload code should already be available in the mobile app.
>> >> Larry,
>> >> >>>>> myself and Finn spent a few hours figuring all that stuff out
>> last
>> >> time
>> >> >>>>> round.
>> >> >>>>> I have added an API call in the taverna-player-portal to get the
>> runs
>> >> >>>>>
>> >> >>>> for
>> >> >>>
>> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
>> >> >>>>>
>> >> >>>> Finn). I
>> >> >>>>
>> >> >>>>> even added some tests.
>> >> >>>>>
>> >> >>>>> Cheers,
>> >> >>>>>
>> >> >>>>> Ian
>> >> >>>>>
>> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> >> finn.bacall@manchester.ac.uk>
>> >> >>>>> wrote:
>> >> >>>>>
>> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> >> >>>>>>
>> >> >>>>>> Hi,
>> >> >>>>>>>
>> >> >>>>>>> I think there is some problem as mention below
>> >> >>>>>>>
>> >> >>>>>>> 1) How can I upload a workflow using API ?
>> >> >>>>>>>
>> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
>> workflow
>> >> to
>> >> >>>>>>
>> >> >>>>> the
>> >> >>>>
>> >> >>>>> portal:
>> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>> >> >>>>>>
>> >> >>>>>> Basically the format is:
>> >> >>>>>>
>> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
>> >> >>>>>>
>> >> >>>>> stream;base64,<<<Insert
>> >> >>>>
>> >> >>>>> base64 encoded workflow here>>>" } }
>> >> >>>>>>
>> >> >>>>>> Finn
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>
>> >> >>>
>> >> >>> --
>> >> >>>
>> >> >>> *With warm regards  *
>> >> >>> *Sincerely yours*
>> >> >>> Sagar
>> >> >>>
>> >> >>>
>> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> >> >>> *Cluster Innovation Centre*
>> >> >>> *University of Delhi *
>> >> >>>
>> >> >>>
>> >> >
>> >>
>> >>
>> >> --
>> >>
>> >> *With warm regards  *
>> >> *Sincerely yours*
>> >> Sagar
>> >>
>> >>
>> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> >> *Cluster Innovation Centre*
>> >> *University of Delhi *
>> >>
>>
>>
>>
>> --
>> Stian Soiland-Reyes
>> Apache Taverna (incubating), Apache Commons
>> http://orcid.org/0000-0001-9842-9718
>>
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>
>


-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

How can I use the taverna-language API to know what will the inputs and
what will the outputs of workflow?

I don't get any proper guide or code.

Thanks

On Fri, Sep 2, 2016 at 6:37 PM, Stian Soiland-Reyes <st...@apache.org>
wrote:

> Yes, you should use taverna-language to load the .t2flow and inspect it.
>
> You should not really need to make any Java beans for it as the
> workflow wouldn't be constructed on the phone (although you could do
> that with the Taverna Language API), but loaded from $somewhere as
> previously saved from the Taverna Workbench or downloaded from
> myExperiment - however you can use the API to inspect the workflow,
> e.g. list the input port names of the main workflow.
>
>
> See:
>
> https://taverna.incubator.apache.org/download/language/
>
> Javadoc:
> https://taverna.incubator.apache.org/javadoc/taverna-
> language/org/apache/taverna/scufl2/api/package-summary.html
>
> Example:
> https://github.com/apache/incubator-taverna-language/
> blob/master/taverna-scufl2-examples/src/main/java/org/
> apache/taverna/examples/ProcessorNames.java
>
> On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
> > Hello,
> >
> > There is an xsd for t2flow available in the taverna-language module
> > https://github.com/apache/incubator-taverna-language/
> blob/master/taverna-scufl2-t2flow/src/main/resources/org/
> apache/taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> > You should be able to re-use taverna-language to parse t2flow rather than
> > build your own parser. Perhaps using
> > https://github.com/apache/incubator-taverna-language/
> tree/master/taverna-scufl2-t2flow.
> > No readme though. Maybe some other devs can advise how to use it.
> >
> > Cheers,
> >
> > Ian
> >
> > On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> Is there any predefined tree structure for t2flow xml file ?
> >>
> >> if yes, then provide me so that I am able to create java beans for it.
> >> otherwise, I will create it according to any t2flow xml file.
> >>
> >> Please revert ASAP.
> >>
> >> Thanks
> >>
> >> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <
> finn.bacall@manchester.ac.uk
> >> >
> >> wrote:
> >>
> >> > This wouldn't be that hard to implement, you can get the unique ID for
> >> the
> >> > workflow from the parser gem, see:
> >> >
> >> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> >> > master/lib/t2flow/model.rb#L136
> >> >
> >> > Then you'd just need to extract it in the parsing method:
> >> >
> >> > https://github.com/myGrid/taverna-player-portal/blob/master/
> >> > app/models/workflow.rb#L40
> >> >
> >> > and store it in a new field in the database.
> >> >
> >> > Cheers,
> >> >
> >> > Finn
> >> >
> >> >
> >> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >> >
> >> >> Hello,
> >> >>
> >> >> I think you are pretty much spot on with your diagnosis. I agree it
> is a
> >> >> bit of a pain that the workflow ids are different. However, each
> >> workflow
> >> >> does have a unique uuid internally (with t2flow anyway) so that
> could be
> >> >> used to check if a workflow on myexperiment and the portal are the
> same.
> >> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> >> 438f645d3d17"
> >> >> role="top"> in a t2flow file. This probably means that the portal
> would
> >> >> need an extension to search by workflow uuid. For now I would just
> treat
> >> >> each run as having a unique workflow and we can always improve it
> later.
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Ian
> >> >>
> >> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:
> >> >>
> >> >> Hello,
> >> >>>
> >> >>> Thank you for providing code. Now, I am working on it.
> >> >>>
> >> >>> Currently, I have understood that I need following steps to run a
> >> >>> workflow
> >> >>> on taverna player portal
> >> >>>
> >> >>> 1) Download workflow content.
> >> >>> 2) Upload it to taverna player portal.
> >> >>> 3) Run it on taverna player portal.
> >> >>> 4) Show output of the complete workflow's run.
> >> >>>
> >> >>> I have also understood that there is no link between myExperiment
> >> >>> workflow
> >> >>> and Taverna Player workflow that's why I can't retain myExperiment's
> >> >>> workflow running history on Taverna player portal and also I can't
> >> search
> >> >>> the same workflow in taverna player portal. For each new run, I
> have to
> >> >>> upload it again.
> >> >>>
> >> >>>
> >> >>> If I have understood correct then Please revert back .
> >> >>>
> >> >>> If not then, Please correct me.
> >> >>>
> >> >>> Thanks
> >> >>>
> >> >>>
> >> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
> >> >>> wrote:
> >> >>>
> >> >>> Hello,
> >> >>>>
> >> >>>> This is where the upload code is in the current mobile code
> >> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> >> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> >> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> >> >>>> WorkflowdetailFragment.java#L655
> >> >>>>
> >> >>>> Cheers,
> >> >>>>
> >> >>>> Ian
> >> >>>>
> >> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com>
> wrote:
> >> >>>>
> >> >>>> Hello,
> >> >>>>>
> >> >>>>> That upload code should already be available in the mobile app.
> >> Larry,
> >> >>>>> myself and Finn spent a few hours figuring all that stuff out last
> >> time
> >> >>>>> round.
> >> >>>>> I have added an API call in the taverna-player-portal to get the
> runs
> >> >>>>>
> >> >>>> for
> >> >>>
> >> >>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
> >> >>>>>
> >> >>>> Finn). I
> >> >>>>
> >> >>>>> even added some tests.
> >> >>>>>
> >> >>>>> Cheers,
> >> >>>>>
> >> >>>>> Ian
> >> >>>>>
> >> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> >> finn.bacall@manchester.ac.uk>
> >> >>>>> wrote:
> >> >>>>>
> >> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >> >>>>>>
> >> >>>>>> Hi,
> >> >>>>>>>
> >> >>>>>>> I think there is some problem as mention below
> >> >>>>>>>
> >> >>>>>>> 1) How can I upload a workflow using API ?
> >> >>>>>>>
> >> >>>>>>> here's a gist of some Java code someone wrote to upload a
> workflow
> >> to
> >> >>>>>>
> >> >>>>> the
> >> >>>>
> >> >>>>> portal:
> >> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> >> >>>>>>
> >> >>>>>> Basically the format is:
> >> >>>>>>
> >> >>>>>>      { "workflow" : { "document" : "data:application/octet-
> >> >>>>>>
> >> >>>>> stream;base64,<<<Insert
> >> >>>>
> >> >>>>> base64 encoded workflow here>>>" } }
> >> >>>>>>
> >> >>>>>> Finn
> >> >>>>>>
> >> >>>>>>
> >> >>>>>
> >> >>>
> >> >>> --
> >> >>>
> >> >>> *With warm regards  *
> >> >>> *Sincerely yours*
> >> >>> Sagar
> >> >>>
> >> >>>
> >> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> >>> *Cluster Innovation Centre*
> >> >>> *University of Delhi *
> >> >>>
> >> >>>
> >> >
> >>
> >>
> >> --
> >>
> >> *With warm regards  *
> >> *Sincerely yours*
> >> Sagar
> >>
> >>
> >> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >> *Cluster Innovation Centre*
> >> *University of Delhi *
> >>
>
>
>
> --
> Stian Soiland-Reyes
> Apache Taverna (incubating), Apache Commons
> http://orcid.org/0000-0001-9842-9718
>



-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Stian Soiland-Reyes <st...@apache.org>.
Yes, you should use taverna-language to load the .t2flow and inspect it.

You should not really need to make any Java beans for it as the
workflow wouldn't be constructed on the phone (although you could do
that with the Taverna Language API), but loaded from $somewhere as
previously saved from the Taverna Workbench or downloaded from
myExperiment - however you can use the API to inspect the workflow,
e.g. list the input port names of the main workflow.


See:

https://taverna.incubator.apache.org/download/language/

Javadoc:
https://taverna.incubator.apache.org/javadoc/taverna-language/org/apache/taverna/scufl2/api/package-summary.html

Example:
https://github.com/apache/incubator-taverna-language/blob/master/taverna-scufl2-examples/src/main/java/org/apache/taverna/examples/ProcessorNames.java

On 29 August 2016 at 14:39, Ian Dunlop <ia...@gmail.com> wrote:
> Hello,
>
> There is an xsd for t2flow available in the taverna-language module
> https://github.com/apache/incubator-taverna-language/blob/master/taverna-scufl2-t2flow/src/main/resources/org/apache/taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
> You should be able to re-use taverna-language to parse t2flow rather than
> build your own parser. Perhaps using
> https://github.com/apache/incubator-taverna-language/tree/master/taverna-scufl2-t2flow.
> No readme though. Maybe some other devs can advise how to use it.
>
> Cheers,
>
> Ian
>
> On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:
>
>> Hi,
>>
>> Is there any predefined tree structure for t2flow xml file ?
>>
>> if yes, then provide me so that I am able to create java beans for it.
>> otherwise, I will create it according to any t2flow xml file.
>>
>> Please revert ASAP.
>>
>> Thanks
>>
>> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <finn.bacall@manchester.ac.uk
>> >
>> wrote:
>>
>> > This wouldn't be that hard to implement, you can get the unique ID for
>> the
>> > workflow from the parser gem, see:
>> >
>> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
>> > master/lib/t2flow/model.rb#L136
>> >
>> > Then you'd just need to extract it in the parsing method:
>> >
>> > https://github.com/myGrid/taverna-player-portal/blob/master/
>> > app/models/workflow.rb#L40
>> >
>> > and store it in a new field in the database.
>> >
>> > Cheers,
>> >
>> > Finn
>> >
>> >
>> > On 26/08/2016 09:32, Ian Dunlop wrote:
>> >
>> >> Hello,
>> >>
>> >> I think you are pretty much spot on with your diagnosis. I agree it is a
>> >> bit of a pain that the workflow ids are different. However, each
>> workflow
>> >> does have a unique uuid internally (with t2flow anyway) so that could be
>> >> used to check if a workflow on myexperiment and the portal are the same.
>> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
>> 438f645d3d17"
>> >> role="top"> in a t2flow file. This probably means that the portal would
>> >> need an extension to search by workflow uuid. For now I would just treat
>> >> each run as having a unique workflow and we can always improve it later.
>> >>
>> >> Cheers,
>> >>
>> >> Ian
>> >>
>> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:
>> >>
>> >> Hello,
>> >>>
>> >>> Thank you for providing code. Now, I am working on it.
>> >>>
>> >>> Currently, I have understood that I need following steps to run a
>> >>> workflow
>> >>> on taverna player portal
>> >>>
>> >>> 1) Download workflow content.
>> >>> 2) Upload it to taverna player portal.
>> >>> 3) Run it on taverna player portal.
>> >>> 4) Show output of the complete workflow's run.
>> >>>
>> >>> I have also understood that there is no link between myExperiment
>> >>> workflow
>> >>> and Taverna Player workflow that's why I can't retain myExperiment's
>> >>> workflow running history on Taverna player portal and also I can't
>> search
>> >>> the same workflow in taverna player portal. For each new run, I have to
>> >>> upload it again.
>> >>>
>> >>>
>> >>> If I have understood correct then Please revert back .
>> >>>
>> >>> If not then, Please correct me.
>> >>>
>> >>> Thanks
>> >>>
>> >>>
>> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
>> >>> wrote:
>> >>>
>> >>> Hello,
>> >>>>
>> >>>> This is where the upload code is in the current mobile code
>> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
>> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
>> >>>> WorkflowdetailFragment.java#L655
>> >>>>
>> >>>> Cheers,
>> >>>>
>> >>>> Ian
>> >>>>
>> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
>> >>>>
>> >>>> Hello,
>> >>>>>
>> >>>>> That upload code should already be available in the mobile app.
>> Larry,
>> >>>>> myself and Finn spent a few hours figuring all that stuff out last
>> time
>> >>>>> round.
>> >>>>> I have added an API call in the taverna-player-portal to get the runs
>> >>>>>
>> >>>> for
>> >>>
>> >>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
>> >>>>>
>> >>>> Finn). I
>> >>>>
>> >>>>> even added some tests.
>> >>>>>
>> >>>>> Cheers,
>> >>>>>
>> >>>>> Ian
>> >>>>>
>> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
>> finn.bacall@manchester.ac.uk>
>> >>>>> wrote:
>> >>>>>
>> >>>>> On 23/08/2016 11:38, Sagar wrote:
>> >>>>>>
>> >>>>>> Hi,
>> >>>>>>>
>> >>>>>>> I think there is some problem as mention below
>> >>>>>>>
>> >>>>>>> 1) How can I upload a workflow using API ?
>> >>>>>>>
>> >>>>>>> here's a gist of some Java code someone wrote to upload a workflow
>> to
>> >>>>>>
>> >>>>> the
>> >>>>
>> >>>>> portal:
>> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>> >>>>>>
>> >>>>>> Basically the format is:
>> >>>>>>
>> >>>>>>      { "workflow" : { "document" : "data:application/octet-
>> >>>>>>
>> >>>>> stream;base64,<<<Insert
>> >>>>
>> >>>>> base64 encoded workflow here>>>" } }
>> >>>>>>
>> >>>>>> Finn
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>
>> >>> --
>> >>>
>> >>> *With warm regards  *
>> >>> *Sincerely yours*
>> >>> Sagar
>> >>>
>> >>>
>> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> >>> *Cluster Innovation Centre*
>> >>> *University of Delhi *
>> >>>
>> >>>
>> >
>>
>>
>> --
>>
>> *With warm regards  *
>> *Sincerely yours*
>> Sagar
>>
>>
>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> *Cluster Innovation Centre*
>> *University of Delhi *
>>



-- 
Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons
http://orcid.org/0000-0001-9842-9718

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

There is an xsd for t2flow available in the taverna-language module
https://github.com/apache/incubator-taverna-language/blob/master/taverna-scufl2-t2flow/src/main/resources/org/apache/taverna/scufl2/translator/t2flow/xsd/t2flow.xsd
You should be able to re-use taverna-language to parse t2flow rather than
build your own parser. Perhaps using
https://github.com/apache/incubator-taverna-language/tree/master/taverna-scufl2-t2flow.
No readme though. Maybe some other devs can advise how to use it.

Cheers,

Ian

On 28 August 2016 at 18:23, Sagar <ku...@gmail.com> wrote:

> Hi,
>
> Is there any predefined tree structure for t2flow xml file ?
>
> if yes, then provide me so that I am able to create java beans for it.
> otherwise, I will create it according to any t2flow xml file.
>
> Please revert ASAP.
>
> Thanks
>
> On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <finn.bacall@manchester.ac.uk
> >
> wrote:
>
> > This wouldn't be that hard to implement, you can get the unique ID for
> the
> > workflow from the parser gem, see:
> >
> > https://github.com/myExperiment/workflow_parser-t2flow/blob/
> > master/lib/t2flow/model.rb#L136
> >
> > Then you'd just need to extract it in the parsing method:
> >
> > https://github.com/myGrid/taverna-player-portal/blob/master/
> > app/models/workflow.rb#L40
> >
> > and store it in a new field in the database.
> >
> > Cheers,
> >
> > Finn
> >
> >
> > On 26/08/2016 09:32, Ian Dunlop wrote:
> >
> >> Hello,
> >>
> >> I think you are pretty much spot on with your diagnosis. I agree it is a
> >> bit of a pain that the workflow ids are different. However, each
> workflow
> >> does have a unique uuid internally (with t2flow anyway) so that could be
> >> used to check if a workflow on myexperiment and the portal are the same.
> >> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-
> 438f645d3d17"
> >> role="top"> in a t2flow file. This probably means that the portal would
> >> need an extension to search by workflow uuid. For now I would just treat
> >> each run as having a unique workflow and we can always improve it later.
> >>
> >> Cheers,
> >>
> >> Ian
> >>
> >> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:
> >>
> >> Hello,
> >>>
> >>> Thank you for providing code. Now, I am working on it.
> >>>
> >>> Currently, I have understood that I need following steps to run a
> >>> workflow
> >>> on taverna player portal
> >>>
> >>> 1) Download workflow content.
> >>> 2) Upload it to taverna player portal.
> >>> 3) Run it on taverna player portal.
> >>> 4) Show output of the complete workflow's run.
> >>>
> >>> I have also understood that there is no link between myExperiment
> >>> workflow
> >>> and Taverna Player workflow that's why I can't retain myExperiment's
> >>> workflow running history on Taverna player portal and also I can't
> search
> >>> the same workflow in taverna player portal. For each new run, I have to
> >>> upload it again.
> >>>
> >>>
> >>> If I have understood correct then Please revert back .
> >>>
> >>> If not then, Please correct me.
> >>>
> >>> Thanks
> >>>
> >>>
> >>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
> >>> wrote:
> >>>
> >>> Hello,
> >>>>
> >>>> This is where the upload code is in the current mobile code
> >>>> https://github.com/apache/incubator-taverna-mobile/blob/
> >>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> >>>> org/apache/taverna/mobile/fragments/workflowdetails/
> >>>> WorkflowdetailFragment.java#L655
> >>>>
> >>>> Cheers,
> >>>>
> >>>> Ian
> >>>>
> >>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
> >>>>
> >>>> Hello,
> >>>>>
> >>>>> That upload code should already be available in the mobile app.
> Larry,
> >>>>> myself and Finn spent a few hours figuring all that stuff out last
> time
> >>>>> round.
> >>>>> I have added an API call in the taverna-player-portal to get the runs
> >>>>>
> >>>> for
> >>>
> >>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
> >>>>>
> >>>> Finn). I
> >>>>
> >>>>> even added some tests.
> >>>>>
> >>>>> Cheers,
> >>>>>
> >>>>> Ian
> >>>>>
> >>>>> On 24 August 2016 at 10:57, Finn Bacall <
> finn.bacall@manchester.ac.uk>
> >>>>> wrote:
> >>>>>
> >>>>> On 23/08/2016 11:38, Sagar wrote:
> >>>>>>
> >>>>>> Hi,
> >>>>>>>
> >>>>>>> I think there is some problem as mention below
> >>>>>>>
> >>>>>>> 1) How can I upload a workflow using API ?
> >>>>>>>
> >>>>>>> here's a gist of some Java code someone wrote to upload a workflow
> to
> >>>>>>
> >>>>> the
> >>>>
> >>>>> portal:
> >>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> >>>>>>
> >>>>>> Basically the format is:
> >>>>>>
> >>>>>>      { "workflow" : { "document" : "data:application/octet-
> >>>>>>
> >>>>> stream;base64,<<<Insert
> >>>>
> >>>>> base64 encoded workflow here>>>" } }
> >>>>>>
> >>>>>> Finn
> >>>>>>
> >>>>>>
> >>>>>
> >>>
> >>> --
> >>>
> >>> *With warm regards  *
> >>> *Sincerely yours*
> >>> Sagar
> >>>
> >>>
> >>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> >>> *Cluster Innovation Centre*
> >>> *University of Delhi *
> >>>
> >>>
> >
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

Is there any predefined tree structure for t2flow xml file ?

if yes, then provide me so that I am able to create java beans for it.
otherwise, I will create it according to any t2flow xml file.

Please revert ASAP.

Thanks

On Fri, Aug 26, 2016 at 3:54 PM, Finn Bacall <fi...@manchester.ac.uk>
wrote:

> This wouldn't be that hard to implement, you can get the unique ID for the
> workflow from the parser gem, see:
>
> https://github.com/myExperiment/workflow_parser-t2flow/blob/
> master/lib/t2flow/model.rb#L136
>
> Then you'd just need to extract it in the parsing method:
>
> https://github.com/myGrid/taverna-player-portal/blob/master/
> app/models/workflow.rb#L40
>
> and store it in a new field in the database.
>
> Cheers,
>
> Finn
>
>
> On 26/08/2016 09:32, Ian Dunlop wrote:
>
>> Hello,
>>
>> I think you are pretty much spot on with your diagnosis. I agree it is a
>> bit of a pain that the workflow ids are different. However, each workflow
>> does have a unique uuid internally (with t2flow anyway) so that could be
>> used to check if a workflow on myexperiment and the portal are the same.
>> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-438f645d3d17"
>> role="top"> in a t2flow file. This probably means that the portal would
>> need an extension to search by workflow uuid. For now I would just treat
>> each run as having a unique workflow and we can always improve it later.
>>
>> Cheers,
>>
>> Ian
>>
>> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:
>>
>> Hello,
>>>
>>> Thank you for providing code. Now, I am working on it.
>>>
>>> Currently, I have understood that I need following steps to run a
>>> workflow
>>> on taverna player portal
>>>
>>> 1) Download workflow content.
>>> 2) Upload it to taverna player portal.
>>> 3) Run it on taverna player portal.
>>> 4) Show output of the complete workflow's run.
>>>
>>> I have also understood that there is no link between myExperiment
>>> workflow
>>> and Taverna Player workflow that's why I can't retain myExperiment's
>>> workflow running history on Taverna player portal and also I can't search
>>> the same workflow in taverna player portal. For each new run, I have to
>>> upload it again.
>>>
>>>
>>> If I have understood correct then Please revert back .
>>>
>>> If not then, Please correct me.
>>>
>>> Thanks
>>>
>>>
>>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com>
>>> wrote:
>>>
>>> Hello,
>>>>
>>>> This is where the upload code is in the current mobile code
>>>> https://github.com/apache/incubator-taverna-mobile/blob/
>>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>>>> org/apache/taverna/mobile/fragments/workflowdetails/
>>>> WorkflowdetailFragment.java#L655
>>>>
>>>> Cheers,
>>>>
>>>> Ian
>>>>
>>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
>>>>
>>>> Hello,
>>>>>
>>>>> That upload code should already be available in the mobile app. Larry,
>>>>> myself and Finn spent a few hours figuring all that stuff out last time
>>>>> round.
>>>>> I have added an API call in the taverna-player-portal to get the runs
>>>>>
>>>> for
>>>
>>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
>>>>>
>>>> Finn). I
>>>>
>>>>> even added some tests.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Ian
>>>>>
>>>>> On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
>>>>> wrote:
>>>>>
>>>>> On 23/08/2016 11:38, Sagar wrote:
>>>>>>
>>>>>> Hi,
>>>>>>>
>>>>>>> I think there is some problem as mention below
>>>>>>>
>>>>>>> 1) How can I upload a workflow using API ?
>>>>>>>
>>>>>>> here's a gist of some Java code someone wrote to upload a workflow to
>>>>>>
>>>>> the
>>>>
>>>>> portal:
>>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>>>>>>
>>>>>> Basically the format is:
>>>>>>
>>>>>>      { "workflow" : { "document" : "data:application/octet-
>>>>>>
>>>>> stream;base64,<<<Insert
>>>>
>>>>> base64 encoded workflow here>>>" } }
>>>>>>
>>>>>> Finn
>>>>>>
>>>>>>
>>>>>
>>>
>>> --
>>>
>>> *With warm regards  *
>>> *Sincerely yours*
>>> Sagar
>>>
>>>
>>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>>> *Cluster Innovation Centre*
>>> *University of Delhi *
>>>
>>>
>


-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Finn Bacall <fi...@manchester.ac.uk>.
This wouldn't be that hard to implement, you can get the unique ID for 
the workflow from the parser gem, see:

https://github.com/myExperiment/workflow_parser-t2flow/blob/master/lib/t2flow/model.rb#L136

Then you'd just need to extract it in the parsing method:

https://github.com/myGrid/taverna-player-portal/blob/master/app/models/workflow.rb#L40

and store it in a new field in the database.

Cheers,

Finn

On 26/08/2016 09:32, Ian Dunlop wrote:
> Hello,
>
> I think you are pretty much spot on with your diagnosis. I agree it is a
> bit of a pain that the workflow ids are different. However, each workflow
> does have a unique uuid internally (with t2flow anyway) so that could be
> used to check if a workflow on myexperiment and the portal are the same.
> Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-438f645d3d17"
> role="top"> in a t2flow file. This probably means that the portal would
> need an extension to search by workflow uuid. For now I would just treat
> each run as having a unique workflow and we can always improve it later.
>
> Cheers,
>
> Ian
>
> On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:
>
>> Hello,
>>
>> Thank you for providing code. Now, I am working on it.
>>
>> Currently, I have understood that I need following steps to run a workflow
>> on taverna player portal
>>
>> 1) Download workflow content.
>> 2) Upload it to taverna player portal.
>> 3) Run it on taverna player portal.
>> 4) Show output of the complete workflow's run.
>>
>> I have also understood that there is no link between myExperiment workflow
>> and Taverna Player workflow that's why I can't retain myExperiment's
>> workflow running history on Taverna player portal and also I can't search
>> the same workflow in taverna player portal. For each new run, I have to
>> upload it again.
>>
>>
>> If I have understood correct then Please revert back .
>>
>> If not then, Please correct me.
>>
>> Thanks
>>
>>
>> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> This is where the upload code is in the current mobile code
>>> https://github.com/apache/incubator-taverna-mobile/blob/
>>> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
>>> org/apache/taverna/mobile/fragments/workflowdetails/
>>> WorkflowdetailFragment.java#L655
>>>
>>> Cheers,
>>>
>>> Ian
>>>
>>> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> That upload code should already be available in the mobile app. Larry,
>>>> myself and Finn spent a few hours figuring all that stuff out last time
>>>> round.
>>>> I have added an API call in the taverna-player-portal to get the runs
>> for
>>>> a user eg /users/1/runs. Pull request waiting in github (hint hint
>>> Finn). I
>>>> even added some tests.
>>>>
>>>> Cheers,
>>>>
>>>> Ian
>>>>
>>>> On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
>>>> wrote:
>>>>
>>>>> On 23/08/2016 11:38, Sagar wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I think there is some problem as mention below
>>>>>>
>>>>>> 1) How can I upload a workflow using API ?
>>>>>>
>>>>> here's a gist of some Java code someone wrote to upload a workflow to
>>> the
>>>>> portal:
>>>>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>>>>>
>>>>> Basically the format is:
>>>>>
>>>>>      { "workflow" : { "document" : "data:application/octet-
>>> stream;base64,<<<Insert
>>>>> base64 encoded workflow here>>>" } }
>>>>>
>>>>> Finn
>>>>>
>>>>
>>
>>
>> --
>>
>> *With warm regards  *
>> *Sincerely yours*
>> Sagar
>>
>>
>> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
>> *Cluster Innovation Centre*
>> *University of Delhi *
>>


Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

I think you are pretty much spot on with your diagnosis. I agree it is a
bit of a pain that the workflow ids are different. However, each workflow
does have a unique uuid internally (with t2flow anyway) so that could be
used to check if a workflow on myexperiment and the portal are the same.
Look for the element <dataflow id="0f5e83c1-bbb5-42e7-9ba3-438f645d3d17"
role="top"> in a t2flow file. This probably means that the portal would
need an extension to search by workflow uuid. For now I would just treat
each run as having a unique workflow and we can always improve it later.

Cheers,

Ian

On 26 August 2016 at 08:02, Sagar <ku...@gmail.com> wrote:

> Hello,
>
> Thank you for providing code. Now, I am working on it.
>
> Currently, I have understood that I need following steps to run a workflow
> on taverna player portal
>
> 1) Download workflow content.
> 2) Upload it to taverna player portal.
> 3) Run it on taverna player portal.
> 4) Show output of the complete workflow's run.
>
> I have also understood that there is no link between myExperiment workflow
> and Taverna Player workflow that's why I can't retain myExperiment's
> workflow running history on Taverna player portal and also I can't search
> the same workflow in taverna player portal. For each new run, I have to
> upload it again.
>
>
> If I have understood correct then Please revert back .
>
> If not then, Please correct me.
>
> Thanks
>
>
> On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com> wrote:
>
> > Hello,
> >
> > This is where the upload code is in the current mobile code
> > https://github.com/apache/incubator-taverna-mobile/blob/
> > 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> > org/apache/taverna/mobile/fragments/workflowdetails/
> > WorkflowdetailFragment.java#L655
> >
> > Cheers,
> >
> > Ian
> >
> > On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
> >
> > > Hello,
> > >
> > > That upload code should already be available in the mobile app. Larry,
> > > myself and Finn spent a few hours figuring all that stuff out last time
> > > round.
> > > I have added an API call in the taverna-player-portal to get the runs
> for
> > > a user eg /users/1/runs. Pull request waiting in github (hint hint
> > Finn). I
> > > even added some tests.
> > >
> > > Cheers,
> > >
> > > Ian
> > >
> > > On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
> > > wrote:
> > >
> > >> On 23/08/2016 11:38, Sagar wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> I think there is some problem as mention below
> > >>>
> > >>> 1) How can I upload a workflow using API ?
> > >>>
> > >>
> > >> here's a gist of some Java code someone wrote to upload a workflow to
> > the
> > >> portal:
> > >> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> > >>
> > >> Basically the format is:
> > >>
> > >>     { "workflow" : { "document" : "data:application/octet-
> > stream;base64,<<<Insert
> > >> base64 encoded workflow here>>>" } }
> > >>
> > >> Finn
> > >>
> > >
> > >
> >
>
>
>
> --
>
> *With warm regards  *
> *Sincerely yours*
> Sagar
>
>
> *Student ,(7th Semester )B.Tech IT and mathematical innovation*
> *Cluster Innovation Centre*
> *University of Delhi *
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hello,

Thank you for providing code. Now, I am working on it.

Currently, I have understood that I need following steps to run a workflow
on taverna player portal

1) Download workflow content.
2) Upload it to taverna player portal.
3) Run it on taverna player portal.
4) Show output of the complete workflow's run.

I have also understood that there is no link between myExperiment workflow
and Taverna Player workflow that's why I can't retain myExperiment's
workflow running history on Taverna player portal and also I can't search
the same workflow in taverna player portal. For each new run, I have to
upload it again.


If I have understood correct then Please revert back .

If not then, Please correct me.

Thanks


On Wed, Aug 24, 2016 at 8:48 PM, Ian Dunlop <ia...@gmail.com> wrote:

> Hello,
>
> This is where the upload code is in the current mobile code
> https://github.com/apache/incubator-taverna-mobile/blob/
> 4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/
> org/apache/taverna/mobile/fragments/workflowdetails/
> WorkflowdetailFragment.java#L655
>
> Cheers,
>
> Ian
>
> On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:
>
> > Hello,
> >
> > That upload code should already be available in the mobile app. Larry,
> > myself and Finn spent a few hours figuring all that stuff out last time
> > round.
> > I have added an API call in the taverna-player-portal to get the runs for
> > a user eg /users/1/runs. Pull request waiting in github (hint hint
> Finn). I
> > even added some tests.
> >
> > Cheers,
> >
> > Ian
> >
> > On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
> > wrote:
> >
> >> On 23/08/2016 11:38, Sagar wrote:
> >>
> >>> Hi,
> >>>
> >>> I think there is some problem as mention below
> >>>
> >>> 1) How can I upload a workflow using API ?
> >>>
> >>
> >> here's a gist of some Java code someone wrote to upload a workflow to
> the
> >> portal:
> >> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
> >>
> >> Basically the format is:
> >>
> >>     { "workflow" : { "document" : "data:application/octet-
> stream;base64,<<<Insert
> >> base64 encoded workflow here>>>" } }
> >>
> >> Finn
> >>
> >
> >
>



-- 

*With warm regards  *
*Sincerely yours*
Sagar


*Student ,(7th Semester )B.Tech IT and mathematical innovation*
*Cluster Innovation Centre*
*University of Delhi *

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

This is where the upload code is in the current mobile code
https://github.com/apache/incubator-taverna-mobile/blob/4daa91d3f42b5a4474303fd39c7a7ec1483cebff/app/src/main/java/org/apache/taverna/mobile/fragments/workflowdetails/WorkflowdetailFragment.java#L655

Cheers,

Ian

On 24 August 2016 at 14:40, Ian Dunlop <ia...@gmail.com> wrote:

> Hello,
>
> That upload code should already be available in the mobile app. Larry,
> myself and Finn spent a few hours figuring all that stuff out last time
> round.
> I have added an API call in the taverna-player-portal to get the runs for
> a user eg /users/1/runs. Pull request waiting in github (hint hint Finn). I
> even added some tests.
>
> Cheers,
>
> Ian
>
> On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
> wrote:
>
>> On 23/08/2016 11:38, Sagar wrote:
>>
>>> Hi,
>>>
>>> I think there is some problem as mention below
>>>
>>> 1) How can I upload a workflow using API ?
>>>
>>
>> here's a gist of some Java code someone wrote to upload a workflow to the
>> portal:
>> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>>
>> Basically the format is:
>>
>>     { "workflow" : { "document" : "data:application/octet-stream;base64,<<<Insert
>> base64 encoded workflow here>>>" } }
>>
>> Finn
>>
>
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

That upload code should already be available in the mobile app. Larry,
myself and Finn spent a few hours figuring all that stuff out last time
round.
I have added an API call in the taverna-player-portal to get the runs for a
user eg /users/1/runs. Pull request waiting in github (hint hint Finn). I
even added some tests.

Cheers,

Ian

On 24 August 2016 at 10:57, Finn Bacall <fi...@manchester.ac.uk>
wrote:

> On 23/08/2016 11:38, Sagar wrote:
>
>> Hi,
>>
>> I think there is some problem as mention below
>>
>> 1) How can I upload a workflow using API ?
>>
>
> here's a gist of some Java code someone wrote to upload a workflow to the
> portal:
> https://gist.github.com/larrytech7/957cc61a3bdd82e3e030
>
> Basically the format is:
>
>     { "workflow" : { "document" : "data:application/octet-stream;base64,<<<Insert
> base64 encoded workflow here>>>" } }
>
> Finn
>

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Finn Bacall <fi...@manchester.ac.uk>.
On 23/08/2016 11:38, Sagar wrote:
> Hi,
>
> I think there is some problem as mention below
>
> 1) How can I upload a workflow using API ?

here's a gist of some Java code someone wrote to upload a workflow to 
the portal:
https://gist.github.com/larrytech7/957cc61a3bdd82e3e030

Basically the format is:

     { "workflow" : { "document" : 
"data:application/octet-stream;base64,<<<Insert base64 encoded workflow 
here>>>" } }

Finn

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Sagar <ku...@gmail.com>.
Hi,

I think there is some problem as mention below

1) How can I upload a workflow using API ?
2) Currently, I am getting workflow's detail from myExpermiment API using
 workflow's id.
    But if I upload a workflow in taverna player portal then it generates a
new workflow's id.
    As you can see on this URL (http://139.59.28.12:3000/workflows.json).
    And there is no link up with myExpermiment API's workflow's id. If
there is no link up then how can I get to know that this is this workflow
like if I open this URL(http://139.59.28.12:3000/workflows.json). I get
workflow's id as 1 but in myExperiment's API, it is 824. If I search on the
basis of the name of workflow then there is the chance of multiple
workflows as you can see on this URL(
http://www.myexperiment.org/search?query=Fetch+today%27s+xkcd+comic&commit=Go
).

Kindly revert as soon as possible.

Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile )

Posted by Ian Dunlop <ia...@gmail.com>.
Hello,

I don't think the player and myexperiment are integrated at all. The player
is a way to run workflows on the server through a UI but you have to upload
the workflows yourself.The player is a standard ruby on rails application
and you can see all the endpoints that are available using "rake routes" .
I couldn't see one to list all runs for a user although there seems to be
one to list all runs (for everyone I guess). I also found
https://github.com/myGrid/taverna-player/wiki/JSON-API-Documentation (which
is what the portal uses underneath). So maybe you can ask for all runs and
then filter out via the id on the android side (not great but.....). It
wouldn't be too difficult to add this to the portal code, just needs a
route which takes the user id as a param.

See,
https://github.com/myGrid/taverna-player-portal/blob/master/app/controllers/taverna_player/runs_controller.rb#L37
and
https://github.com/myGrid/taverna-player-portal/blob/master/config/routes.rb

Cheers,

Ian



On 20 August 2016 at 10:58, Sagar <ku...@gmail.com> wrote:

> Hi folks,
>
> Currently, taverna server and taverna-player-portal both  are running
> properly.
>
> So I have planned to integrate it in Android app.
>
> Below are some queries regarding JSON API.
>
> 1) How can I add a workflow ?
> 2) How is taverna-player-portal and myExperiment workflow linked ?
> 3) How to get all workflow's runs run by a user?
>
> Kindly revert as soon as possible.
>
> Thanks
> Sagar
>