Greetings,

You are correct - the Rules based scripting -  Steps and Rules does
exactly what you described below.

 

A Step contains Rules. Rules are your "If statements" (in fact if you
look at the code behind a Rules script  - you will see that is exactly
what Rules are. 

 

Steps determine what If statements are evaluated.

 

If this is the first time you've tried the Rules Scripting approach -
here's what I would suggest.

1.       Start off with a new Project - BWS will automatically load in
Rules Based scripting mode this way

2.       Select the New Script icon - choose the Data Entry from File
option

3.       Select Connect to Application Step - then build a connect
command to launch Meditech

4.       Select the Login and Navigate to Anchor Screen Step and build
the "how you login, and navigate menus to the data entry screen" part of
your script. As you do this, you will see Rules being created in the
Step -these Rules automatically have the conditions picked up from the
screen as you learned the keying commands. Keep in mind, these truly are
If statements - even though you really don't go anywhere but from A to B
to C.

5.       Select the Open File Step and open the data file with the
DataStation

6.       Select the Enter Data Step and build the how you key in the
fields from your file. Here's where the "magic" comes in. Enter a "good"
account number, and build out what you would do from there.

7.       Go back into Meditech and by hand, enter in a bad account
number. Build out how  you'd react to that.

8.       You can reorder the created Rules - but, the order they appear
really doesn't matter because they all are If statements.

 

Now you're not limited to a single "Data Entry" step - there's no hard
and fast rule to the number of Steps etc.

 

There's lots of Rules script examples on the website to see what a
completed one looks like. There's also a guided tutorial in the
documentation that works with our built in training application. I've
also given a variety of webinars on Rules scripting too.

 

The Building a Script series is a pretty decent overview. 

http://www.bostonworkstation.com/customer_center/special_events/scriptin
g-tune-up-archives.aspx

 

Regards,

Thom

 

 

Thom C. Blackwell

Product Manager

Boston Software Systems

(866) 653-5105 ex 807

www.bossoft.com <http://www.bossoft.com/> 

 

Sign up for my weekly webinar!
<http://www.bostonworkstation.com/customer_center/special_events.aspx> 

 

LEGAL NOTICE Unless expressly stated otherwise, this message is
confidential and may be privileged. It is intended for the addressee(s)
only. Access to this E-mail by anyone else is unauthorized. If you are
not an addressee, any disclosure or copying of the contents of this
E-mail or any action taken (or not taken) in reliance on it is
unauthorized and may be unlawful. If you are not an addressee, please
inform the sender immediately, then delete this message and empty from
your trash.

 

 

From: [email protected] [mailto:[email protected]] 
Sent: Monday, August 03, 2009 12:27 PM
To: Talk
Subject: [talkbws] Conditional Logic Like IF then ELSE/ELSEIF

 


Hi All, 

Looking for some help on conditional handling on Steps in BWS. here is
the scenario. 

I have to key in some info into Meditech 4.x NUI. 
There can be a situation where the script keys in an account number a
'Pop up' window t appear "Not a valid acct #" , so in this case I have
to log this account number to a file or something and get out of the
'Pop-up' and go to the next account. 
Pseudo Code: 
IF Cursor at AcctNum field then 
        Enter AcctNum 
        IF Cursor at Error Pop-up then 
                Goto Some Step to log this Acct Num 
                Enter Key strokes to go back to Acct Num field 
                
        ELSE 
                Key other values on the screen. 
        END IF 
END IF. 

Partial of BWS STEP and CONDITIONS 
STEP "Key Acct Num" 
        Condition 
                "Title and some scr title at 1.1and Cursor at x,y
...Enter "12345" 
                "Title Error at 1,1 and Cursor at x,y....Enter "{some
key"}                'To get out of the pop-up. 

I believe this can be done in BWS using the STEP and CONDITION logic,
any pointers or suggestions are helpful. 

Appreciate your time and thoughts. 

thank you 

Ranjit M Bendapudi
Meditech Service Center
CSC

5209 Linbar Dr., Nashville, TN 37211
P: +1-615.662-7775 |direct: +1- 615.493.9070 |[email protected] |
www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC
to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of
e-mail for such purpose. --- 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

Reply via email to