<?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 to get taskentity id from service task? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74555#M48859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a service task which executes a remote command (SSH).&amp;nbsp; I want to pass the id to the remote program as a co-relation id.&amp;nbsp; The remote program generates some messages and I want to co-relate those messages with the task id.&amp;nbsp; Is there any way to get the task entity id into the service task.&amp;nbsp; I can get activity id but it's not a unique as task entity id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2011 16:39:22 GMT</pubDate>
    <dc:creator>kesavkolla</dc:creator>
    <dc:date>2011-05-25T16:39:22Z</dc:date>
    <item>
      <title>How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74553#M48857</link>
      <description>I've a service task class which implements JavaDelegate.&amp;nbsp; Inside the execute method I want to get the current running task entity id.&amp;nbsp; Is there any API to retrieve the current running task entity id?</description>
      <pubDate>Fri, 20 May 2011 23:07:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74553#M48857</guid>
      <dc:creator>kesavkolla</dc:creator>
      <dc:date>2011-05-20T23:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74554#M48858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess you need the id of the activity which you are currently in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do you need? What's the use case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 07:46:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74554#M48858</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-05-24T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74555#M48859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a service task which executes a remote command (SSH).&amp;nbsp; I want to pass the id to the remote program as a co-relation id.&amp;nbsp; The remote program generates some messages and I want to co-relate those messages with the task id.&amp;nbsp; Is there any way to get the task entity id into the service task.&amp;nbsp; I can get activity id but it's not a unique as task entity id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 16:39:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74555#M48859</guid>
      <dc:creator>kesavkolla</dc:creator>
      <dc:date>2011-05-25T16:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74556#M48860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Then you should use the execution id, which you can easily get from the DelegateExecution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Correlate using that id, and you can signal your process back using the singal method on the runtimeService.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 10:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74556#M48860</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-05-26T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74557#M48861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a parallel gateway in my flow.&amp;nbsp; The execution id is same for both branches in the flow.&amp;nbsp; That is the reason I want to get the actual runtime id of the task.&amp;nbsp; Is it not possible to get the id of the current running task?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 06:51:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74557#M48861</guid>
      <dc:creator>kesavkolla</dc:creator>
      <dc:date>2011-05-31T06:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74558#M48862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;are you sure they are the same? Afaik, each leg of a parallel gateway should have its own id. And watch out, do not use the root execution, since that is indeed the same for both.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 07:07:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74558#M48862</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-05-31T07:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74559#M48863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The service task gets DelegateExecution as reference.&amp;nbsp; If I call getId on it I'm getting same id in both the parallel gateway flows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have same service task class that is plugged into the parallel gateway with different parameters.&amp;nbsp; In the runtime if when I call getId on the delegate execution object I'm getting same id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 01:24:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74559#M48863</guid>
      <dc:creator>kesavkolla</dc:creator>
      <dc:date>2011-06-01T01:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74560#M48864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide a simple unit-test with a parallel process which highlight the behavior of the same ID's in parallel paths?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 07:56:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74560#M48864</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-06T07:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74561#M48865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to do a similar thing. I have an application from which a service task in a process must communicate to. I would like the service task or any task for that matter, to be able to communicate to my rest application it's task id. Once my application has the task id, I will make a rest call to the Activiti-rest. But I need the id of the task. How can I get the id of a service task? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2012 21:50:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74561#M48865</guid>
      <dc:creator>vnama</dc:creator>
      <dc:date>2012-02-01T21:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74562#M48866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why would you want to do that? Isn't an execution id enough, as the correlation between your exchanged messages&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 11:22:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74562#M48866</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-02-02T11:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74563#M48867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well when you make a rest call isn't the request: GET /task/{taskId}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and not the execution id?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I can do what I want with the execution id, how can I get the execution id?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 14:02:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74563#M48867</guid>
      <dc:creator>vnama</dc:creator>
      <dc:date>2012-02-02T14:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74564#M48868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone help me with this? I think I should give some more information about what I'm doing. I have a process definition which includes a receive task. When I instantiate this definition I have code that tries to query the current excution id, but it returns null. If I try to query after the receive task has paused the process, then it returns the active running instances of my process, but I need to get the execution id, before the process pauses at the receive task. Which classes should I be looking at for this problem? Any advice at all on what I should try? Thank you so much.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 15:42:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74564#M48868</guid>
      <dc:creator>vnama</dc:creator>
      <dc:date>2012-02-27T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74565#M48869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know in general how to get the taskID? There are many methods that require the taskID as parameter, like createAttachment() - at least from version 5.11 there is an issue with it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usage of TaskQuery where the call starts inside a task itself, seems to me a little bit cumbersome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, also see &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=5718" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=5718&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74565#M48869</guid>
      <dc:creator>davidk1</dc:creator>
      <dc:date>2012-12-07T09:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to get taskentity id from service task?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74566#M48870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you will need to use a sort of query: see &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#N12AC2" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#N12AC2&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 09:03:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-taskentity-id-from-service-task/m-p/74566#M48870</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-10T09:03:08Z</dc:date>
    </item>
  </channel>
</rss>

