question

Julio Cs2 avatar image
0 Likes"
Julio Cs2 asked Julio Cs2 commented

How to put a fixed source label on the Task Sequence list?

2.png1.png


FlexSim 19.1.2
listsset label
1.png (102.3 KiB)
2.png (90.4 KiB)
5 |100000

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

Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Julio Cs2 commented

You could insert a "tag" task into the created task sequence and use the label value as one of the variables.

1647328050824.png

Instead of writing the value to a list field, you could also use it as the partition the task sequence gets pushed to. Then each task executer could pull directly from the respective partition without needing a query.


1647328050824.png (105.0 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.

Julio Cs2 avatar image Julio Cs2 commented ·

Thanks, this is exactly what I was looking for.

0 Likes 0 ·
Joerg Vogel avatar image
2 Likes"
Joerg Vogel answered Murilo B commented

You have a reference to the Tasksequence. The load station is a parameter of a travel task for first task of this tasksequence and is also the second parameter of the second task of this tasksequence.

In an added expression field you can set a statement that evaluates one of those possible parameters.

value.as(TaskSequence).tasks[1].involved1
· 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.

Murilo B avatar image Murilo B commented ·

Yes @Julio Cs2, following these steps your expression Field in the Task Sequence list will look like this:

1647518903872.png


You can also check the entries and see that the "Car" field is now with the Fixed Resource label's value.

1647518931623.png


2 Likes 2 ·
1647518903872.png (8.7 KiB)
1647518931623.png (5.9 KiB)