question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Matt Long edited

How can I send message to Fixed Resource using Custom Task in ProcessFlow?

Hello,

I want to send message to "Que2" in the layout using Custom Task, but I don't know how to set the task to make it work. Could some one help me out?

Thank you in advance,

SampleLayout_en.fsm

FlexSim 19.0.9
process flowflexsim 19.0.9send message
capture02.png (402.4 KiB)
samplelayout-en.fsm (78.0 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.

1 Answer

·
Matt Long avatar image
1 Like"
Matt Long answered Matt Long edited

You're passing in the Processor for the Task Executer / Dispatcher field of the Create Task Sequence activity. That's what the error message in the system console is telling you:

time: 262.947546 exception: Error: Bad Task Executer reference in create task sequence activity "Create TS" in process flow "ProcessFlow"

You need to select a an object from the Task Executers category of the Library to send the task sequence to. With the way you're building your Task Sequence, you should click the remove button for the Task Executer / Dispatcher field on the Create TS activity, uncheck Wait Until Complete on the Custom Task activity, and then specify a task executer in the Task Executer / Dispatcher field of the Dispatch TS activity. If you do those steps the message will be sent once the task executer gets to the task sequence. I gave it to the Operator and it worked just fine.

I would recommend reading through the user manual with regard to the Task Sequence activities. There are multiple ways to use them. Messaging isn't used very often with Process Flow as it's often easier to keep all of your logic in Process Flow (in your case using a Custom Code to close and open ports) rather than have logic spread throughout the model.

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

Ryosuke S avatar image Ryosuke S commented ·

Thank you for your reply. Yes, it worked perfectly now. I didn't know that I had to choose object from Task Executor for Task Executor in Create TS.

Yes, I agree with you that I should have defined all the logic in Process Flow. I wanted to study the possibility of mixing both as there are cases where some customer are not so fond of creating logic in ProcessFlow manner.

Thank you so much for your help.

0 Likes 0 ·

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.