<?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: Async taskdefinitions. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127132#M89429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;TaskDefinition is only the UserTask-specific bit. Inspect the actual ActivityImpl which is present in the ReadOnlyProcessDefinition (repositoryService):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public interface PvmActivity extends PvmScope {&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; boolean isAsync();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you could add a BPMNParseListener (in 5.12, this will be a slight different name and approach, but the end-result will be the same) and inspect the XML-element or the intermediate model, so you can throw an exception when the process is deployed (as of 5.11):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * @author Tijs Rademakers&lt;BR /&gt; */&lt;BR /&gt;public class Activity extends FlowNode {&lt;BR /&gt;&lt;BR /&gt; …&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public boolean isAsynchronous() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return asynchronous;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you're using a version prior to 5.11, you can always inspect the "async" attribute in the XML-element, passed in the BPMNParseListeners…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 08:16:53 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-02-01T08:16:53Z</dc:date>
    <item>
      <title>Async taskdefinitions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127131#M89428</link>
      <description>Is there a way to find out if a task is async, the usecase is if a process has async task then i should throw error to the user. I checked TaskDefinition class there is no api to check if a task is async…</description>
      <pubDate>Fri, 01 Feb 2013 06:51:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127131#M89428</guid>
      <dc:creator>susubhas</dc:creator>
      <dc:date>2013-02-01T06:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Async taskdefinitions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127132#M89429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;TaskDefinition is only the UserTask-specific bit. Inspect the actual ActivityImpl which is present in the ReadOnlyProcessDefinition (repositoryService):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public interface PvmActivity extends PvmScope {&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; boolean isAsync();&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, you could add a BPMNParseListener (in 5.12, this will be a slight different name and approach, but the end-result will be the same) and inspect the XML-element or the intermediate model, so you can throw an exception when the process is deployed (as of 5.11):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * @author Tijs Rademakers&lt;BR /&gt; */&lt;BR /&gt;public class Activity extends FlowNode {&lt;BR /&gt;&lt;BR /&gt; …&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public boolean isAsynchronous() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return asynchronous;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you're using a version prior to 5.11, you can always inspect the "async" attribute in the XML-element, passed in the BPMNParseListeners…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 08:16:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127132#M89429</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-01T08:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Async taskdefinitions.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127133#M89430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you frederikheremans &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:09:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-taskdefinitions/m-p/127133#M89430</guid>
      <dc:creator>susubhas</dc:creator>
      <dc:date>2013-02-01T09:09:22Z</dc:date>
    </item>
  </channel>
</rss>

