Kbase P8037: Task functionality not found in Progress Explorer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/22/2008 |
|
Status: Verified
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
SYMPTOM(s):
Cannot start a Task from Progress Explorer
Need to auto start task like in ProControl
ProControl Task functionality missing from Progress Explorer
Task(s) can start from ProControl
Database needs to be fully started before the Task starts.
CAUSE:
In the ProControl "Other Task" that needed to be run against a database, could be set up in the "Other Task" TAB and started in the correct order by moving the database above the Task in question in the "AutoStart" TAB. There is no replacement for this functionality in Progress Explorer.
FIX:
OPTION#1:
ProControl is still available in Progress 9.x
OPTION#2
Set the task up in the TASK SCHEDULER to begin at startup. Similarly, the SOON and AT commands allow to program tasks from batch scripts.
Insert a few lines of code at the start, to check for the db-name.lk file before it actually starts on (say) the server for serverside reporting.
The following example code is supplied without warrantee:
# run this program from a cron job or Windows scheduler (AT) in place of the application startup program.
# the program would loop interminably or until the user kills the _progres.exe executable through the system or by creating the quit flag.
/* ------------------------------------------------------------------------------ */
DEFINE VARIABLE cLockFile AS CHARACTER NO-UNDO INITIAL ?.
DEFINE VARIABLE cQuitFlag AS CHARACTER NO-UNDO INITIAL ?.
DO WHILE cLockFile EQ ? AND
cQuitFlag EQ ?:
cLockFile = SEARCH("c:\work101\sports2000.lk").
cQuitFlag = SEARCH("c:\work101\appQuit.Flag").
END.
IF cQuitFlag NE ? THEN DO:
OS-DELETE VALUE(cQuitFlag).
QUIT.
END.
IF (cLockFile GT "") NE TRUE THEN
QUIT.
CONNECT sports2000 -S 9934 NO-ERROR.
IF NOT CONNECTED("sports2000") THEN
QUIT.
RUN myAppStartup.p.
/* ------------------------------------------------------------------------------ */
OPTION#3:
FATHOM Management, provides the ability to run jobs and reports which can be configured easily. Please contact your Account Manager should you require more information about this Product.