ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Preparation task that can be discarded
Hi,
I'm trying to model the situation where a teaching or a meeting task is assigned to the staff but before the scheduled time arrive he/she will have to prepare for the assigned task. But when the time arrives whether he/she finishes preparation task or not the the task will have to be discarded in order for the meeting or the teaching task to be carried out on time. What's the best way to model this situation?? I was thinking to assign 2 arrivals of tasks one for preparation task that should have a very low priority and one for the meeting/teaching task that has a higher tier priority and can preempt other task. The problem is how to discard the preparation task once the meeting/teaching task arrive?? Any idea?? Please suggest |
#2
|
||||
|
||||
Hi,
maybe you can change the preempt parameter to PREEMPT_AND_ABORT_ACTIVE I don't know, if this parameter exists in Healthcare. Jörg |
#3
|
|||
|
|||
Quote:
Hi, Thank you for your suggestion However, I want the task to be discarded whether or not it is active or in the queue. but I dont want to discard all in the queue..just this task |
#4
|
||||
|
||||
With the Parameter PREEMPT_AND_ABORT_ACTIVE you only abort the active tasksequence, with PREEMPT_AND_ABORT_ALL you destroy all Tasksequences, the active one and all in the tasksequencequeue.
To fetch a not active Tasksequence in the Tasksquencequeue you will have to look for it. A For-Loop is a method to search over all the Tasksequences in your tasksequencequeue. You can identify your meeting / teaching tasksequence with the commands in the manual in the section "Querying Information on Task Sequences". Jörg |
#5
|
||||
|
||||
If you build a complex tasksequence and you want to change a not active task in this tasksequence, you can change the tasktype to a type, which has no effekt e.g a TASKTYPE_TAG.
If the tasktype is active you can preempt with "PREEMPT_ONLY" the hole active tasksequence, rebuild it so that the active and interrupted task has not an effect, see above. Be sure that the interrupted Tasksequence is the next to be executed again. For example, you can change its priority. It would be better you take a look in the method of calling subtasks within a tasksequence. Jörg |
Tags |
appointment, discard task, preempt, priority tier, triggers |
Thread | Thread Starter | Forum | Replies | Last Post |
How to interrupt active task and implement another task? | Ilivid zheng | Q&A | 2 | 01-15-2011 02:30 AM |