<?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: Executing task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/executing-task/m-p/6728#M3279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean make a choice between several different tasks by using a property? If so then you could do that using a gateway. See for example&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#comment-828267" title="https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#comment-828267" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#co…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead you want to switch the class/bean that implements a task then there are different options. If you are using the spring boot starter then&amp;nbsp;the tasks can be matched to their implementations using spring expression language. So you might be able to build a property check into a spring expression. Another way would be to put a service task infront of the task that you want to switch the implementation of and use the DynamicBpmnService to switch the implementation. Or you could do that at startup, perhaps in a PostConstruct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean about finish after execution. That just sounds like you need an end event. Perhaps you have something like&amp;nbsp;a&amp;nbsp;dynamic&amp;nbsp;subtask in mind. I don't want overcomplicate but you could look at the scenarios on&amp;nbsp;&lt;A __default_attr="235793" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/235793-dynamically-adaptation" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your scenario sounds like it is probably simpler but I'm not entirely sure. It might help if you could post what bpmn/ideas you do have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2018 14:46:28 GMT</pubDate>
    <dc:creator>ryandawson</dc:creator>
    <dc:date>2018-02-20T14:46:28Z</dc:date>
    <item>
      <title>Executing task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/executing-task/m-p/6727#M3278</link>
      <description>Hello,Is there any possibility to execute a task (chosen by property)? Additionally I would like to make this task to finish after&amp;nbsp;execution - not to proceed further.</description>
      <pubDate>Tue, 20 Feb 2018 13:51:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/executing-task/m-p/6727#M3278</guid>
      <dc:creator>reaker</dc:creator>
      <dc:date>2018-02-20T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Executing task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/executing-task/m-p/6728#M3279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean make a choice between several different tasks by using a property? If so then you could do that using a gateway. See for example&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#comment-828267" title="https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#comment-828267" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/thread/235681-activiti-is-ineffective-in-china-and-hopes-to-attract-official-attention#co…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead you want to switch the class/bean that implements a task then there are different options. If you are using the spring boot starter then&amp;nbsp;the tasks can be matched to their implementations using spring expression language. So you might be able to build a property check into a spring expression. Another way would be to put a service task infront of the task that you want to switch the implementation of and use the DynamicBpmnService to switch the implementation. Or you could do that at startup, perhaps in a PostConstruct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean about finish after execution. That just sounds like you need an end event. Perhaps you have something like&amp;nbsp;a&amp;nbsp;dynamic&amp;nbsp;subtask in mind. I don't want overcomplicate but you could look at the scenarios on&amp;nbsp;&lt;A __default_attr="235793" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/235793-dynamically-adaptation" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your scenario sounds like it is probably simpler but I'm not entirely sure. It might help if you could post what bpmn/ideas you do have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:46:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/executing-task/m-p/6728#M3279</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-20T14:46:28Z</dc:date>
    </item>
  </channel>
</rss>

