Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DF776200B72 for ; Fri, 26 Aug 2016 10:33:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DDE24160AB6; Fri, 26 Aug 2016 08:33:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 098F5160AB0 for ; Fri, 26 Aug 2016 10:33:05 +0200 (CEST) Received: (qmail 137 invoked by uid 500); 26 Aug 2016 08:33:05 -0000 Mailing-List: contact dev-help@taverna.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@taverna.incubator.apache.org Delivered-To: mailing list dev@taverna.incubator.apache.org Received: (qmail 124 invoked by uid 99); 26 Aug 2016 08:33:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2016 08:33:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 89554180462 for ; Fri, 26 Aug 2016 08:33:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xe5pcD6YJqr6 for ; Fri, 26 Aug 2016 08:33:00 +0000 (UTC) Received: from mail-qt0-f174.google.com (mail-qt0-f174.google.com [209.85.216.174]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id D95885F235 for ; Fri, 26 Aug 2016 08:32:59 +0000 (UTC) Received: by mail-qt0-f174.google.com with SMTP id u25so34572284qtb.1 for ; Fri, 26 Aug 2016 01:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=T1xx6KiarQiPrwB1/Usm2A+NTrg/Z7q9GUHeJZIPnpM=; b=zYWCq7RjI8COdwT/ZxAgjKWObcNHniWBPeGFZFnwRDuWclbR2JpYOsYiODNjosUO3n bf3wxRiKXZDEMUTafp6BTjRKilwBjacDWKgf4WHw+3Akk64Z88NjufGKfqzXMWm6+Xbp A71Fs2dtAyIDCm3K9hfNEGIf82XY2ZvVFX2fo4tCkCYV68A5sFoz/0rzVb2JzkakfmNn t6D97Vt+r5x2lCc98XfifyQXJPO7j4VDkWIBMJlwN3MbyuS74r6E304UH1567Z9LyrJ5 X7hKw98FwqHbse+7tv2yH3VoO2i0Lv9ZBz4N5lboa5SC1SUyVS2A/QgTqLjfFoRCtqDj IaWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=T1xx6KiarQiPrwB1/Usm2A+NTrg/Z7q9GUHeJZIPnpM=; b=BpisI8TnEDKPccCqz0oZLJ2Qjgv0YHK6dx+ivtVvX9BwVL4EdhscnV2nQM7ktljzT1 YoXEqb9PMfko+PZAIFSM/hW9SjIvzBzRw3OqaSaIh8wBa8KG2nD+oGpjHBqV7MQT7Gd5 Hayn+QY+eyJvbFxHcxbsRQNC6ZsQvsBMWvjo5opWSX5Mwknm2IRNutRIgShPUuXGiy3T tf1PLzMqbUxoGW0crKaQ8GBEoJ5YR67t6K0r2XDILtM21ChnFhbjDM0L/zVCSOLedsxH lMYp7B2adBLkt6Kz3lL6+Nr3deyhbCKbr/FAUGpRSSWSCh+aGUxDFRBjYkZkstHKYXnP n5Yw== X-Gm-Message-State: AE9vXwOQ+XULELe95flF3Hj2Et+Z10wm0eOni795dpEyLrhyKsZK1ZiO3upN3Jut5//etOqpU1wG91soQBPqlA== X-Received: by 10.200.55.215 with SMTP id e23mr1911333qtc.20.1472200373137; Fri, 26 Aug 2016 01:32:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.81.71 with HTTP; Fri, 26 Aug 2016 01:32:52 -0700 (PDT) In-Reply-To: References: <7f6815b1-4ead-fb7c-31a3-77d5fd5fe38b@manchester.ac.uk> From: Ian Dunlop Date: Fri, 26 Aug 2016 09:32:52 +0100 Message-ID: Subject: Re: Taverna Player Portal JSON API queries ( Apache Taverna Mobile ) To: dev@taverna.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11471b9c47778d053af55c74 archived-at: Fri, 26 Aug 2016 08:33:07 -0000 --001a11471b9c47778d053af55c74 Content-Type: text/plain; charset=UTF-8 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 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 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 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 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 > > > 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,<< > >> 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 * > --001a11471b9c47778d053af55c74--