Agus Mujtahid
24th February 2010, 07:31
Dear All,
Can we run session (form command or function in baan session) as background process?
So, after we run process in baan session, we can continue our action to open other session in the same bshell. thanks
Mujtahid
george7a
24th February 2010, 08:15
Use you can do it through AFS/DAL. here is the documentation:
AFS: http://www.baanboard.com/baanboard/showthread.php?t=7251
DAL: http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_overview
- George
vahdani
24th February 2010, 14:08
Hi Mujtahid,
I use often background processes when I need some multitasking. Here is what you do:
Write your background task as 3 GL Script. It will usually have a main while loop.
In your main Session you start the task by calling the activate() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_processes_activate) function. Note: If your script is called tccomxyz the procname will be otccomxyz.
The main session can communicate with the background oprocess using either export() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_export) or import() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_variables_interprocess_transfer_import) functions or Events (http://www.baanboard.com/programmers_manual_baanerp_help_events_overview).
Agus Mujtahid
1st March 2010, 02:56
Use you can do it through AFS/DAL. here is the documentation:
AFS: http://www.baanboard.com/baanboard/showthread.php?t=7251
DAL: http://www.baanboard.com/programmers_manual_baanerp_help_functions_dal_overview
- George
Hi Guru,
if we use AFS, to run others sessions in the same bshell, we must wait until AFS process finished. We wish we can start it without wait until this process finished, thanks
george7a
1st March 2010, 09:59
Why do you have to wait? How exactly are you activating your AFS session?
I used to run an AFS script and continue working with my menu brother normally.