<?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 How to recall an activity from the first activity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-recall-an-activity-from-the-first-activity/m-p/215818#M168948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am following these steps&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/223887"&gt;What's the best way to design a process which allows user to recall back to his task. &lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to jump to specific activities mentioned in the sample code.&lt;/P&gt;&lt;P&gt;Observation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start -&amp;gt; FirstTask -&amp;gt;SecondTask -&amp;gt;ThirdTask -&amp;gt;End&lt;/P&gt;&lt;P&gt;If i want to jump to first task, i am setting activity Id to executionentity. But it is going for second Task.&lt;/P&gt;&lt;P&gt;If i set the Id of the start event, and then do signal for runtimservice. This is not allowed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Start event is not associated with signal event&lt;/STRONG&gt;. Please correct me where i am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my code :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CommandExecutor commandExecutor = processEngineConfiguration.getCommandExecutor();&lt;BR /&gt; commandExecutor.execute(new DeleteTaskWithoutCheckCommand((TaskEntity) userTask));&lt;BR /&gt; commandExecutor.execute(new RestartInstanceActivitiCommand("60005", "&lt;STRONG&gt;start_event_0&lt;/STRONG&gt;")); //startevent id&lt;BR /&gt; &lt;STRONG&gt;runtimeService.signal("60005")&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;RestartInstanceActivitiCommand.class&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public class RestartInstanceActivitiCommand implements Command&amp;lt;Void&amp;gt; {&lt;BR /&gt; &lt;BR /&gt; private final String executionId;&lt;BR /&gt; private final String activityId;&lt;/P&gt;&lt;P&gt;public RestartInstanceActivitiCommand(String executionId, String activityId) {&lt;BR /&gt; this.executionId = executionId;&lt;BR /&gt; this.activityId = activityId;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;public Void execute(CommandContext commandContext) {&lt;BR /&gt; &lt;BR /&gt; ExecutionEntity execution = commandContext.getExecutionEntityManager().findExecutionById(this.executionId);&lt;BR /&gt; execution.setActivity(new ActivityImpl(this.activityId, execution.getProcessDefinition()));&lt;BR /&gt; &lt;BR /&gt; return null;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Dec 2016 15:39:37 GMT</pubDate>
    <dc:creator>chandanmb1</dc:creator>
    <dc:date>2016-12-26T15:39:37Z</dc:date>
    <item>
      <title>How to recall an activity from the first activity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-recall-an-activity-from-the-first-activity/m-p/215818#M168948</link>
      <description>Hello,I am following these stepsWhat's the best way to design a process which allows user to recall back to his task. &amp;nbsp;I am able to jump to specific activities mentioned in the sample code.Observation &lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tart -&amp;gt; FirstTask -&amp;gt;SecondTask -&amp;gt;ThirdTask -&amp;gt;EndIf i want to jump to first task, i am</description>
      <pubDate>Mon, 26 Dec 2016 15:39:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-recall-an-activity-from-the-first-activity/m-p/215818#M168948</guid>
      <dc:creator>chandanmb1</dc:creator>
      <dc:date>2016-12-26T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to recall an activity from the first activity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-recall-an-activity-from-the-first-activity/m-p/215819#M168949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;B&gt;chandanmb _&lt;/B&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a couple of approaches to achieve what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 id="toc-hId-1619705916"&gt;&lt;STRONG&gt;By Modelling &amp;nbsp;&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is a Rework scenario, in which a user task can be re-worked to provide more information. This is very common scenario in processes where you have review/approval pattern. Here's an example of the BPMN model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/12033_reworkmodelBPMN.PNG" style="width: 620px; height: 232px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So by design, the 'Review Asset' user task will be reworked because the check was not passed. For this approach, you wouldn't have to programmatically 'jump' back to tasks. It will be decided by the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 id="toc-hId--932451045"&gt;By Programming&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you should be careful with this approach as it sounds like it's breaking the normal flow of the process. Anyway, if you want to do it, you can use the signal boundary event . You can read more about it here&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnSignalEventDefinition" title="https://www.activiti.org/userguide/#bpmnSignalEventDefinition" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;. I'd suggest you to do design this ability as an administrative functionality rather than something that comes from the process. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really following the code that you shared. Would be good if you can elaborate more what you're doing there.&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>Wed, 11 Jan 2017 05:14:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-recall-an-activity-from-the-first-activity/m-p/215819#M168949</guid>
      <dc:creator>thuynh</dc:creator>
      <dc:date>2017-01-11T05:14:07Z</dc:date>
    </item>
  </channel>
</rss>

