question

lili avatar image
0 Likes"
lili Suspended asked lili Suspended answered

Calling processor without acquiring it

Hi!

I'm working on a model where I use a decide activity in the process flow to determine if the processor is empty or not. If empty, a task executer unloads the items processor, if occupied, items are moved to a storage before being transported to the processor. In the decision activity I'm using the following condition:

token.processor.subnodes.length == 0

And I get an error saying label processor doesn't exist on token id: 240 at MODEL:/Tools/ProcessFlow/ProcessFlow/Decide>variables/decision

I am aware that I have tp acquire a resource before using it in such a way, and I want to know Is there another way I can have use such logic? Or is it ok to acquire the processor before the decision activity even if it's already busy?

FlexSim 22.2.0
process flowdecision activityresource calling
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
@Lili, this error is telling you, that there is not a label called "processor" at your invovled token! Any other conclusion ist not possible without a model!
0 Likes 0 ·
lili avatar image lili Joerg Vogel commented ·

@Joerg Vogel I will upload a model explaining my question. In this model there are two process flows different in one aspect only:


process1 as explained in the model, first acquires the processor as a resource and assigns a label of token.processor to it before using token.processor.subnodes.length == 0 as a condition.

process2 uses the condition of token.processor.subnodes.length == 0 and then acquires the processor in case it's not busy.

I get the error from process2 (when running only process flow2) and I want to know if there is another way to use the label token.processor without first acquiring the processor as a resource?


test calling resources.fsm

0 Likes 0 ·

1 Answer

lili avatar image
0 Likes"
lili Suspended answered

@Joerg Vogel

I solved the problem using Model.find("Processor1").subnodes.length == 0

5 |100000

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