<?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 Activiti diagram-viewer 403 forbidden in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225578#M178708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to view the process instance diagram by using the url as it is explained in the following links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;A href="http://bpmn20inaction.blogspot.com.es/2013/02/process-diagrams-community-contribution.html" rel="nofollow noopener noreferrer"&gt;http://bpmn20inaction.blogspot.com.es/2013/02/process-diagrams-community-contribution.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#_process_diagram" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#_process_diagram&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I am getting 403 - Forbidden error message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I start an activiti-explorer session, and try to open view a process diagram using the url, the diagram is correctly shown.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying this with activiti version 5.18.0 and 5.19.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Dec 2015 16:51:25 GMT</pubDate>
    <dc:creator>jcoveron</dc:creator>
    <dc:date>2015-12-23T16:51:25Z</dc:date>
    <item>
      <title>Activiti diagram-viewer 403 forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225578#M178708</link>
      <description>GreetingsI am trying to view the process instance diagram by using the url as it is explained in the following links:* http://bpmn20inaction.blogspot.com.es/2013/02/process-diagrams-community-contribution.html* http://activiti.org/userguide/index.html#_process_diagramHowever, I am getting 403 - Forb</description>
      <pubDate>Wed, 23 Dec 2015 16:51:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225578#M178708</guid>
      <dc:creator>jcoveron</dc:creator>
      <dc:date>2015-12-23T16:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti diagram-viewer 403 forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225579#M178709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Activiti Explorer application requires you to have a valid session for every sub url of /activiti-explorer .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can just copy the diagram-viewer code to another application without authentication if that's what you are looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You also need to include the activiti-diagram-rest module in that case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 19:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225579#M178709</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-12-23T19:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti diagram-viewer 403 forbidden</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225580#M178710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for replying. In the end, I added the activiti-diagram-rest into the activiti-rest project. This allowed me to use the functions that I already had in combination with the diagram-viewer that is already implemented in the activiti-explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just in case anyone needs to to this, I will add the step I did. Hope they will be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Downloaded the source code for activiti version 5.19. I downloaded this version as this is the one I am currently using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Import the Maven project to Eclipse. I ended up importing the whole project and subprojects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Opened the activiti-rest project as this is were the url and logic needs to be added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Under src/main/java, I created a package called org.activiti.rest.service.api.diagram (I tried to follow the same naming convension as the rest of the code). Include the java files that are in the activiti-diagram-rest project. You have to include the four files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) Modify the file RestUrls.java under the package org.activiti.rest.service.api by including the following lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// this goes in the variable declaration section&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public static final String SEGMENT_DEPLOYMENT_ARTIFACT_DIAGRAM = "diagram-layout";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public static final String SEGMENT_DIAGRAM_LAYOUT = "diagram-layout";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public static final String SEGMENT_DIAGRAM_HIGHLIGHTS = "highlights";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * URL template for the diagram resource of a single process definition: &amp;lt;i&amp;gt;repository/process-definitions/{0&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;rocessDefinitionId}/diagram-layout&amp;lt;/i&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public static final String[] URL_PROCESS_DEFINITION_DIAGRAM_LAYOUT = {SEGMENT_REPOSITORY_RESOURCES, SEGMENT_PROCESS_DEFINITION_RESOURCE, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "{0}", SEGMENT_DEPLOYMENT_ARTIFACT_DIAGRAM};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * URL template for the diagram layout for a single process instance: &amp;lt;i&amp;gt;runtime/process-instances/{0&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;rocessInstanceId}/diagram-layout&amp;lt;/i&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public static final String[] URL_PROCESS_INSTANCE_DIAGRAM_LAYOUT = {SEGMENT_RUNTIME_RESOURCES, SEGMENT_PROCESS_INSTANCE_RESOURCE, "{0}", SEGMENT_DIAGRAM_LAYOUT};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /**&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * URL template for the diagram highlights for a single process instance: &amp;lt;i&amp;gt;runtime/process-instances/{0&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;rocessInstanceId}/highlights&amp;lt;/i&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; public static final String[] URL_PROCESS_INSTANCE_DIAGRAM_HIGHLIGHTS = {SEGMENT_RUNTIME_RESOURCES, SEGMENT_PROCESS_INSTANCE_RESOURCE, "{0}", SEGMENT_DIAGRAM_HIGHLIGHTS};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;6) Do a mvn clean install from a command line or directly from Eclispse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) Copy the newly created jar to the lib folder under the activiti-rest webapp in your Tomcat, and reboot it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With it, you will be able to get the diagram layout and highlighted tasks as if you were doing a regular rest call to Activiti's rest API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is helpfull.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 16:12:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-diagram-viewer-403-forbidden/m-p/225580#M178710</guid>
      <dc:creator>jcoveron</dc:creator>
      <dc:date>2016-02-10T16:12:14Z</dc:date>
    </item>
  </channel>
</rss>

