Understood and thanks.


Mike

Michael H Serafin
Exeter Hospital
Applications Analyst Sr.
603-580-7646 (Office)
603-361-3053 (Cell)

From: [email protected] [mailto:[email protected]]
Sent: Friday, August 30, 2013 2:08 PM
To: [email protected]
Subject: RE:[talkbws] Question on workstation adding code in an action that I 
did not enter???

That is expected behavior - BWS Rules mode is a code generator and it needs to 
do what it needs to do:)

>From what I see I bet that rule is the last one in the step, that's why it 
>adds a goto automatically.

However, you can achieve what you need to do by adding
Exit Sub after each Step=""

So your action would read:

TestEffectiveDates
If (effectiveDateSame) Then
Step="UPDATEEXISTINGCOST"
Exit sub
Else
Step="ADDNEWDATE"
Exit sub
End If

The "rule " is, in a Rule action if you are setting Step  add Exit Sub after 
setting it.

Final note, if you set Step in a Rule then Goto's are up to you! You are 
overriding its behavior. So to decide between two steps in an Action - you 
can't have one Step= and a defined Goto

Thom C. Blackwell,  VP Technical Services
Boston Software Systems, Inc.
Phone: 866.653.5105 x807
Mobile: 508.423.8463
Fax: 508.319.3015
www.bostonsoftwaresystems.com<http://www.bostonsoftwaresystems.com/>

Healthcare Automation - Revolutionizing How You Work.
Visit us at the InSight Conference, Sept. 25-26 in booth #808

The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.

From: [email protected] [mailto:[email protected]]
Sent: Friday, August 30, 2013 2:02 PM
To: Talk
Subject: [talkbws] Question on workstation adding code in an action that I did 
not enter???

Question:

I am running a script for Meditech date/cost updating.  I have a rule defined 
in my work station that has the following actions:

TestEffectiveDates
If (effectiveDateSame) Then
Step="UPDATEEXISTINGCOST"
Else
Step="ADDNEWDATE"
End If

NOTE: TestEffectiveDate is a VB routine that simply compares these dates and if 
the same sets the effectiveDateSame flag.  If true it sets the Step to 
"UPDATEEXISTINGCOST" else it sets the Step to "ADDNEWDATE". There is NO GOTO 
defined!!!

But in my VB Editor this is what these actions translated to

TestEffectiveDates
If (effectiveDateSame) Then
Step="UPDATEEXISTINGCOST"
Else
Step="ADDNEWDATE"
End If
Step="ADDNEWDATE"
Exit Sub

Why does the workstation add this code at the end?  It overwrites the step I 
want the script to go to after this test.  It always goes to ADDNEWDATE.  I 
don't want it to as I want to dictate what step the script goes to next using 
the logic described above.



Thanks.

Mike

Michael H Serafin
Exeter Hospital
Applications Analyst Sr.
603-580-7646 (Office)
603-361-3053 (Cell)




---  To post a message to this list, send mail to: 
[email protected]<mailto:[email protected]>    You are currently subscribed as: 
[email protected]<mailto:[email protected]>    Unsubscribe in 
the customer center on our website: 
http://www.bostonsoftwaresystems.com/Customers/ListServe.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.bostonsoftwaresystems.com/Customers/ListServe.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.bostonsoftwaresystems.com/Customers/ListServe.aspx

Reply via email to