<?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: No task associated. Call businessProcess.startTask() in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41600#M17455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the id of the current &amp;nbsp;task is null&amp;nbsp;&lt;/P&gt;&lt;P&gt;but on the Url &amp;nbsp;&lt;A class="link-titled" href="http://localhost:8080/reservation-web/demande1.jsf?taskId=25013" title="http://localhost:8080/reservation-web/demande1.jsf?taskId=25013" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/reservation-web/demande1.jsf?&lt;STRONG&gt;taskId=25013&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when i complet the task &amp;nbsp;the error apears&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #727174; font-weight: normal;"&gt;No task associated. Call businessProcess.startTask() first.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;there is in the link the id of the task&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;help if yoiu can pleas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2017 08:33:47 GMT</pubDate>
    <dc:creator>idireneyoucef</dc:creator>
    <dc:date>2017-06-01T08:33:47Z</dc:date>
    <item>
      <title>No task associated. Call businessProcess.startTask()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41596#M17451</link>
      <description>i use activiti with jsf, when i start my process it's work but just for the first task&amp;nbsp; so when i accomplishe my request and click button with this following code&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;h:commandButton value="Submit" action="#{businessProcess.completeTask(true)}"&amp;nbsp; /&amp;gt; i have this erreurAvertissement: StandardWra</description>
      <pubDate>Sun, 09 Apr 2017 09:56:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41596#M17451</guid>
      <dc:creator>idireneyoucef</dc:creator>
      <dc:date>2017-04-09T09:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: No task associated. Call businessProcess.startTask()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41597#M17452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will be hard to offer any advice on this without a test case.&lt;/P&gt;&lt;P&gt;But, the message you are getting is typically thrown if you have not actually "started" the task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;A typical usage scenario might look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;1st unit of work ("process instantiation"):&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;conversation.begin();&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;businessProcess.setVariable("billingId", "1"); // setting variables before starting the process&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;businessProcess.startProcessByKey("billingProcess");&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;conversation.end();&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;2nd unit of work ("perform a user task"):&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;conversation.begin();&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;businessProcess.startTask(id); // now we have associated a task with the current conversation&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;// this allows us to retrieve and change process variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;// and @BusinessProcessScoped beans&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;businessProcess.setVariable("billingDetails", "someValue"); // these changes are cached in the conversation&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;businessProcess.completeTask(); // now all changed process variables are flushed&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;conversation.end();&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Notice, startTask() is called before completing the task.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 20:16:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41597#M17452</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-10T20:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: No task associated. Call businessProcess.startTask()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41598#M17453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi and thanx,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;problém not résolved&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i start my process &amp;nbsp;from my controller like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ProcessInstance inst = runtimeService.startProcessInstanceByKey("myProcess");&lt;/P&gt;&lt;P&gt;my jsf page look like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;f:view&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;f:metadata&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;f:viewParam name="taskId" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!-- start working on the usertask and starting a conversation --&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;f:event type="preRenderView" listener="&lt;STRONG&gt;#{businessProcess.startTask(taskId, true)}&lt;/STRONG&gt;" /&amp;gt;&lt;BR /&gt; &amp;lt;/f:metadata&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h1&amp;gt;#{task.name}&amp;lt;/h1&amp;gt;&lt;BR /&gt; &amp;lt;p&amp;gt;&amp;lt;em&amp;gt;#{task.description}hhhhhhhhhhh&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;BR /&gt; &amp;lt;p&amp;gt;&amp;lt;em&amp;gt;#{taskId}&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;lt;h:form&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt; td&amp;gt;client&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;h:inputText value="#{processVariables['client']}" disabled="true"/&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;date courante&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt; &amp;lt;h:inputText value="#{processVariables['datecourante']}" disabled="true"/&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/tr&amp;gt;&lt;BR /&gt; &amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;login user&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt; &amp;lt;h:inputText value="#{processVariables['login']}" disabled="true"/&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;BR /&gt; &amp;lt;td&amp;gt;&lt;BR /&gt; &amp;lt;h:commandButton value="Submit" action="&lt;STRONG&gt;#{businessProcess.completeTask(true)}&lt;/STRONG&gt;" /&amp;gt;&lt;BR /&gt; &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt; &amp;lt;/h:form&amp;gt;&lt;BR /&gt; &amp;lt;/f:view&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" height="471" src="https://connect.hyland.com/legacyfs/online/alfresco/13278_2.PNG" width="637" /&gt;&lt;IMG alt=" initialize my process" class="image-1 jive-image" height="389" src="https://connect.hyland.com/legacyfs/online/alfresco/13277_1.PNG" width="635" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 12:53:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41598#M17453</guid>
      <dc:creator>idireneyoucef</dc:creator>
      <dc:date>2017-04-11T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: No task associated. Call businessProcess.startTask()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41599#M17454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would attach a breakpoint to the startTask() method and make sure it is actually being called with the correct taskId from your preRender listener.&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>Tue, 11 Apr 2017 13:27:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41599#M17454</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-04-11T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: No task associated. Call businessProcess.startTask()</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41600#M17455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the id of the current &amp;nbsp;task is null&amp;nbsp;&lt;/P&gt;&lt;P&gt;but on the Url &amp;nbsp;&lt;A class="link-titled" href="http://localhost:8080/reservation-web/demande1.jsf?taskId=25013" title="http://localhost:8080/reservation-web/demande1.jsf?taskId=25013" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/reservation-web/demande1.jsf?&lt;STRONG&gt;taskId=25013&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when i complet the task &amp;nbsp;the error apears&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #727174; font-weight: normal;"&gt;No task associated. Call businessProcess.startTask() first.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;there is in the link the id of the task&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;help if yoiu can pleas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2017 08:33:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/no-task-associated-call-businessprocess-starttask/m-p/41600#M17455</guid>
      <dc:creator>idireneyoucef</dc:creator>
      <dc:date>2017-06-01T08:33:47Z</dc:date>
    </item>
  </channel>
</rss>

