<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Workflow ID not found Android SDK exception in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306499#M259629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aloah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on your CMIS endpoint during session creation the process definition identifier is a little bit different. Indeed if the public API is used the prefix 'actviti$' is useless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To summarize,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/cmisatom&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers have 'actviti$' prefix like "activiti$activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/api/-default-/public/cmis/versions/1.0/atom/&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers don't have 'actviti$' prefix like "activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and your Alfresco Server &lt;/SPAN&gt;&lt;STRONG&gt;has Public API&lt;/STRONG&gt;&lt;SPAN&gt; (4.2Enterprise or 4.2.e+ community If my memory is good)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers don't use the 'actviti$' prefix like "activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and your Alfresco Server &lt;/SPAN&gt;&lt;STRONG&gt;doesn't have Public API&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers use the prefix "activiti$" like "activiti$activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more informations on Workflow constants : &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Alfresco/alfresco-android-sdk/blob/e6fa20da42175e2eb72f7c2f5144a86fbb201841/alfresco-mobile-android-client-api/src/main/java/org/alfresco/mobile/android/api/constants/WorkflowModel.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-android-sdk/blob/e6fa20da42175e2eb72f7c2f5144a86fbb201841/alfresco-mobile-android-client-api/src/main/java/org/alfresco/mobile/android/api/constants/WorkflowModel.java&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 10:54:00 GMT</pubDate>
    <dc:creator>jm_pascal</dc:creator>
    <dc:date>2014-06-03T10:54:00Z</dc:date>
    <item>
      <title>Workflow ID not found Android SDK exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306498#M259628</link>
      <description>Hi All,When I try to start workflow it gives the exception.When I debugged the exception is thrown from the below line&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkflowService workflowService = this.session.getServiceRegistry().getWorkflowService();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Tried both the belwo lines one by one&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String pr</description>
      <pubDate>Tue, 03 Jun 2014 09:42:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306498#M259628</guid>
      <dc:creator>mcasanket</dc:creator>
      <dc:date>2014-06-03T09:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow ID not found Android SDK exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306499#M259629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aloah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on your CMIS endpoint during session creation the process definition identifier is a little bit different. Indeed if the public API is used the prefix 'actviti$' is useless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To summarize,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/cmisatom&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers have 'actviti$' prefix like "activiti$activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco/api/-default-/public/cmis/versions/1.0/atom/&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers don't have 'actviti$' prefix like "activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and your Alfresco Server &lt;/SPAN&gt;&lt;STRONG&gt;has Public API&lt;/STRONG&gt;&lt;SPAN&gt; (4.2Enterprise or 4.2.e+ community If my memory is good)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers don't use the 'actviti$' prefix like "activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your endpoint url is like &lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;AlfrescoServerHostname&amp;gt;:&amp;lt;port&amp;gt;/alfresco&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;and your Alfresco Server &lt;/SPAN&gt;&lt;STRONG&gt;doesn't have Public API&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Process Definition Identifiers use the prefix "activiti$" like "activiti$activitiReview"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more informations on Workflow constants : &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/Alfresco/alfresco-android-sdk/blob/e6fa20da42175e2eb72f7c2f5144a86fbb201841/alfresco-mobile-android-client-api/src/main/java/org/alfresco/mobile/android/api/constants/WorkflowModel.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-android-sdk/blob/e6fa20da42175e2eb72f7c2f5144a86fbb201841/alfresco-mobile-android-client-api/src/main/java/org/alfresco/mobile/android/api/constants/WorkflowModel.java&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 10:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306499#M259629</guid>
      <dc:creator>jm_pascal</dc:creator>
      <dc:date>2014-06-03T10:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow ID not found Android SDK exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306500#M259630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I go to workflow console and fire a command "show definitions all" it shows&amp;nbsp; me the below result. In that the process id is as below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;id: activiti$activitiReview:1:8 , name: activiti$activitiReview , title: Review And Approve , version: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached the screenshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing using Alfresco-Android sdk 1.3.1 version. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco version is 4.2.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However the same code was working before with alfresco 4.1 versions… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 07:59:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306500#M259630</guid>
      <dc:creator>mcasanket</dc:creator>
      <dc:date>2014-06-04T07:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow ID not found Android SDK exception</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306501#M259631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As said previously 4.2 has introduced the public API. It's the official recommended REST API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The public API has a different URL than other Alfresco REST API. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Alfresco 4.2 when you create a RepositorySession with an url like &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/myhostname:port/alfresco" rel="nofollow noopener noreferrer"&gt;http://myhostname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco&lt;/A&gt;&lt;SPAN&gt;, we will automatically bind to &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/myhostname:port/alfresco/api/-default-/public/cmis/versions/1.0/atom" rel="nofollow noopener noreferrer"&gt;http://myhostname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/api/-default-/public/cmis/versions/1.0/atom/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;With Alfresco 4.0.x &amp;amp; 4.1.x when you create a RepositorySession with an url like &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/myhostname:port/alfresco" rel="nofollow noopener noreferrer"&gt;http://myhostname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco&lt;/A&gt;&lt;SPAN&gt;, we will automatically bind to &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/myhostname:port/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://myhostname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/cmisatom&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you create your RepositorySession with an url like &lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/myhostname:port/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://myhostname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ort/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; your code should works as previously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if you want to use the public API on 4.2, you need to rework your processDefinition and remove the activiti$ prefix which is useless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach is to use the session.getServiceRegistry().getWorkflowService().getProcessDefinitions() to list all process definition, find your requested definition by its name and then use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 22:44:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/workflow-id-not-found-android-sdk-exception/m-p/306501#M259631</guid>
      <dc:creator>jm_pascal</dc:creator>
      <dc:date>2014-06-04T22:44:37Z</dc:date>
    </item>
  </channel>
</rss>

