question

Steven Chen avatar image
2 Likes"
Steven Chen asked Phil BoBo edited

I find Trigger "Travel to Object" Conditions because the versions different

Hello,

I found the condition "Travel to object" condition is because the version is different. I found the condition is because the version is different.


Can you assist in updating "Travel to Object"?


Thank you.

20.0 20.0.fsm

20.1 20.1.fsm

FlexSim 20.1.1
flexsim 20.1.1travel to object
image003.png (56.7 KiB)
image001.png (19.0 KiB)
image002.png (19.7 KiB)
· 1
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 ·

The difference comes from introducing a property of TaskExecuter class. gettasksequencequeue is still an old command of the pre-dot era. Dispatcher.taskSequences is an actual class property. It is time to change from commands to class methods and properties whenever it is possible. Otherwise we will never have an progress towards classes, if the picklist options don’t show the whole new syntax.

Probably you can use,

content(gettasksequencequeue(current)) == 0

but “content” is already deprecated, so will be “gettasksequencequeue” in one of coming versions.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Matthew Gillespie commented

The source code header is wrong declared for the variable current. It is declared as Object, but it must be Dispatcher. Dispatcher inherits Object Class, but not other way around.

· 1
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 ·

@phil.bobo, maybe you can put it onto the dev list to check the headers or to cast directly from Object to Dispatcher if properties or methods of TaskExecuter Class are involved. Many Thanks!

0 Likes 0 ·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

Thanks for pointing this out. I've added a case to the dev list.

In the meantime, you can press the down arrow to get the previous condition.

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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