Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Setting condition in selectOutput block

I have an selectOutput block in which I would like agents of type Patient to continue through OutT if they have passed through a particular timeMeasureStart block. After passing agent.timeMeasureStart in the condition, I receive ‘timeMeasureStart’ cannot be resolved or is not a field.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Create a variable for your agent type Patient. Let’s say you name it tmsTrue. Make the variable of type boolean. In the On Enter field of the timeMeasureStart block write:

agent.tmsTrue = true;

enter image description here

Then set your select output condition as:

agent.tmsTrue == true

enter image description here

Of course make sure that the variable’s initial value is set to false.

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading