question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Felix Möhlmann edited

How to reference/filter Task Sequences by type

Hello, in the attached sample model, I'm trying to trigger some activities when the operator starts Delay type Tasks and trigger other activities when he ends those same Delay type Tasks.

This is required because I want to centralize to things in a subflow so I don't have to repeat them all over the model.

How do I filter the tasks in the Event-Triggered Source so that it only fires for Delay type tasks and not other tasks such as Travel?

Reference TaskSequence type.fsm

FlexSim 21.1.5
tasksequenceflexsim 21.1.5
· 2
5 |100000

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

Patrick Cloutier avatar image Patrick Cloutier commented ·
I found a way by assigning the TaskType to a label in the Source. Then adding a Decide activity which sends token to a Sink if TaskType<>12.

This works but I was hoping for a more direct way of filtering directly in the Match Value field of the Source.

0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier commented ·
Which brings me the questions: Are Delays always Task Type 12? And is there a list of TaskTypes numbers? I couldn't find it in the manual.

Thanks,

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann edited

You can define the task type in the event triggered source when you are listening to the "Start Task" event of a Task Executer. Task types are integers. There are defines in FlexSim in the form of "TASKTYPE_..." that you can use in place of the numerical values. Then you want to select "match value" to only trigger if the task has the correct type.

If you want the numerical values, they are easy to find by typing the corresponding define into the script console (see attached model).

You can find the values of the task types easily by typing the corresponding define into the script console. (If you type "TASKTYPE_" FlexSim will suggest the possible options)

Attached is a simple model with three sources: One triggering on travel, one on load and one on any task.

Source_by_TaskType.fsm

Also your model with the sources adjusted accordingly.

reference-tasksequence-type_fm.fsm


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.