-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I've had a chat with the taverna player developer and you need to send
a request as follows:
POST to /workflows.json
{"workflow" : { "document" :
"data:application/octet-stream;base64,BASE64 ENCODED WORKFLOW GOES
HERE"}}
using HTTP basic auth with username:password base64 encoded in the
Authorization header in the request e.g. Authorization: Basic
QWxhZGRpbjpvcGVuIHNlc2FtZQ==. You have to specify .json because the
content type is not being respected for some reason.
Here's an example using curl:
curl -u your_username -X POST -H "Content-Type: application/json"
- [email protected] http://taverna-player-server/workflows.json
where wf.json is the workflow file, this would then prompt for a passwor
d.
Hope this helps, please let us know how you get on.
Cheers,
Ian
On 29/06/15 19:23, Larry Akah wrote:
> I need some help with uploading a workflow to the player. The API
> doesn't make it seem possible currently. How is it done?
>
> cheers
>
> 2015-06-29 16:55 GMT+01:00 Larry Akah <[email protected]>:
>
>> Yes, its not yet ready. i still need to adjust that because at
>> first , i was using the player to fetch workflows and derived a
>> run skeleton to use for creating workflows. There is still some
>> stuff that needs to be fixed there.
>>
>> Cheers
>>
>> 2015-06-29 16:34 GMT+01:00 Ian Dunlop
>> <[email protected]>:
>>
>>> Hello,
>>>
>>> I got a ‘fatal’ error which the emulator reported when clicking
>>> on ‘create run’:
>>>
>>> 06-29 15:25:39.554
>>> 8216-8216/mobile.taverna.apache.org.tavernamobile
>>> E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:
>>> mobile.taverna.apache.org.tavernamobile, PID: 8216
>>> java.lang.NullPointerException: Attempt to invoke virtual
>>> method 'void android.app.AlertDialog.show()' on a null object
>>> reference at
>>> org.apache.taverna.mobile.fragments.workflowdetails.WorkflowdetailFr
agment$WorkflowRunTask.onPostExecute(WorkflowdetailFragment.java:407)
>>>
>>>
at
>>> org.apache.taverna.mobile.fragments.workflowdetails.WorkflowdetailFr
agment$WorkflowRunTask.onPostExecute(WorkflowdetailFragment.java:289)
>>>
>>>
at android.os.AsyncTask.finish(AsyncTask.java:636)
>>> at android.os.AsyncTask.access$500(AsyncTask.java:177) at
>>> android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:65
3)
>>>
>>>
at android.os.Handler.dispatchMessage(Handler.java:102)
>>> at android.os.Looper.loop(Looper.java:135) at
>>> android.app.ActivityThread.main(ActivityThread.java:5257) at
>>> java.lang.reflect.Method.invoke(Native Method) at
>>> java.lang.reflect.Method.invoke(Method.java:372) at
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteIni
t.java:903)
>>>
>>>
at
>>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
>>>
>>> The device reported that the app had stopped running but in
>>> fact it returned it to the workflows view but all the workflows
>>> had disappeared from the view. I guess it’s probably because
>>> this functionality is not ready yet but I figured I should
>>> report it anyway.
>>>
>>> Cheers,
>>>
>>> Ian
>>>
>>
>>
>>
>> -- *Akah Larry N.H*
>>
>> *Lead Software Engineer @ GiftedMom* *Founder IceTeck Inc*
>> *www.iceteck.com*
>>
>> Developing technologies for emergence and sustainable
>> development.
>>
>>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJVkmtSAAoJEPK45GBX+Cy5u2kIAITJcbvb9Jux4HURxUG/Tgoh
ClhunPryoQRm9t/mChKrB1R6CgLnBd9yy3RFX8C1GEJVkoLw6sJhHw/8cnGuXPq/
1/NQlOsUA/1U5R3MDbQduLEuN9hHscHwNc1mz5xvjMA0qwD6GSbPKbHIX8m6UD0C
aRuHFBKd5arrxGfDkjJu+VgKFC8+qjt+acP5wC8PQ4bLcEfl8s/7mDQYAQxu6rTX
xtIAP/xtdYqxF+TFP8kWxWKgeombwvHF3w33zb0mLeDYHGzVSUiN+lj0879kNCzt
sEJsnh4lG+oJYGVhEof3cIV2X4LvCDi0NKHgvYoOh3+SfQQO9xtHwt/YGkdMZoM=
=orPD
-----END PGP SIGNATURE-----