<?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 Getting notification when the task is finished in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507622#M21356</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/60840-crane-control.fsm" target="_blank"&gt;crane_control.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hi guys,&lt;/P&gt;
 &lt;P&gt;I'm having a bit of trouble getting the state of a task in the task sequence when it is finished by the task executor. I have attached the model in this question for clarification.&lt;/P&gt;
 &lt;P&gt;What I would like to do is that, when the Crane1 starts picking up the box from queue1, the code returns the state of the task as 1 (unfinished) and when the crane has picked all 3 boxes, it will return the state as finished. I can only get the state when it starts picking up the box, can't seem to extract the state of the task when the crane has done the task.&lt;/P&gt;
 &lt;P&gt;Could anyone help me with this? Many thanks in advance.&lt;/P&gt;
 &lt;P&gt;Regards,&lt;/P&gt;
 &lt;P&gt;Hoang&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 15 Nov 2022 04:07:22 GMT</pubDate>
    <dc:creator>hoang_nk</dc:creator>
    <dc:date>2022-11-15T04:07:22Z</dc:date>
    <item>
      <title>Getting notification when the task is finished</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507622#M21356</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/60840-crane-control.fsm" target="_blank"&gt;crane_control.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hi guys,&lt;/P&gt;
 &lt;P&gt;I'm having a bit of trouble getting the state of a task in the task sequence when it is finished by the task executor. I have attached the model in this question for clarification.&lt;/P&gt;
 &lt;P&gt;What I would like to do is that, when the Crane1 starts picking up the box from queue1, the code returns the state of the task as 1 (unfinished) and when the crane has picked all 3 boxes, it will return the state as finished. I can only get the state when it starts picking up the box, can't seem to extract the state of the task when the crane has done the task.&lt;/P&gt;
 &lt;P&gt;Could anyone help me with this? Many thanks in advance.&lt;/P&gt;
 &lt;P&gt;Regards,&lt;/P&gt;
 &lt;P&gt;Hoang&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Nov 2022 04:07:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507622#M21356</guid>
      <dc:creator>hoang_nk</dc:creator>
      <dc:date>2022-11-15T04:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting notification when the task is finished</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507623#M21357</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I suggest to add an extra task after the final load task. This could either be a NODEFUNCTION, executing a node that contains the code to print the state directly. Or a MESSAGE, for example to the crane itself, which then activates the On Message trigger which writes the state.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1668497937873.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513916iD53A2A453474D412/image-size/large?v=v2&amp;amp;px=999" role="button" title="1668497937873.png" alt="1668497937873.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1668498009524.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513917i45B6DA94EE4643A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="1668498009524.png" alt="1668498009524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1668497991779.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1513918i0DD0D1E989B3ED0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1668497991779.png" alt="1668497991779.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example the state number is given as the first message parameter.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/60855-crane-control-1.fsm" target="_blank"&gt;crane-control_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Nov 2022 07:40:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507623#M21357</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-11-15T07:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting notification when the task is finished</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507624#M21358</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/36546/hoangnk.html" nodeid="36546"&gt;@Hoang Nk&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Nov 2022 19:19:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/getting-notification-when-the-task-is-finished/m-p/13507624#M21358</guid>
      <dc:creator>andrew_o2</dc:creator>
      <dc:date>2022-11-18T19:19:30Z</dc:date>
    </item>
  </channel>
</rss>

