question

Osama A6 avatar image
0 Likes"
Osama A6 asked Connor A commented

simulation without source 2

Use the attached model. Let's assume I have more objects 3 and 4. The model has a task sequence or built-in dispatcher (built-in, assume it was a default setup from a special library, let's say I have inherited from a former programmer). Can I incorporate the current task sequence (or the dispatcher) with the process flow to make the following route (I don't want to change the reset code, more user-friendly simulation)? TaskExecuter1 go to object1,2,3,4. 1,2 task sequence, 3,4 process flow.

FlexSim 21.2.1
process flowdispatcher
· 6
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Osama A6,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

1 Like 1 ·
Osama A6 avatar image Osama A6 Jeanette F ♦♦ commented ·

Let's assume that you have the attached model, where you have no idea about it, and you want to override the tasksequence without messing with the dipatcher. You want to incorporate process flow with it. just-travel_no_idea.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

@Osama A6 , you said “use the attach model”. I found none, can you attach it? Thanks!

1 Like 1 ·
Osama A6 avatar image Osama A6 Joerg Vogel commented ·

Sorry for my mistake. just-travel_no_idea.fsm here the model.

0 Likes 0 ·
Ryan Clark avatar image Ryan Clark commented ·

Hi @Osama A6,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Connor A avatar image Connor A commented ·

Hi @Osama A6, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Jason Lightfoot commented

Yes you can control an existing logic from Process Flow. A tasksequence execution is tree node bound. You can alter any tree node data. For example you can change order of sub tree nodes, you can change tasktype. you can replace not begun tasksequences.
I would collect data from an existing model in lists and decide then how to manipulate the current control mechanism that it acts like I want it. I take away the possibility to decide on multiple available tasksequences and insert only necessary tasksequences.

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

What Jorg is referring to here is the tasksequence node in the tree under the object's "activetasksequence" or "tasksequencequeue" nodes. Under each is a node representing the task sequence. When you create Process Flow tasks they are insterted as a pair of tasks in the task sequence - one to do the task and the other to callback to the process flow when it is completed. So what Jorg is describing is adding the process flow tasks and then positioning them where you want in the tree by moving the pair of tasks to the positions you want. To do this generically may not be trivial since you either need to assume the structure of the task sequence to which you're adding tasks, or read the list of tasks to see what it's doing.

1640097677793.png

You can see how to change task attributes and rank here.


1 Like 1 ·
1640097677793.png (34.2 KiB)

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.