<?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: endTask problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254736#M207866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks like code from your process-definition file of workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you say&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; task.endTask("Otpremanje");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must have the transition named &lt;/SPAN&gt;&lt;STRONG&gt;Otpremanje&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; available from the current node where you are inserting this piece of code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 09:21:31 GMT</pubDate>
    <dc:creator>mitpatoliya</dc:creator>
    <dc:date>2012-01-25T09:21:31Z</dc:date>
    <item>
      <title>endTask problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254735#M207865</link>
      <description>Hello,I have a problem with endTask metod.I want to create automatic task, but alway get error :this token is locked by token[].I am not sure where is my mistake. &amp;lt;event type="task-create"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;runas&amp;gt;admin&amp;amp;l</description>
      <pubDate>Tue, 24 Jan 2012 16:04:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254735#M207865</guid>
      <dc:creator>aleksandar1982</dc:creator>
      <dc:date>2012-01-24T16:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: endTask problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254736#M207866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This looks like code from your process-definition file of workflow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When you say&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; task.endTask("Otpremanje");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must have the transition named &lt;/SPAN&gt;&lt;STRONG&gt;Otpremanje&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; available from the current node where you are inserting this piece of code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 09:21:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254736#M207866</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-01-25T09:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: endTask problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254737#M207867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have that transition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All process working fine without endTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Finnaly i found alternative solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I add event type="node-leave" with same code as in task-create from abbove and in task-create replace code with executionConte.leaveNode();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it's working fine;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx for time &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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 12:49:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254737#M207867</guid>
      <dc:creator>aleksandar1982</dc:creator>
      <dc:date>2012-01-25T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: endTask problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254738#M207868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;could you please share that piece of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, others can refer as final exact solution to this problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 12:37:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/endtask-problem/m-p/254738#M207868</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2012-02-09T12:37:08Z</dc:date>
    </item>
  </channel>
</rss>

