<?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: Timer based on variables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52262#M30671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply&amp;nbsp; but I don't understand. That just seems to get rid of the Exclusive gateway. You would still have two nodes CallSubWithTimer and CallSubWithoutTimer. The issue here is not the Exclusive Gateway, but to minimize duplicate tasks/nodes and paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2011 15:37:42 GMT</pubDate>
    <dc:creator>ruedesilva</dc:creator>
    <dc:date>2011-09-19T15:37:42Z</dc:date>
    <item>
      <title>Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52258#M30667</link>
      <description>Hi,I have attached my WF in CallSubscriber.png. Basically I need to have a boundary event/timer on a user task based on a variable. Currently I do not see way to do this. So I had to duplicate the user task and then put an exclusive gateway in front of it so that I take the path with user task with</description>
      <pubDate>Fri, 09 Sep 2011 19:21:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52258#M30667</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-09T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52259#M30668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why are you duplicating the whole paths? If I understand the diagram, you can simply duplicate the task (one with and one without timer), with a excl. gateway, and keep all the rest unduplicated?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:44:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52259#M30668</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-09-15T12:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52260#M30669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I cannot just duplicate the task only. If I do that then any subsequent tasks/nodes after that (such as Wait For Next Call) that leads back to the original task (Call Subscriber with timer or Call Subscriber Without Timer) would have two transitions (unless I put another exclusive gateway there). If I do start putting exclusive gateways all over (that needs to transition back to the original node) the diagram could become equally as complex (I am talking in general and not my diagram as that was just a simple&amp;nbsp; example, but one with many different tasks)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However if there was a way just to turn on/off (or use/not use) a timer on a node/task that would be much easier and elegant?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2011 17:01:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52260#M30669</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-16T17:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52261#M30670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can put a serviceTask with a "behavior" just before your two "Call subscriber with timer node"s and define two different transitions. The script task can handle the transition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;serviceTask id="javaService" &lt;BR /&gt;&amp;nbsp; name="Java service invocation" &lt;BR /&gt;&amp;nbsp; activiti:class="com.bigfirm.decisions.UseTimerCallSubscriber"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;The class could be look like this:&lt;/SPAN&gt;&lt;CODE&gt;&lt;BR /&gt;public class UseTimerCallSubscriber implements ActivityBehavior {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public void execute(ActivityExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; boolean useTimer = (Boolean) execution.getVariable("useTimer");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PvmTransition transition = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(useTimer){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transition = execution.getActivity().findOutgoingTransition("useTimerTransition");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transition = execution.getActivity().findOutgoingTransition("dontUseTimerTransition");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.take(transition);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 08:36:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52261#M30670</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-19T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52262#M30671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply&amp;nbsp; but I don't understand. That just seems to get rid of the Exclusive gateway. You would still have two nodes CallSubWithTimer and CallSubWithoutTimer. The issue here is not the Exclusive Gateway, but to minimize duplicate tasks/nodes and paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 15:37:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52262#M30671</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-19T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52263#M30672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for the reply&amp;nbsp; but I don't understand. That just seems to get rid of the Exclusive gateway. You would still have two nodes CallSubWithTimer and CallSubWithoutTimer. The issue here is not the Exclusive Gateway, but to minimize duplicate tasks/nodes and paths.&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Rue&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Hi Rue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, you would still have two nodes. But you dont have two different paths any more. You can just make a join gateway after the two nodes and all returning transitions direct to the service node before the callsub nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want, post your xml definition and I change it accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 07:35:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52263#M30672</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-20T07:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52264#M30673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I have uploaded my latest diagram after some changes. Now it is much simplified to avoid confusion. What I would like to have is one node with timer and someway to turn on/of that timer based on 'useCallSubTimer' variable. Your ServiceTask does pretty much the same thing as the Exclusive Gateway (So I would prefer to have an Exlc Gateway rather than a Service Task that does the samething)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52264#M30673</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-20T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52265#M30674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; he asked for the XML !!! not the image&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 15:28:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52265#M30674</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-09-20T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52266#M30675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rue,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;your process is now almost what I suggested. You are right, with gateways its more like modeling not programming. So now you do not have duplicated paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not think that it is possible to turn the timer on/off based on a variable without extending activity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A first thought (of a newbie) is to extend the class "TimerDeclarationImpl" and overwrite the method "prepareTimerEntity".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would change the lines:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimerEntity timer = new TimerEntity(this);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.setDuedate(duedate);&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;if(executionEntity.getParentVariableScope().getVariable("useCallSubTimer")){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.setDuedate(duedate);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timer.setDuedate(new Date()); // do not use timer value&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;But this approach would hard-code the variable name. Just a thought. Other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:00:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52266#M30675</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-21T08:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52267#M30676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have no ideas. For the Activiti team:&amp;nbsp; can this be extended/enhanced in the future so that timers can be turned on/off depending on a logical expression or variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 14:32:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52267#M30676</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-09-23T14:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timer based on variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52268#M30677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;why not model that in? The timer fires and first thing you do is check what to do.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 15:19:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-based-on-variables/m-p/52268#M30677</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-09-23T15:19:49Z</dc:date>
    </item>
  </channel>
</rss>

