<?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 Using Release Token from Pull from List activity. in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586557#M83421</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am looking for a way to release a token from a Pull from List activity early based on another activity triggering or TE position.&lt;/P&gt;
 &lt;P&gt;I had thought to use "Release Token" with it pointed to "Tokens in Pull from List", but that didn't work.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="screenshot-2024-05-01-103406.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523761i8907A471D6B252B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot-2024-05-01-103406.png" alt="screenshot-2024-05-01-103406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Is this this a valid approach? Are one of the "Use Max ... Timer" options in the Pull from List a better method, even though its not necessarily time based?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/82357-release-token-from-pull-list-v2.fsm" target="_blank"&gt;Release Token from Pull List v2.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 01 May 2024 14:43:21 GMT</pubDate>
    <dc:creator>richard_McClaughry</dc:creator>
    <dc:date>2024-05-01T14:43:21Z</dc:date>
    <item>
      <title>Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586557#M83421</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am looking for a way to release a token from a Pull from List activity early based on another activity triggering or TE position.&lt;/P&gt;
 &lt;P&gt;I had thought to use "Release Token" with it pointed to "Tokens in Pull from List", but that didn't work.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="screenshot-2024-05-01-103406.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523761i8907A471D6B252B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot-2024-05-01-103406.png" alt="screenshot-2024-05-01-103406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Is this this a valid approach? Are one of the "Use Max ... Timer" options in the Pull from List a better method, even though its not necessarily time based?&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/82357-release-token-from-pull-list-v2.fsm" target="_blank"&gt;Release Token from Pull List v2.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 14:43:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586557#M83421</guid>
      <dc:creator>richard_McClaughry</dc:creator>
      <dc:date>2024-05-01T14:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586558#M83422</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hello &lt;A rel="user" href="https://answers.flexsim.com/users/43847/richardmcclaughry.html" nodeid="43847"&gt;@Richard M&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;This should work if you use the picklist option &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1714578705461.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523759i8C40BBAF130BDA80/image-size/large?v=v2&amp;amp;px=999" role="button" title="1714578705461.png" alt="1714578705461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you are using this and having an issue make sure that your pull from list activity has a unique name from other activities. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 15:53:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586558#M83422</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-05-01T15:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586559#M83423</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;I am already using the "Tokens in Activity" option, as shown from the snip. Unless I'm misunderstanding what you mean by the "picklist". The List is a unique name, its the "AGV Work List" from the "AGV with Basic Parking" template.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I've attached the model. The interaction is between TE6 at CP "Dispatch1" and TE8 finishing its unload at Finish1 at around 4650.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82306-release-token-from-pull-list.fsm" target="_blank"&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82306-release-token-from-pull-list.fsm" target="_blank"&gt;&lt;/A&gt;&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82306-release-token-from-pull-list.fsm" target="_blank"&gt;Release Token from Pull List.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 May 2024 16:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586559#M83423</guid>
      <dc:creator>richard_McClaughry</dc:creator>
      <dc:date>2024-05-01T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586560#M83424</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Your model didn't upload successfully. But I noticed that you have two activities with the same name in your screenshot. The "Tokens in Activity" option searches for the activity by name and will use the first occurence it finds in the tree. So currently you might be releasing the tokens from the left Pull from List. Maybe try giving the activities unique names.&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 May 2024 06:06:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586560#M83424</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-05-02T06:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586561#M83425</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I attached the file again to the original question.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I also gave the Pull from List target and the "Release to" unique names, but it is still not releasing.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1714655341727.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523760i446B5D3D07B69540/image-size/large?v=v2&amp;amp;px=999" role="button" title="1714655341727.png" alt="1714655341727.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 May 2024 13:09:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586561#M83425</guid>
      <dc:creator>richard_McClaughry</dc:creator>
      <dc:date>2024-05-02T13:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586562#M83426</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The issue is that the waiting token and the 'release' token are part of separate instances. By default only tokens in the same instance are found/released.&lt;/P&gt;&lt;P&gt;In the code of the "Token(s)" field in the Release activity replace line 14 ("Array tokens = ...") with the following. Somebody else might know a more elegant version but this should work.&lt;/P&gt;&lt;PRE&gt;// Get instances of Process Flow&lt;BR /&gt;Array instances = processFlow.find("&amp;gt;stats/instances").subnodes.toArray();
Array tokens = [];
for(int i = 1; i &amp;lt;= instances.length; i++)
{
&amp;nbsp; &amp;nbsp; tokens.append(gettokens(ownerobject(instances&lt;I&gt;.value), otherActivity, flags));
}&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;Another issue that then became apparent, is that none of the "Finish" processors are connected to their respective CPs.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 May 2024 13:23:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586562#M83426</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-05-02T13:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586563#M83427</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;That worked, thank you.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;Based on you statement:&lt;BR /&gt; "The issue is that the waiting token and the 'release' token are part of separate instances. By default only tokens in the same instance are found/released."&lt;/P&gt;
 &lt;P&gt;Would moving the block of logic with the Release Token into the container with the target of the Release have worked as well?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 11:58:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586563#M83427</guid>
      <dc:creator>richard_McClaughry</dc:creator>
      <dc:date>2024-05-06T11:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586564#M83428</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;No. The AGV Process Flow template is an &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/24.0/ModelLogic/ProcessFlowBasics/TypesOfProcessFlows/TypesOfProcessFlows.html" target="_blank"&gt;Object Process Flow&lt;/A&gt;. Essentially, for each instance object a separate copy of the same Process Flow exists, but the instances work largely independently from each other.&lt;/P&gt;&lt;P&gt;Tokens from different instances normally do not interact with each other. For example, a batch activity would create separate batches for each instance. That is why you need the custom code to also release tokens from other instances.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 12:21:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586564#M83428</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-05-06T12:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Release Token from Pull from List activity.</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586565#M83429</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Got it, thank you for the clarification.
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 12:24:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/using-release-token-from-pull-from-list-activity/m-p/13586565#M83429</guid>
      <dc:creator>richard_McClaughry</dc:creator>
      <dc:date>2024-05-06T12:24:51Z</dc:date>
    </item>
  </channel>
</rss>

