<?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: Job Acquisition filter in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137443#M96342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Saeid,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We want to implement functionality to do job prioritization for the 5.13 release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the coming days we'll update the Github wiki with more details about the ideas for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it may be good to hold back any coding on this for the coming weeks and let's first discuss the implementation of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The wiki should be a good start for that.&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, 18 Feb 2013 11:04:18 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-02-18T11:04:18Z</dc:date>
    <item>
      <title>Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137437#M96336</link>
      <description>We have a need here. In a cluster deployment model, it might be the case, that some nodes do not have the resource to do an async job, temporarily or permanently. The desired behavior would be to able to configure which nodes pick which jobs.It might be also in some other case. Just imagine we have</description>
      <pubDate>Mon, 18 Feb 2013 08:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137437#M96336</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2013-02-18T08:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137438#M96337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We need to make sure this feature is as generic as possible and not break existing installs, which don't need the filtering at all. Adding an additional parameter (to both job-table and process-definition-xml) seems a bit too drastic. I like the idea more of an approach where the process-definition is used as a filter-parameter (or perhaps the job-type, eg. timers). This allows us to use the existing query-infrastructure to fetch jobs to execute and include those parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what other community-members think about this but imho it's a valid addition to activiti…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 08:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137438#M96337</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-18T08:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137439#M96338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You also could use the current job mechanism by creating your own JobHandlers, inject them into the process engine config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These handlers have a database stored 'jobHandlerConfiguration' which you can use for whatever use you see fit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 09:07:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137439#M96338</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-18T09:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137440#M96339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Joram, the problem with the jobHandler approach is that this is already too late. The job handler is called after the job has been acquired -&amp;gt; possibly on the wrong machine/cluster-node. To get a job back on the queue and hope for the correct machine to acquire it, is a lucky guess &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 09:12:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137440#M96339</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-18T09:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137441#M96340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good point, Fred. Didn't think it through enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just not a fan of meaningless parameters. In this case, I'd rather inject a custom JobExecutor than configuring it using a meaningless parameter.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 09:19:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137441#M96340</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-18T09:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137442#M96341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Adding meaningless parameters is indeed something we don't want, using the existing ones (handlerConfig, procDef, ..) never hurts. It can be implemented as a JobExecutor subclass that CAN (but not neccesairy must) be included in activiti. Since the executor is pluggable, this can be perfectly done outside of the activiti-code code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 09:35:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137442#M96341</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-18T09:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137443#M96342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Saeid,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We want to implement functionality to do job prioritization for the 5.13 release.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the coming days we'll update the Github wiki with more details about the ideas for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So it may be good to hold back any coding on this for the coming weeks and let's first discuss the implementation of this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The wiki should be a good start for that.&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, 18 Feb 2013 11:04:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137443#M96342</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-02-18T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137444#M96343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So my proposal would be changed to filtering but without general purpose parameter. It could be a custom implementation just with currently available fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tijs, do you thing Job acquisition filtering will also be considered in job prioritization you just mentioned ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 16:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137444#M96343</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2013-02-18T16:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137445#M96344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem we see with the job filtering is that you define one job executor to take on a specific job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When that job executor dies, the job will not be processed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can always define a job filter in a custom implementation of a job executor.&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>Tue, 19 Feb 2013 09:40:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137445#M96344</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-02-19T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137446#M96345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi tijs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem you mentioned is possible to occur, but it should not always be the case. You can define one main job picker which picks all the jobs&amp;nbsp; and another one which only services high priority jobs. The configurator should care, what he does. With great power comes great responsibility, Do you remember Spiderman ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or we can add another optional configuration parameter to job executor configuration, to allow job picker to pick a normal job, when it cannot find any job which matches the filter. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The good thing is that it could be configured so that, if you do not use it, it would be the same behavior as now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:24:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137446#M96345</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2013-02-19T14:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137447#M96346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Saeid,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the use case you are describing is perfectly fine, and it can be implemented with a custom job executor and the job priority configuration we are planning for 5.13.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But as far as I can see it now, there's no need to do additional things in the Activiti Engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So let's discuss this in relationship to the job priority configuration for 5.13. The first start of that is this &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/wiki/Activiti-configuration-%285.13%29" rel="nofollow noopener noreferrer"&gt;wiki page&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 11:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137447#M96346</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-02-20T11:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137448#M96347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We've got a similiar problem in our development environment. There is a central database with the activiti schema. The application using the activiti engine runs on local websphere servers on each developers machine. For activiti and it's job aquisition it's like a distributed environment (it was even called cluster environment in a former post of this thread). Different developers work on the same process but implement different tasks. When they test the process in this kind of configuration the tasks are not necessarily executed on the developers machine who launched the process. Thats because how the standard Job Aquisition works. My question is: Could there be a special job aquisition filter which only selects the jobs which belong to the machine from where the process was instantiated? At the moment I can't see any proper selection criteria in the ACT_RU_* tables (i.e. in the ACT_RU_EXECUTION table). Maybe it would make sense to add a information like the node or machine name which instanciated the process to the datamodel and the Activiti Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Joern&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 14:40:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137448#M96347</guid>
      <dc:creator>jwohl</dc:creator>
      <dc:date>2013-03-22T14:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137449#M96348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a feature that is not really generic enough to add to the engine, imho. Also, risks getting jobs stuck because the machine is down. Maybe the future improvements to the jobExecutor could make it easier to plug this kind of approach in without having to rip out the whole jobExecutor as it is now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:40:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137449#M96348</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-03-22T15:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137450#M96349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did the job priority configuration changes make it into&amp;nbsp; the 5.13 release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 11:15:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137450#M96349</guid>
      <dc:creator>nbromage</dc:creator>
      <dc:date>2013-09-18T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Job Acquisition filter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137451#M96350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No job-priority handling has been added to the engine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 12:56:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/job-acquisition-filter/m-p/137451#M96350</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-09-20T12:56:04Z</dc:date>
    </item>
  </channel>
</rss>

