You can't have multiple Meditech C/S scripts running at the same time so
having multiple instances of BWS could be a problem there, plus
performace suffers. The simplest is to use Windows Scheduler although
you still have to account for the possibilty of scripts running at the
same time.
 
Combining projects requires a modular approach. I have a handful of
modules all my scripts share including Meditech login, text file
functions, etc. Additionally I export each project's primary module into
another directory. For the combined project it is only then a matter or
adding all the .bas files and writing a script that calls the script in
each .bas file.
 
 
So for example if I exported a module with a DepartOutpatient script:
 
Sub DepartOutpatient(Optional dummy As Long)
' This subroutine was auto-inserted by the WorkStation.
    If Step = "INITIALIZE" Then
        If Rule("") Then
            f("Script") = "Depart CLI Outpatient"
 
....
<etc.>
....
 
End Sub
 
 
 
I would include in the .bas file a way to call the script such as:
 
Sub xDepartOutpatient(Optional dummy As Variant)
Share("Suspend8") = False
Step = "INITIALIZE"
Do Until Step = "_END_"
    DepartOutpatient
    If Share("Suspend8") Then Share("Suspend8") = False: Stop
    Stable Share("WaitSpeed")
Loop
End Sub
 
 
Then in the main project module I would write a script for each project
which mearly called the the script in the imported .bas module.
 
Sub DepartOutpatient(Optional dummy As Long)
' This subroutine was auto-inserted by the WorkStation.
    If Step = "RUN" Then
        If Rule("") Then
            xDepartOutpatient
            Exit Sub
        End If
    ElseIf Step = "_END_" Then
    End If
End Sub
 
 
So if I have to make a change to a script I do it in the original
project and then export the .bas module to the combined project. It
sounds like a lot of work but once you get used to modularizing it's not
so bad. The only real advantage though is being able to chain scripts
together to only start when another ended. If you're able to chain them
with another scheduler there would be no reason to use the BWS
scheduler.
 
 
Chad Kemp
Information Systems Analyst
Firelands Regional Medical Center
419-557-7874
 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Friday, October 16, 2009 5:34 PM
To: [email protected]
Subject: [talkbws] RE: scheduling multiple scripts



Not at all, having several scripts going all at once is the best way to
get a boat load of work done in record time (for me that is).  I have
8-separate scripts/instances running at the same time, using different
core session numbers matching my scripts so I can easily monitor them.

 

Susan Ashby

Casa Grande Reg Med Cntr

Systems Analyst

520.381.6149 Direct

520.381.6605 Fax

[email protected]

 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Friday, October 16, 2009 2:28 PM
To: [email protected]
Subject: [talkbws] RE: scheduling multiple scripts

 

I didn't realize that you could run more than one instance on a machine.
I guess you have to be very careful that the other script ends in time
and closes out properly or you would have some issues.  From those
examples in your experience which is the easiest and most effective way
to go?  How would you combine projects once they are created as separate
projects, does this make things confusing when you have many things
going?

 

From: [email protected] [mailto:[email protected]] 
Sent: Friday, October 16, 2009 4:01 PM
To: [email protected]
Subject: [talkbws] RE: scheduling multiple scripts

 

Ah yes. There are a couple work arounds I've used:

 

1. Have multiple instances of BWS running each with a seperate project.

2. Combine multiple projects into one mega project and schedule the
scripts seperately.

3. Create a .bat file to run the projects and use Windows Scheduler
instead.

 

 

Chad Kemp

Information Systems Analyst

Firelands Regional Medical Center

419-557-7874

 

 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Friday, October 16, 2009 4:53 PM
To: [email protected]
Subject: [talkbws] scheduling multiple scripts

I have just completed our 2nd script and I am having some scheduling
trouble.  I am trying to schedule two scripts from two different
projects to run at different times using the BWS scheduler and I don't
see how I can add the other script to my current schedule.   I only see
the one script I have scheduled in the drop down window of the
scheduler.  What am I missing?

 

Thanks in advance for the help!

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 

This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. West Jefferson Medical Center, 1101 Medical
Center Blvd., Marrero, USA, www.wjmc.org. --- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 

--- 
To post a message to this list, send mail to: [email protected] 

You are currently subscribed as: [email protected] 

Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx 


This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. West Jefferson Medical Center, 1101 Medical
Center Blvd., Marrero, USA, www.wjmc.org.


---
To post a message to this list, send mail to: [email protected]

You are currently subscribed as: [email protected]

Unsubscribe in the customer center on our website: 
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk.aspx

Reply via email to