<?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: Setting Job ID in timed process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147570#M103003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process definition key is stored in the "configuration_" column. Also, the process-definition ID should be set when the process is deployed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; TimerEntity timer = timerDeclaration.prepareTimerEntity(null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.setProcessDefinitionId(processDefinition.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getCommandContext()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getJobEntityManager()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .schedule(timer);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not the case, can you create a unit-test that points out the NULL value?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2013 07:53:59 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-06-18T07:53:59Z</dc:date>
    <item>
      <title>Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147567#M103000</link>
      <description>Hello,I have a TimerDefinition in my process definition, which will create a Job instance when the process definition is deployed. I would like to set the processDefinitionID column AND/OR jobID column of the Job Table to an ID of my choosing. How should I go about achieving that?I tried the "id" XM</description>
      <pubDate>Sun, 16 Jun 2013 21:42:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147567#M103000</guid>
      <dc:creator>hyapit</dc:creator>
      <dc:date>2013-06-16T21:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147568#M103001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's not possible, the job id is a db sequence identifier. Why would you want to do that? You can use the job query to get the job based on your process definition id.&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>Mon, 17 Jun 2013 08:57:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147568#M103001</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-06-17T08:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147569#M103002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to associate a process definition to a Job ( a TimerEntity ). I'm using a timerDefinition tag, which creates a TimerEntity with process definition id NOT set ( is this not expected? ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I mentioned, setting process definition id would be perfect. Advice on how to do this Tijs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 21:01:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147569#M103002</guid>
      <dc:creator>hyapit</dc:creator>
      <dc:date>2013-06-17T21:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147570#M103003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The process definition key is stored in the "configuration_" column. Also, the process-definition ID should be set when the process is deployed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; TimerEntity timer = timerDeclaration.prepareTimerEntity(null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.setProcessDefinitionId(processDefinition.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getCommandContext()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getJobEntityManager()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .schedule(timer);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is not the case, can you create a unit-test that points out the NULL value?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 07:53:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147570#M103003</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-18T07:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147571#M103004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was interested in setting the processDef ID from my bpmn20 xml, since my timer definition is part of a larger BPMN xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to set process definition ID before the TimerEntity is kickstarted when the process definition is deployed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2013 19:48:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147571#M103004</guid>
      <dc:creator>hyapit</dc:creator>
      <dc:date>2013-06-19T19:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147572#M103005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why would you want to do that? What do you mean with 'larger BPMN xml' … do you mean you compose different XML's?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 07:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147572#M103005</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-24T07:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147573#M103006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was interested in setting the processDef ID from my bpmn20 xml, since my timer definition is part of a larger BPMN x&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 11:07:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147573#M103006</guid>
      <dc:creator>beearn</dc:creator>
      <dc:date>2013-06-26T11:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147574#M103007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;re: why would I want to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;because I need to associate a timerEntity with a particular process definition. Starting a TimerEntity using timerDefinition tag leaves "processDefinitionId" of the Job null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;re: what I mean by larger XML?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what I really meant was I have a complex process definition and needed to start a timerEntity somewhere in the middle of the process. I was hoping there's a way to set processDefinitionId from within the XML as I find it to be the most trivial solution if supported. From your reaction there seems to be no way to do this from the XML. I'm going to explore using "ExecutionListener" and use the solution Frederik suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks guys!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 06:48:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147574#M103007</guid>
      <dc:creator>hyapit</dc:creator>
      <dc:date>2013-06-27T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147575#M103008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A timer in a process is always attached to the process instance it was created from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still don't get it: you want to set a timer on a process definition … what does that even mean? What is the use case you try to solve?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147575#M103008</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-27T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147576#M103009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A timer in a process is always attached to the process instance it was created from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I still don't get it: you want to set a timer on a process definition … what does that even mean? What is the use case you try to solve?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147576#M103009</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-27T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147577#M103010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I understand your point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my unique use case, I do have one timer per process definition ( the process definition will only be instantiated once ), and I saw the column "PROC_DEF_ID" in ACT_RU_JOB table made me think you guys have some level of support for this use case. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot of your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your response early on, I deduce that this is not the case and PROC_DEF_ID is not meant to hold the process definition ID I was thinking about.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:57:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147577#M103010</guid>
      <dc:creator>hyapit</dc:creator>
      <dc:date>2013-07-10T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Job ID in timed process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147578#M103011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you are correct in your analysis: the process definition id is not used for this purpose, it is there for delayed suspending of a process definition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 07:02:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/setting-job-id-in-timed-process/m-p/147578#M103011</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-07-12T07:02:39Z</dc:date>
    </item>
  </channel>
</rss>

