Re: Resources to create UI using Workflow on Workbench

2018-09-19 Thread Vimig Socrates
Hi,

I did look at the Taverna 2.5 equivalent (
http://dev.mygrid.org.uk/wiki/display/tav250/REST+API). However, I didn't
see any calls there that would give me the statuses beyond what you
mentioned in your gitter message (Initial, initialized, operating,
finished, destroyed & stopped).

I believe this is functionality I will need and it seems feasible since the
workbench provides this capability. Could you point me in the right
direction, if I wanted to make changes to the server code to get finer
grain updates? Thank you!

--
Vimig Socrates
Case Western Reserve University Class of 2018


On Wed, Sep 19, 2018 at 9:11 AM Ian Dunlop  wrote:

> Hello,
>
>
>
> If you have a look at
> https://taverna.incubator.apache.org/documentation/server/3.1/usage you
> can see all the REST calls detailed. I’m assuming its much the same for 2.5.
>
>
>
> Cheers,
>
>
>
> Ian
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Vimig Socrates 
> *Sent: *17 September 2018 05:15
> *To: *users@taverna.incubator.apache.org
> *Subject: *Re: Resources to create UI using Workflow on Workbench
>
>
>
> Hi,
>
>
>
> Sorry for the late response. I tried running the player portal in docker
> and am having an issue. None of my workflows are running and whenever I
> try, the portal says "Server full - please wait; run will start soon".
>
>
>
> With some debugging I've found that it is the Taverna Server that won't
> allow me to run anything on it. Using a REST client, I get a "503 Service
> Unavailable" error with the body as "failed to build workflow run worker".
>
>
>
> As an *additional question*, I looked through the Rails code for the
> polling REST call, but don't see it. What REST endpoint should I hit to get
> an update of where along the workflow the system currently is?
>
>
>
> Please let me know. Thanks!
>
>
>
>
>
>
>
> --
>
> Vimig Socrates
>
> Case Western Reserve University Class of 2018
>
>
>
> On Tue, Sep 4, 2018 at 1:16 PM, Ian Dunlop  wrote:
>
> Hello,
>
>
>
> Have a look at https://github.com/taverna-extras/taverna-player-portal.
> This is a UI that uses the taverna server to run workflows and update
> progress.
>
> I think there is some ruby code to get a png of the workflow diagram in
> it. There should also be some java code somewhere – anyone know where?
>
>
>
> Cheers,
>
>
>
> Ian
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Vimig Socrates 
> *Sent: *04 September 2018 18:11
> *To: *users@taverna.incubator.apache.org
> *Subject: *Resources to create UI using Workflow on Workbench
>
>
>
> Hi everyone,
>
>
>
> I am looking to run Taverna Server *version 2.5* and create a user
> interface accessible from the internet that will update as the workflow
> progresses. To that end, I would need an API that I could access to get an
> update of a running workflow.
>
>
>
> Can I do that with /runs/{id}/listeners and only using the given 
> */runs/{id}/lis­teners/io/prop­erties/stdout
> *output? What if I want the entire workflow diagram to be shown in a web
> interface? Is there any support for that?
>
>
>
> Thanks!
>
>
>
>
> --
>
> Vimig Socrates
>
> Case Western Reserve University Class of 2018
>
>
>
>
>
>
>


RE: Resources to create UI using Workflow on Workbench

2018-09-19 Thread Ian Dunlop
Hello,

If you have a look at 
https://taverna.incubator.apache.org/documentation/server/3.1/usage you can see 
all the REST calls detailed. I’m assuming its much the same for 2.5.

Cheers,

Ian

Sent from Mail for Windows 10

From: Vimig Socrates
Sent: 17 September 2018 05:15
To: users@taverna.incubator.apache.org
Subject: Re: Resources to create UI using Workflow on Workbench

Hi,

Sorry for the late response. I tried running the player portal in docker and am 
having an issue. None of my workflows are running and whenever I try, the 
portal says "Server full - please wait; run will start soon".

With some debugging I've found that it is the Taverna Server that won't allow 
me to run anything on it. Using a REST client, I get a "503 Service 
Unavailable" error with the body as "failed to build workflow run worker". 

As an additional question, I looked through the Rails code for the polling REST 
call, but don't see it. What REST endpoint should I hit to get an update of 
where along the workflow the system currently is?

Please let me know. Thanks!






--
Vimig Socrates
Case Western Reserve University Class of 2018

On Tue, Sep 4, 2018 at 1:16 PM, Ian Dunlop  wrote:
Hello,
 
Have a look at https://github.com/taverna-extras/taverna-player-portal. This is 
a UI that uses the taverna server to run workflows and update progress.
I think there is some ruby code to get a png of the workflow diagram in it. 
There should also be some java code somewhere – anyone know where?
 
Cheers,
 
Ian
 
Sent from Mail for Windows 10
 
From: Vimig Socrates
Sent: 04 September 2018 18:11
To: users@taverna.incubator.apache.org
Subject: Resources to create UI using Workflow on Workbench
 
Hi everyone,
 
I am looking to run Taverna Server version 2.5 and create a user interface 
accessible from the internet that will update as the workflow progresses. To 
that end, I would need an API that I could access to get an update of a running 
workflow. 
 
Can I do that with /runs/{id}/listeners and only using the given 
/runs/{id}/listeners/io/properties/stdout output? What if I want the entire 
workflow diagram to be shown in a web interface? Is there any support for that? 
 
Thanks!
 


--
Vimig Socrates
Case Western Reserve University Class of 2018