cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Android

khalilslimi
Champ in-the-making
Champ in-the-making
Hello,

I am following this official tutorial to create a workflow from an android device

http://docs.alfresco.com/mobile_sdk/android/tasks/working-with-workflow-starting-a-workflow.html

But I am always getting a CmisConnectionException. I cannont get aceess to workflow definitions through the workflow service of the alfresco android sdk.

this is error log :

org.alfresco.mobile.android.api.exceptions.AlfrescoServiceException: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access http://10.0.3.2:8080/alfresco/service/api/workflow-definitions/activiti$activitiAdhoc: null

Any one can help me please.

Thank You.
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
You're getting null returned because the definition id needs to include the version number. You can see these if you list all the definitions:
http://10.0.3.2:8080/alfresco/service/api/workflow-definitions

Notice the activiti$activitiAdhoc definition will have an id similar to "activiti$activitiAdhoc:1:4" so the URL you'll need to use is
http://10.0.3.2:8080/alfresco/service/api/workflow-definitions/activiti$activitiAdhoc:1:4

Thanks,
Mike

khalilslimi
Champ in-the-making
Champ in-the-making
Thank you Mike.