Re: Running Workflows using Taverna Server

2018-03-03 Thread Sagar
Hi,

On Sat, Mar 3, 2018 at 1:03 PM, Nitish Kundala  wrote:

> Hi,
> I have been reading up to work on the Issue - 1033
>  and have understood
> the following. (Any advice or corrections would be appreciated)
>
> I have been through the documentation
>  IFm8hvo/edit>
>

The documentation is outdated. So please don't rely on it.


> of the Taverna Mobile app and understood the following:
> 1)The Taverna Player JSON API
>  JSON-API-Documentation>
> is used to run the workflows.
> 2)Taverna Player is currently capable of running only type two workflows.
> 3)On clicking the run button we receive a WorkflowRunTask, the user can
> enter the required parameters specific for the run.
> 4)Then the app creates a RunTask which then waits for the result and the
> user can download the results.


Currently app download the workflow from myexperiment and upload it to
taverna player portal and then app show taverna player portal in WebView.
So, Now this project idea is to eleminated the the webview in which we have
to wait for result on the basis on input and also to eleminate the
middleware taverna player portal.





> So as I understand it, the changes that are to be made are:
> 1) The login that currently goes via the the Taverna Player Portal needs to
> go via the Taverna Server.
> 2) The uploading of the workflow content has to be done to the Taverna
> Server to run.
> 3) Getting of the workflow details of the ones that were run also has to be
> rerouted.
>
> So basically the TavernaPlayerService.java
>  master/app/src/main/java/org/apache/taverna/mobile/data/
> remote/TavernaPlayerService.java>
> Interface has to be replaced. And there have to be made certain changes in
> the API call structure.
> I have been going through the Taverna Server
> 
> Documentations and trying to map the required calls.
>
>
> Thanks and Regards,
>
> *Nitish Kundala* .
>

-- 

Warmest regards
Sagar


[GitHub] incubator-taverna-mobile pull request #67: Fix: Replace fav workflow icon im...

2018-03-03 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-taverna-mobile/pull/67


---


[GitHub] incubator-taverna-mobile pull request #66: Adds tutorial screens on first st...

2018-03-03 Thread sagar15795
Github user sagar15795 commented on a diff in the pull request:


https://github.com/apache/incubator-taverna-mobile/pull/66#discussion_r172019875
  
--- Diff: 
app/src/main/java/org/apache/taverna/mobile/ui/TutorialActivity.java ---
@@ -0,0 +1,218 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.taverna.mobile.ui;
+
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.text.Html;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import org.apache.taverna.mobile.R;
+import org.apache.taverna.mobile.utils.PreferencesManager;
+
+import butterknife.BindView;
+import butterknife.ButterKnife;
+
+public class TutorialActivity extends AppCompatActivity {
+
+@BindView(R.id.view_pager)
+ViewPager viewPager;
+
+@BindView(R.id.layoutDots)
+LinearLayout dotsLayout;
+
+@BindView(R.id.btn_skip)
+Button bSkip;
+
+@BindView(R.id.btn_next)
+Button bNext;
+
+
+ViewPagerAdapter viewPagerAdapter;
+TextView[] dots;
+int[] layouts;
+PreferencesManager preferencesManager;
+
+@Override
+protected void onCreate(Bundle savedInstanceState) {
+super.onCreate(savedInstanceState);
+preferencesManager = new PreferencesManager(this);
+if (!preferencesManager.isFirstTimeLaunch()) {
+launchFlashScreen();
+finish();
+}
+
+setContentView(R.layout.activity_tutorial);
+
+ButterKnife.bind(this);
+
+if (Build.VERSION.SDK_INT >= 21) {
+getWindow().getDecorView()
+
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
+| 
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
+}
+
+
+// layouts of all tutorial sliders
+layouts = new int[]{
+R.layout.tutorial_slide1,
+R.layout.tutorial_slide2,
+R.layout.tutorial_slide3,
+R.layout.tutorial_slide4};
+
+addBottomDots(0);
+
+changeStatusBarColor();
+
+viewPagerAdapter = new ViewPagerAdapter();
+viewPager.setAdapter(viewPagerAdapter);
+viewPager.addOnPageChangeListener(viewPagerPageChangeListener);
+
+bSkip.setOnClickListener(new View.OnClickListener() {
+@Override
+public void onClick(View v) {
+launchFlashScreen();
+}
+});
+
+bNext.setOnClickListener(new View.OnClickListener() {
+@Override
+public void onClick(View v) {
+int current = getItem(+1);
+if (current < layouts.length) {
+viewPager.setCurrentItem(current);
+} else {
+launchFlashScreen();
+}
+}
+});
+}
+
+private void addBottomDots(int currentPage) {
+dots = new TextView[layouts.length];
+
+int[] colorsActive = 
getResources().getIntArray(R.array.array_dot_active);
+int[] colorsInactive = 
getResources().getIntArray(R.array.array_dot_inactive);
+
+dotsLayout.removeAllViews();
+for (int i = 0; i < dots.length; i++) {
+dots[i] = new TextView(this);
+

[GitHub] incubator-taverna-mobile pull request #66: Adds tutorial screens on first st...

2018-03-03 Thread sagar15795
Github user sagar15795 commented on a diff in the pull request:


https://github.com/apache/incubator-taverna-mobile/pull/66#discussion_r172019762
  
--- Diff: 
app/src/main/java/org/apache/taverna/mobile/ui/TutorialActivity.java ---
@@ -0,0 +1,218 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.taverna.mobile.ui;
+
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.text.Html;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import org.apache.taverna.mobile.R;
+import org.apache.taverna.mobile.utils.PreferencesManager;
+
+import butterknife.BindView;
+import butterknife.ButterKnife;
+
+public class TutorialActivity extends AppCompatActivity {
+
+@BindView(R.id.view_pager)
+ViewPager viewPager;
+
+@BindView(R.id.layoutDots)
+LinearLayout dotsLayout;
+
+@BindView(R.id.btn_skip)
+Button bSkip;
+
+@BindView(R.id.btn_next)
+Button bNext;
+
+
+ViewPagerAdapter viewPagerAdapter;
+TextView[] dots;
+int[] layouts;
+PreferencesManager preferencesManager;
+
+@Override
+protected void onCreate(Bundle savedInstanceState) {
+super.onCreate(savedInstanceState);
+preferencesManager = new PreferencesManager(this);
+if (!preferencesManager.isFirstTimeLaunch()) {
+launchFlashScreen();
+finish();
+}
+
+setContentView(R.layout.activity_tutorial);
+
+ButterKnife.bind(this);
+
+if (Build.VERSION.SDK_INT >= 21) {
+getWindow().getDecorView()
+
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
+| 
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
+}
+
+
+// layouts of all tutorial sliders
+layouts = new int[]{
+R.layout.tutorial_slide1,
+R.layout.tutorial_slide2,
+R.layout.tutorial_slide3,
+R.layout.tutorial_slide4};
+
+addBottomDots(0);
+
+changeStatusBarColor();
+
+viewPagerAdapter = new ViewPagerAdapter();
+viewPager.setAdapter(viewPagerAdapter);
+viewPager.addOnPageChangeListener(viewPagerPageChangeListener);
+
+bSkip.setOnClickListener(new View.OnClickListener() {
+@Override
+public void onClick(View v) {
+launchFlashScreen();
+}
+});
+
+bNext.setOnClickListener(new View.OnClickListener() {
--- End diff --

use '@OnClick' butterknife function 


---


[GitHub] incubator-taverna-mobile pull request #66: Adds tutorial screens on first st...

2018-03-03 Thread sagar15795
Github user sagar15795 commented on a diff in the pull request:


https://github.com/apache/incubator-taverna-mobile/pull/66#discussion_r172019744
  
--- Diff: 
app/src/main/java/org/apache/taverna/mobile/ui/TutorialActivity.java ---
@@ -0,0 +1,218 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.taverna.mobile.ui;
+
+import android.content.Context;
+import android.content.Intent;
+import android.graphics.Color;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.v4.view.PagerAdapter;
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.text.Html;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.LinearLayout;
+import android.widget.TextView;
+
+import org.apache.taverna.mobile.R;
+import org.apache.taverna.mobile.utils.PreferencesManager;
+
+import butterknife.BindView;
+import butterknife.ButterKnife;
+
+public class TutorialActivity extends AppCompatActivity {
+
+@BindView(R.id.view_pager)
+ViewPager viewPager;
+
+@BindView(R.id.layoutDots)
+LinearLayout dotsLayout;
+
+@BindView(R.id.btn_skip)
+Button bSkip;
+
+@BindView(R.id.btn_next)
+Button bNext;
+
+
+ViewPagerAdapter viewPagerAdapter;
+TextView[] dots;
+int[] layouts;
+PreferencesManager preferencesManager;
+
+@Override
+protected void onCreate(Bundle savedInstanceState) {
+super.onCreate(savedInstanceState);
+preferencesManager = new PreferencesManager(this);
+if (!preferencesManager.isFirstTimeLaunch()) {
+launchFlashScreen();
+finish();
+}
+
+setContentView(R.layout.activity_tutorial);
+
+ButterKnife.bind(this);
+
+if (Build.VERSION.SDK_INT >= 21) {
+getWindow().getDecorView()
+
.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE
+| 
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
+}
+
+
+// layouts of all tutorial sliders
+layouts = new int[]{
+R.layout.tutorial_slide1,
+R.layout.tutorial_slide2,
+R.layout.tutorial_slide3,
+R.layout.tutorial_slide4};
+
+addBottomDots(0);
+
+changeStatusBarColor();
+
+viewPagerAdapter = new ViewPagerAdapter();
+viewPager.setAdapter(viewPagerAdapter);
+viewPager.addOnPageChangeListener(viewPagerPageChangeListener);
+
+bSkip.setOnClickListener(new View.OnClickListener() {
--- End diff --

use `@OnClick` butterknife function.


---


[GitHub] incubator-taverna-mobile pull request #66: Adds tutorial screens on first st...

2018-03-03 Thread sagar15795
Github user sagar15795 commented on a diff in the pull request:


https://github.com/apache/incubator-taverna-mobile/pull/66#discussion_r172019667
  
--- Diff: 
app/src/main/java/org/apache/taverna/mobile/utils/PreferencesManager.java ---
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.taverna.mobile.utils;
+
+import android.annotation.SuppressLint;
+import android.content.Context;
+import android.content.SharedPreferences;
+
+
+public class PreferencesManager {
--- End diff --

We are using `PreferencesHelper` to manage all shared preferences. Please 
use it only.


---


Podling Report Reminder - March 2018

2018-03-03 Thread johndament
Dear podling,

This email was sent by an automated system on behalf of the Apache
Incubator PMC. It is an initial reminder to give you plenty of time to
prepare your quarterly board report.

The board meeting is scheduled for Wed, 21 March 2018, 10:30 am PDT.
The report for your podling will form a part of the Incubator PMC
report. The Incubator PMC requires your report to be submitted 2 weeks
before the board meeting, to allow sufficient time for review and
submission (Wed, March 07).

Please submit your report with sufficient time to allow the Incubator
PMC, and subsequently board members to review and digest. Again, the
very latest you should submit your report is 2 weeks prior to the board
meeting.

Thanks,

The Apache Incubator PMC

Submitting your Report

--

Your report should contain the following:

*   Your project name
*   A brief description of your project, which assumes no knowledge of
the project or necessarily of its field
*   A list of the three most important issues to address in the move
towards graduation.
*   Any issues that the Incubator PMC or ASF Board might wish/need to be
aware of
*   How has the community developed since the last report
*   How has the project developed since the last report.
*   How does the podling rate their own maturity.

This should be appended to the Incubator Wiki page at:

https://wiki.apache.org/incubator/March2018

Note: This is manually populated. You may need to wait a little before
this page is created from a template.

Mentors
---

Mentors should review reports for their project(s) and sign them off on
the Incubator wiki page. Signing off reports shows that you are
following the project - projects that are not signed may raise alarms
for the Incubator PMC.

Incubator PMC