<?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 Database - timer - diagram in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/database-timer-diagram/m-p/156577#M110817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to change timer duration without deploying the new diagram. I know I can change timer duration via bpmn diagram. But can I change it via only changing database. Where this data (PT10M for instance) is stored on database? I see only a 'Due Date' column on ACT_RU_JOB table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While investigating this, another question had occured on my mind. Usually I managed activiti related issues on my project, and I deploy current bpmn diagram when a change is needed. but my colleagues don't have activiti-explorer on their computers so I share my activiti database to them. How can they manage to see bpmn diagrams then? Where and how bpmn diagrams are stored on database? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my first question here and I'm not sure 'Activiti Engine' is the right forum for my questions but it seemed it is to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks..&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 09:01:56 GMT</pubDate>
    <dc:creator>ayseyo</dc:creator>
    <dc:date>2013-12-16T09:01:56Z</dc:date>
    <item>
      <title>Database - timer - diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-timer-diagram/m-p/156577#M110817</link>
      <description>Hi all,I need to change timer duration without deploying the new diagram. I know I can change timer duration via bpmn diagram. But can I change it via only changing database. Where this data (PT10M for instance) is stored on database? I see only a 'Due Date' column on ACT_RU_JOB table. While investi</description>
      <pubDate>Mon, 16 Dec 2013 09:01:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-timer-diagram/m-p/156577#M110817</guid>
      <dc:creator>ayseyo</dc:creator>
      <dc:date>2013-12-16T09:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Database - timer - diagram</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/database-timer-diagram/m-p/156578#M110818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) Timer duration is not stored in the database in an individual column, instead, when the timer-job is created, the due-dateis calculated based on that value and inserted. The actual timer-definition (PT10M) is only stored as part of the whole process-definition in the XML. Changing the timer-definition for processes that are running with timers that are already scheduled (== have an entry in ACT_R_JOB) is not possible. If you alter the time-duration and redeploy the process-definition, all new instances will start with the new duration. If you which, you can alter the running process-instances as well, and force them to use the "new" definition instead of the old one. However, this is at your own risk. If you only alter the duration of a timer, this is quite safe. Take a look at org.activiti.engine.impl.cmd.SetProcessDefinitionVersionCmd and read the docs for this kind of solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have varying "timeouts", you should use expressions instead of fixed values for time-durations or calculate the actual dua-date using one of your services. You can use expressions to get hold of the duedate for a timer. This allows you to centralise all due-date calculations and make this work based on any algorithm you want (eg. store in database so you can change this while the engine is running). Take a look at the userguide to see how you can leverage expressions and existing services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Depends on how the process is created. If you create the process in activiti designer or activiti modeler, the diagram will contains BPMN-DI information. This information exposes how a diagram should be rendered (coördinates and dimensions of all shapes). If such a procesdefinition is deployed in Activiti, a PNG-representation is created based on that. This is deployed along-side the process-definition and can be accessed through the API (repositoryService.getDeploymentResource(…)). It's also direclty available trough activiti-rest, which comes in handy when using remove systems:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;GET repository/process-definitions/{processDefinitionId}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Will result in &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp; "id" : "oneTaskProcess:1:4",&lt;BR /&gt;&amp;nbsp; "url" : "&lt;A href="http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/repository/process-definitions/oneTaskProcess%3A1%3A4&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp; "version" : 1,&lt;BR /&gt;&amp;nbsp; "key" : "oneTaskProcess",&lt;BR /&gt;&amp;nbsp; "category" : "Examples",&lt;BR /&gt;&amp;nbsp; "suspended" : false,&lt;BR /&gt;&amp;nbsp; "name" : "The One Task Process",&lt;BR /&gt;&amp;nbsp; "description" : "This is a process for testing purposes",&lt;BR /&gt;&amp;nbsp; "deploymentId" : "2",&lt;BR /&gt;&amp;nbsp; "deploymentUrl" : "&lt;A href="http://localhost:8081/repository/deployments/2" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/repository/deployments/2&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp; "graphicalNotationDefined" : true,&lt;BR /&gt;&amp;nbsp; "resource" : "&lt;A href="http://localhost:8182/repository/deployments/2/resources/testProcess.xml" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/repository/deployments/2/resources/testProcess.xml&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp; "diagramResource" : "&lt;A href="http://localhost:8182/repository/deployments/2/resources/testProcess.png" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/repository/deployments/2/resources/testProcess.png&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp; "startFormDefined" : false&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Which (if available) exposes a "diagramResource" property, pointing to the image (e.g.: "&lt;/SPAN&gt;&lt;A href="http://localhost:8182/repository/deployments/2/resources/testProcess.png" rel="nofollow noopener noreferrer"&gt;http://localhost:8182/repository/deployments/2/resources/testProcess.png&lt;/A&gt;&lt;SPAN&gt;").&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 09:48:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/database-timer-diagram/m-p/156578#M110818</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-16T09:48:29Z</dc:date>
    </item>
  </channel>
</rss>

