<?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 How to set a Job Due Date in Activiti 5.22.0? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-job-due-date-in-activiti-5-22-0/m-p/30140#M12820</link>
    <description>&lt;P&gt;I got a reference to a Job object like this:&lt;/P&gt;&lt;PRE&gt;Job timer = managementService.createJobQuery().processInstanceId(execution.getParentId()).singleResult();&lt;/PRE&gt;&lt;DIV class="CCN-CTAButton"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Could anyone please tell me how can I set the timer due date to an arbitrary date or time period in Activiti 5.22.0?&lt;/P&gt;&lt;P&gt;I could not find a suitable method in ManagementService or Job class.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 21:12:02 GMT</pubDate>
    <dc:creator>barquero</dc:creator>
    <dc:date>2020-01-22T21:12:02Z</dc:date>
    <item>
      <title>How to set a Job Due Date in Activiti 5.22.0?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-job-due-date-in-activiti-5-22-0/m-p/30140#M12820</link>
      <description>&lt;P&gt;I got a reference to a Job object like this:&lt;/P&gt;&lt;PRE&gt;Job timer = managementService.createJobQuery().processInstanceId(execution.getParentId()).singleResult();&lt;/PRE&gt;&lt;DIV class="CCN-CTAButton"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Could anyone please tell me how can I set the timer due date to an arbitrary date or time period in Activiti 5.22.0?&lt;/P&gt;&lt;P&gt;I could not find a suitable method in ManagementService or Job class.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:12:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-job-due-date-in-activiti-5-22-0/m-p/30140#M12820</guid>
      <dc:creator>barquero</dc:creator>
      <dc:date>2020-01-22T21:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a Job Due Date in Activiti 5.22.0?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-job-due-date-in-activiti-5-22-0/m-p/30141#M12821</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can set timer configuration to use &lt;/SPAN&gt;&lt;STRONG&gt;variable&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;instead of static value (like : "PT20S"), and then start process with this variable(so you can set custom value before start).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2020-02-04 at 11.44.20.png" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/167i21B3DA963ABC22F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Pass with variable when starting process :&lt;/P&gt;&lt;PRE&gt;processVariables.put("timerValue", "PT20S");

RuntimeService runtimeService = processEngine.getRuntimeService();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("processDefinitionKey",processVariables);&lt;/PRE&gt;&lt;P&gt;For more details look at&amp;nbsp;&lt;A href="https://access.redhat.com/solutions/1275113" target="_blank" rel="noopener nofollow noreferrer"&gt;https://access.redhat.com/solutions/1275113&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 13:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-job-due-date-in-activiti-5-22-0/m-p/30141#M12821</guid>
      <dc:creator>lasha</dc:creator>
      <dc:date>2020-02-03T13:55:54Z</dc:date>
    </item>
  </channel>
</rss>

