question

Mohamed A17 avatar image
0 Likes"
Mohamed A17 asked Jason Lightfoot commented

How to keep using the same pulled resource in a campaign?

Hi,

I would appreciate if you could help me with my request. In my example, I have a list of resources that are pulled based on a certain condition. In a specific situation, the resource can be used multiple times (let’s say 5 times) without being pushed to the list (i.e., campaign) while in another situation, it can be used, pushed, and pulled again.

The problem is when I run the model, each time I need to push the resource to the list to use it again in the campaign, When I do so, the other tokens pull the source and interrupt the campaign.

My question is how to keep using the same pulled resource for 5 times and prevent other token from pulling it until the campaign is completed. The model is large and complex so, I couldn’t share it but any guidance will be highly appreciated.

Thanks in advance,

Mohamed

FlexSim 22.0.1
list pull from listpush and pull listcampaign
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Mohamed A17, 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.

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.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You say that in order to use the resource again, you first have to push and pull it again? Does this have to be the case? Because the rest of your post sounds like you want the same token to use the resource again, so could it be possible to just skip the release/reacquire?

1657778650440.png

You could have the other tokens wait in a 'Wait for Event' activity instead of directly in the Pull from List' (max wait timer -> release through connector 2). By placing a delay after it (can be 0s if there is no delay for the other token), the token that pushes the value back gets to pull a value from the list first.

1657779077411.png

Lastly you could also use some label fields on the list to determine who is allowed to pull a token. For instance both the resource and the tokens could have a label 'Reuse'. Only if that label is equal on both, can the resource be pulled. The default value could be zero and if a token is supposed to reuse a resource it is set to 1 on both.

1657779362135.png


1657778650440.png (14.7 KiB)
1657779077411.png (12.4 KiB)
1657779362135.png (33.5 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.