<?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: Complete task with variables in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8533#M3885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Magnus Hellström&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I also would like to know if the api is functionally correct or not.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;The API should work as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;POST request to:&amp;nbsp;&lt;A href="http://kermit:kermit@localhost:8080/activiti-rest/service/runtime/tasks/1183" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/&lt;/A&gt;{taskid}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;With a request body such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "action":"complete",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "variables": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name":"variablename",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value":"variablevalue"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #727174;"&gt;Also remember to design your process variables and task variables correctly. This docs (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#apiVariables" title="https://www.activiti.org/userguide/#apiVariables" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;)&amp;nbsp;should be helpful to understand process variables versus task/execution or local variables. &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #727174;"&gt;"Too late" you say, meaning that variables&amp;nbsp;are not available&amp;nbsp;for historical tasks or what?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #727174;"&gt;It means that when you complete the task, the local variables are gone. There's no point saving them anymore. From the docs&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#apiVariables" title="https://www.activiti.org/userguide/#apiVariables" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Variables can also be fetched again, as shown below. Note that similar methods exist on the &lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;TaskService&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;. This means that tasks, like executions, can have local variables that are &lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;alive&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt; just for the duration of the task.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: small;"&gt;So, I first create a local variable on the task with same name and&amp;nbsp;then pass along a variable&amp;nbsp;with that&amp;nbsp;name with the complete request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: small;"&gt;Anyhow, the variable in the complete request is stored in global scope for some reason.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It's unclear to us what you are trying to do here so a unit test should demonstrate better your problem and therefore people can provide better answers. That's why in this forum, we recommend people to write clear questions with unit tests for demonstration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said something about 'historical reasons', is Activiti's history service (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#history" title="https://www.activiti.org/userguide/#history" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;) not satisfying your requirements? Again, it's always a good idea to explain your use case before jumping to the technical part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 16:47:29 GMT</pubDate>
    <dc:creator>thuynh</dc:creator>
    <dc:date>2017-02-21T16:47:29Z</dc:date>
    <item>
      <title>Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8529#M3881</link>
      <description>Hi,&amp;nbsp;I'am using the Rest API in the Community edition and would like to achieve the following:Complete a task and pass along variables which should be stored in local scope (task scope).I use the runtime/tasks/{taskId}with action=complete.The doc says that a&amp;nbsp;variable passed with the request is&amp;nbsp;stored</description>
      <pubDate>Thu, 16 Feb 2017 09:16:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8529#M3881</guid>
      <dc:creator>magnus_nils_hel</dc:creator>
      <dc:date>2017-02-16T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8530#M3882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before we answer the question, why are you trying to save a variable to "local" scope on task "complete".&lt;/P&gt;&lt;P&gt;Local scope means the variable exists only until the current task is completed. Hence adding a variable on the complete event is likely too late to be included in local scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it you are actually trying to achieve?&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2017 23:04:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8530#M3882</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-17T23:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8531#M3883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For historical reasons. Want to attach a piece of information to be available&amp;nbsp;for a task in historical perspective. Valid use case I think or is it a better way&amp;nbsp;better doing&amp;nbsp;this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Too late" you say, meaning that variables&amp;nbsp;are not available&amp;nbsp;for historical tasks or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also would like to know if the api is functionally correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 06:51:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8531#M3883</guid>
      <dc:creator>magnus_nils_hel</dc:creator>
      <dc:date>2017-02-18T06:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8532#M3884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to make sure I can properly answer your, is it working correctly question. Please provide a unit test demonstrating what you are seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2017 15:12:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8532#M3884</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-02-19T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8533#M3885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;Magnus Hellström&lt;/B&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I also would like to know if the api is functionally correct or not.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;The API should work as expected.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;POST request to:&amp;nbsp;&lt;A href="http://kermit:kermit@localhost:8080/activiti-rest/service/runtime/tasks/1183" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://localhost:8080/activiti-rest/service/runtime/tasks/&lt;/A&gt;{taskid}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;With a request body such as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "action":"complete",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "variables": [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name":"variablename",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "value":"variablevalue"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #727174;"&gt;Also remember to design your process variables and task variables correctly. This docs (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#apiVariables" title="https://www.activiti.org/userguide/#apiVariables" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;)&amp;nbsp;should be helpful to understand process variables versus task/execution or local variables. &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; color: #727174;"&gt;"Too late" you say, meaning that variables&amp;nbsp;are not available&amp;nbsp;for historical tasks or what?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #727174;"&gt;It means that when you complete the task, the local variables are gone. There's no point saving them anymore. From the docs&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#apiVariables" title="https://www.activiti.org/userguide/#apiVariables" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;Variables can also be fetched again, as shown below. Note that similar methods exist on the &lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;TaskService&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;. This means that tasks, like executions, can have local variables that are &lt;/SPAN&gt;&lt;EM style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;alive&lt;/EM&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt; just for the duration of the task.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: small;"&gt;So, I first create a local variable on the task with same name and&amp;nbsp;then pass along a variable&amp;nbsp;with that&amp;nbsp;name with the complete request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: small;"&gt;Anyhow, the variable in the complete request is stored in global scope for some reason.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It's unclear to us what you are trying to do here so a unit test should demonstrate better your problem and therefore people can provide better answers. That's why in this forum, we recommend people to write clear questions with unit tests for demonstration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said something about 'historical reasons', is Activiti's history service (&lt;A class="link-titled" href="https://www.activiti.org/userguide/#history" title="https://www.activiti.org/userguide/#history" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp;) not satisfying your requirements? Again, it's always a good idea to explain your use case before jumping to the technical part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thong Huynh&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:47:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8533#M3885</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-02-21T16:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Complete task with variables</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8534#M3886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the TaskService there is a method&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #353833; background-color: #ffffff; font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#complete-java.lang.String-java.util.Map-" style="color: #4a6782; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;complete&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #ffffff; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;&amp;nbsp;taskId, &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" style="color: #4a6782; background-color: #ffffff; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.util" rel="nofollow noopener noreferrer"&gt;Map&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #ffffff; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" style="color: #4a6782; background-color: #ffffff; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;Object&lt;/A&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;&amp;gt;&amp;nbsp;variables)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #353833; background-color: #ffffff;"&gt;and a overloaded version&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="" style="background-color: #eeeeef; font-weight: bold;"&gt;&lt;A href="https://www.activiti.org/javadocs/org/activiti/engine/TaskService.html#complete-java.lang.String-java.util.Map-boolean-" style="color: #bb7a2a; font-weight: bold; padding-bottom: 3px;" rel="nofollow noopener noreferrer"&gt;complete&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #eeeeef;"&gt;(&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="background-color: #eeeeef;"&gt;&amp;nbsp;taskId, &lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.util" rel="nofollow noopener noreferrer"&gt;Map&lt;/A&gt;&lt;SPAN style="background-color: #eeeeef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;String&lt;/A&gt;&lt;SPAN style="background-color: #eeeeef;"&gt;,&lt;/SPAN&gt;&lt;A href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" style="color: #4a6782; background-color: #eeeeef; font-weight: bold; padding-bottom: 3px;" title="class or interface in java.lang" rel="nofollow noopener noreferrer"&gt;Object&lt;/A&gt;&lt;SPAN style="background-color: #eeeeef;"&gt;&amp;gt;&amp;nbsp;variables, boolean&amp;nbsp;localScope)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;The overloaded version fits my requirements.&amp;nbsp;The java doc of the method describes the purpose of the method well. When checking the source code of the Rest implementation, I can see that the&amp;nbsp;complete method with no localScope parameter is called.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks anyway.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:13:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/complete-task-with-variables/m-p/8534#M3886</guid>
      <dc:creator>magnus_nils_hel</dc:creator>
      <dc:date>2017-02-21T19:13:20Z</dc:date>
    </item>
  </channel>
</rss>

