Making decision based on process flow (without considering 3D model)

Making decision based on process flow (without considering 3D model)

sevda_soheilifar
Observer Observer
89 Views
1 Reply
Message 1 of 2

Making decision based on process flow (without considering 3D model)

sevda_soheilifar
Observer
Observer

Hello,
I am building the digital twin model on process flow chart which I upload here. I am taking the real time of the battery when the token is created, when the task start to be done and when the task finished.
I have a problem with my decision block, I want to make a decision when there are 3 items in the queue. So here I have the acquire, resource and release. So if 3 tokens are waiting for the acquiring the resource, it means that 3 items are in queue and waiting for the resource.

As I mentioned I have a problem in my decision, I want to make a conditional decision like if 3 tokens are waiting in the acquire, go to 1, otherwise go to other branch which is 2.
I know that I can make a decision according to 3D model (Model.find("Queue1").subnodes.length>=5), but as my 3D model is not synchronized with process flow, so I want to make a decision according to the process flow chart.

Thank you for your help

0 Likes
90 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Enthusiast
Enthusiast

When you sample the resource from the condition field you get the configured "getstat()" command. Just replace the "Output" with "RequestContent" to read the current amount of tokens waiting to acquire the resource.

moehlmann_fe_0-1749018548844.png