英文:
How can I have different Queue locations in the Service Block based on the Agent property?
问题
我有一个服务块,进入该服务块的代理人有一个名为"BatteryProblem"的参数。我想要的是,如果"agent.BatteryProblem"为true,他们站在一个单独的队列中,如果"agent.BatteryProblem"为false,那些代理人站在另一个单独的队列中。挑战在于我想要只使用一个服务块来实现这一点。
我尝试过的方法:
我尝试根据代理人的"BatteryProblem"参数来设置服务块的队列位置。我提供了下面的图像,显示了我尝试过的内容,但它没有起作用。
英文:
I have a service block, and the agents entering the service block have a parameter called "BatteryProblem". What I want is, if "agent.BatteryProblem" is true, they stand in a separate queue, and if "agent.BatteryProblem" is false, those agents stand in a separate queue. The challenge is that I want to achieve this with only one service block.
What I tried:
I attempted to set the queue location of the service block based on the agent's "BatteryProblem" parameter. I have provided an image below showing what I tried, but it did not work.
答案1
得分: 1
因为该代码字段没有agent
回调,始终要研究“魔术灯泡”(请参见此处)。
解决这个问题的最简单方法是在上游使用一个完整的Queue
块(并将服务队列容量设置为1)。
服务块本身只是Queue、Seize、delay、release的组合。如果需要特定的功能,通常会将其分散开来。
英文:
Because that code field has no agent
callback, always study the "magic lightbulb" (see here).
Easiest way to solve this is to use a full Queue
block upstream (and set the service queue capacity to 1).
The Service block is itself only a combination of Queue, Seize, delay, release. You typically spread it out if you need specific capabilities
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论