AnsweredAssumed Answered

Workflow ID not found Android SDK exception

Question asked by mcasanket on Jun 3, 2014
Latest reply on Jun 4, 2014 by mcasanket
Hi All,

When I try to start workflow it gives the exception.

When I debugged the exception is thrown from the below line
       

            WorkflowService workflowService = this.session.getServiceRegistry().getWorkflowService();

            // Tried both the belwo lines one by one
            String processDefinitionIdentifier = WorkflowModel.KEY_REVIEW_ACTIVITI;
            processDefinitionIdentifier = "activiti$activitiReview";

            // Exception thrown from below line
            ProcessDefinition processDefinition = workflowService.getProcessDefinition(processDefinitionIdentifier);
       


<strong>Exception</strong>:
06-03 09:27:48.217    1111-1455/com.sign.alfdroid.app E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #2
    java.lang.RuntimeException: An error occured while executing doInBackground()
            at android.os.AsyncTask$3.done(AsyncTask.java:299)
            at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
            at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
            at java.util.concurrent.FutureTask.run(FutureTask.java:239)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
            at java.lang.Thread.run(Thread.java:856)

Caused by: org.alfresco.mobile.android.api.exceptions.AlfrescoServiceException: {"error":{"statusCode":404,"briefSummary":"05030002 <strong> The entity with id: activiti$activitiReview:1:8 was not found</strong>","stackTrace":"[org.alfresco.rest.workflow.api.impl.ProcessDefinitionsImpl.getProcessDefinition(ProcessDefinitionsImpl.java:255), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:601),

Outcomes