Hello, in Decide activity, the connector value it returns is integer like this.
While I need to double in my Decide activity, I use custom code instead, but all tokens still go to first connector.
Hello, in Decide activity, the connector value it returns is integer like this.
While I need to double in my Decide activity, I use custom code instead, but all tokens still go to first connector.
HERE!
give a name each connector behind a decide activity!
'id' is a special property of tokens (as you can tell by the fact that it appears in purple font). It is a unique identification number for the token. The first created token will have an id of 1, the second of 2 and so on.
If you have a label called "id", you have to use different syntax so FlexSim knows that you want to access a label with that name and not get the id number of the token.
token.labels["id"].value
The numbers in your screenshot are probably only used as an example, but seeing how they are each just offset by 0.5 from the connector rank, you could also use
int returnValue = token.labels["id"].value + 0.5; return returnValue;
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved