Search the web
Sign In
New User? Sign Up
magicu-l · uniPaaS (Magic) Software Users Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Exiting an Online Task before it starts   Message List  
Reply | Forward Message #136847 of 148694 |
RE: [magicu-l] Exiting an Online Task before it starts

The "Exit" event doesn't take place until the program tries to park on a
screen control. This is far to late.

You need to define a virtual in the Online task (let's call it "End This
Task", logical) and in TP set "End This Task" to True based on the value of
the MP virtual. In the Task Properties set the "End task condition" to the
variable "End This Task" and the Evaluation Condition to "Immediately". Now
when you update the "End This Task" variable to True in TP, the engine will
see this, check the end task condition and end the online program before
opening the screen. You may still see the screen flash depending on your
computer's performance. The alternative is to conditionally call the online
task only when the MP virtual allows it to run, or put a batch parent task
on it, which in many cases has some great advantages and more flexibility.



HTH



Keith



From: magicu-l@yahoogroups.com [mailto:magicu-l@yahoogroups.com] On Behalf
Of Florian Groothuis
Sent: Friday, November 21, 2008 1:57 AM
To: magicu-l@yahoogroups.com
Subject: RE: [magicu-l] Exiting an Online Task before it starts



If the condition is set in the MP why is the task called in the first
place?

If the opening of the window is the problem why not set Open Window to
that same condition?

Florian

________________________________

Van: magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com>
[mailto:magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com> ]
Namens
ChemaTercero
Verzonden: donderdag 20 november 2008 23:34
Aan: magicu-l@yahoogroups.com <mailto:magicu-l%40yahoogroups.com>
Onderwerp: [magicu-l] Exiting an Online Task before it starts

Hi,

In the Main Program I set one virtual to indicate if some online task
are enable to run.

In the refered online task I have placed an Evaluate 'Exit'EVENT in the
Task Prefix in the Record Prefix and Sufix but the task is still
opening the main form (of course this Evaluated is Cond by the virtual
state).

What is the right place to the 'Exit'EVENT?

I have being thinking in a bath task that runs the online task but
seems to me there must be a way to solve it in the online task.

Regards,

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]




Fri Nov 21, 2008 12:42 pm

kbcanniff
Offline Offline
Send Email Send Email

Forward
Message #136847 of 148694 |
Expand Messages Author Sort by Date

Hi, In the Main Program I set one virtual to indicate if some online task are enable to run. In the refered online task I have placed an Evaluate 'Exit'EVENT...
ChemaTercero
Offline Send Email
Nov 20, 2008
10:34 pm

Why not set the condition for exit to vExit (logical), immediate and update vExit to true in TP. ? ... From: "ChemaTercero" <chematercero@...> To:...
sherman levine
shermanlevine
Offline Send Email
Nov 20, 2008
10:39 pm

Evaluate? No, no - use a Raise Event operation. And be sure to set this Raise Event operation's Wait property to No. ... Steven G. Blank Salt Lake City, Utah...
Steven G. Blank
blanstev
Offline Send Email
Nov 20, 2008
10:45 pm

Thanks. In the TP I place a Raise Event Exit Wait no, but the Task continue to run. Sherman solution worked fine. Thought End Condition was for Batch task...
ChemaTercero
Offline Send Email
Nov 20, 2008
11:19 pm

End task condition is also available for online tasks. I would put that condition (immediate) straight on an expression that refers to your Main Program...
Omar Lamin
ola_ip
Offline Send Email
Nov 21, 2008
12:21 am

If the condition is set in the MP why is the task called in the first place? If the opening of the window is the problem why not set Open Window to that same...
Florian Groothuis
f.groothuis
Offline Send Email
Nov 21, 2008
6:54 am

The "Exit" event doesn't take place until the program tries to park on a screen control. This is far to late. You need to define a virtual in the Online task...
Keith Canniff
kbcanniff
Offline Send Email
Nov 21, 2008
12:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help