<?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: How can I run a scheduled process on simple java application? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167175#M120717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can have one 'master' process with a start event timer that does these checks regulary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When conditions are met, it starts new process instances. If not, it just completes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 20:30:18 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-04-01T20:30:18Z</dc:date>
    <item>
      <title>How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167172#M120714</link>
      <description>Hi,I have a scenario that need to start a processing instance for every user that registered 5 days ago. Because is more like a scheduled job(but the processing for each user is workflow), so i want to implement it with simple java app + cron(Run every day for users that registered 5 days ago).But t</description>
      <pubDate>Mon, 31 Mar 2014 08:06:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167172#M120714</guid>
      <dc:creator>wuaner</dc:creator>
      <dc:date>2014-03-31T08:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167173#M120715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That depends on the state of the running process instances. Is the current state for example a receive or user task? You can use the Activiti Java API to lookup a process instance and trigger it based on the current state task type. So no, you don't need a web container.&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, 31 Mar 2014 14:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167173#M120715</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-03-31T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167174#M120716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs, thank you so much for your prompt response!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am thinking of use timing catching event and service task for subsequent execution. Because there is no human activity involved in the processing(user task), and no message interaction(receive task). I am working on a social network site, here is the brief scenario of my business logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For every user NEW_USER that registered 5 days ago:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a fake user FAKE_USER_A, sending friend invitation to NEW_USER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—-3 days later, check the invitation was accepted or not;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;——–If yes, use FAKE_USER_A send a message to NEW_USER; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;————2 days later, check the message was responded or not;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————-if yes, use FAKE_USER_A send response-message to NEW_USER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————-if not, end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;——–if not, use fake user FAKE_USER_B sending a message to NEW_USER; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;————2 days later, check the message was responded or not;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————-if yes, use FAKE_USER_B send response-message to NEW_USER;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;—————-if not, end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can not figure out how can I run these scheduled process instances on a cron-triggered simple java application? and this is also a batch processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any response would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 12:53:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167174#M120716</guid>
      <dc:creator>wuaner</dc:creator>
      <dc:date>2014-04-01T12:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167175#M120717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can have one 'master' process with a start event timer that does these checks regulary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When conditions are met, it starts new process instances. If not, it just completes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 20:30:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167175#M120717</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-04-01T20:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167176#M120718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your response, and sorry for my late reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have one more concern. Because i need start tens of thousands of process instances simultaneously, is workflow engine like Activiti suitable for this? Is there any chances we got pressures on JVM, memory or disk?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2014 03:28:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167176#M120718</guid>
      <dc:creator>wuaner</dc:creator>
      <dc:date>2014-04-21T03:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167177#M120719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you mean you want to start 10000+ processes from within the other process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If so, this *can* be problematic because the processes will be started in the same transaction as the API-call (or timer-fire) that kicks off that logic. Depends on transaction-size of your DB and can use alot of memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If not (so you're just starting processes using the API in some kind of loop/pool) this is no issue. Engine execution itself has very little overhead in CPU-time. Most time is spent in DB-logic (also optimized to prevent unneeded insert/update/deletes) and user-code offcourse (e.g.. you calling a service). If you disable (or lower the level) of the history, you can limit the DB-writes to a bare minimum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2014 08:49:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167177#M120719</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-04-22T08:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a scheduled process on simple java application?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167178#M120720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi frederikheremans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not. I just want to staring 10k+(approximately up to 100k) process instances in loops, as you mentioned in #2. So there is no issue here, thank you so much for clearing things up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 06:50:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-run-a-scheduled-process-on-simple-java-application/m-p/167178#M120720</guid>
      <dc:creator>wuaner</dc:creator>
      <dc:date>2014-04-25T06:50:10Z</dc:date>
    </item>
  </channel>
</rss>

