<?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: Figure out if workflow is running async in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-workflow-is-running-async/m-p/157584#M111752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, there is no way to figure this out in the API. The only difference there is, is that an asynchronous activity is run from a jobexecutor thread as opposed to regular API-calls, which are run in the caller's thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution whould be to check if there is a JobExecutor context active for the current thread, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import org.activiti.engine.impl.context.Context;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;boolean isAsync = Context.getJobExecutorContext() != null;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 08:14:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-12-18T08:14:00Z</dc:date>
    <item>
      <title>Figure out if workflow is running async</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-workflow-is-running-async/m-p/157583#M111751</link>
      <description>We would like to be able to find out whether a workflow is currently working in asyc or synchronous mode. Is there any way to find this out through the API's? We have a business requirement around logging that has to take this into account.Thanks!</description>
      <pubDate>Tue, 17 Dec 2013 14:33:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-workflow-is-running-async/m-p/157583#M111751</guid>
      <dc:creator>drams</dc:creator>
      <dc:date>2013-12-17T14:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Figure out if workflow is running async</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-workflow-is-running-async/m-p/157584#M111752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Currently, there is no way to figure this out in the API. The only difference there is, is that an asynchronous activity is run from a jobexecutor thread as opposed to regular API-calls, which are run in the caller's thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution whould be to check if there is a JobExecutor context active for the current thread, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;import org.activiti.engine.impl.context.Context;&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;BR /&gt;boolean isAsync = Context.getJobExecutorContext() != null;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:14:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-workflow-is-running-async/m-p/157584#M111752</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T08:14:00Z</dc:date>
    </item>
  </channel>
</rss>

