cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all workflow tasks in Android App.

mcasanket
Champ on-the-rise
Champ on-the-rise
Hello everyone,

  I want to know that, how can I get all the workflow task related to logged in user in android app.
  I am having the session object by which I am able to get all the sites and all. But don't know how to get all the workflow tasks.

I am using alfresco 3.4.11.

Please help!
2 REPLIES 2

jm_pascal
Star Contributor
Star Contributor
Aloah,

For the moment we have no support for Workflow in general on both SDK and Application side.
We hope to start working on this specific part this summer.

If you have strong deadline, you can extend and customize the application and use http://wiki.alfresco.com/wiki/Workflow_REST_API

Hope it helps.

Hi Jm,

Thanks for your reply. I have seen the link that you have given. I am trying to access my tasks.
I have seen that there is a web script that returns a JSON that contains all the task details.

GET api/task-instances?authority={authority_id?}&state={in_progress|completed?}&priority={priority?}&pooledTasks={true|false?}&
    dueBefore={isoDate?}&dueAfter={isoDate?}&properties={prop1, prop2, prop3…?}&maxItems={maxItems?}&skipCount={skipCount?}&exclude={exclude?}
    <= SimpleTaskInstanceResponse[]

But how can I call it from other application lets say android mobile? I tried to hit the the below url in browser without login.

http://localhost:8080/share/proxy/alfresco/api/task-instances?authority=admin&properties=bpm_priorit...

It displayed nothing. Then I tried to pass the alf_ticket and changed the url to below string but same thing happened.

http://localhost:8080/share/proxy/alfresco/api/task-instances?properties=bpm_priority,bpm_status,bpm...

Thank you!