How to run Openbravo background process

Openbravo background process designed to execute long run business logic, or heavy task. Openbravo background process allow you to run asyncrhonous process, it’s mean once you run execute those process to run, then Openbravo does not hold the application, you may do some other task on Openbravo application, while Openbravo run your long run process in the background.

you can review all background process through Process Request window. Openbravo provide 2 type of timing, to tell how Openbravo should execute your requested process: (1) run process based on predetermined schedule, and (2) run it immediately.

run background process on predetermined schedule

process request setting above tell Openbravo following information:

  1. this background process will be executed based on schedule (NOT executed immediately).
  2. this background process will be executed for every 1 hour, forever (ending date for this process request is not determined).
  3. this background process will be executed for the first time, today 10 AM.
  4. if this process request created on, let say 10.45 AM, then this background process will be executed for the first time, today 11 AM.

once you save those record, your requested background process not sheduled yet. why? because this process request status is not scheduled (or status=unscheduled). to make it schedule, click button schedule process on the top right corner (screenshot: inside yellow box).

once status=scheduled then, based on this case, your process request will be executed for every one hour. if your process request status is scheduled, then those button become unschedule process. you may click this button if you want to avoid your process for next execution (screenshot: inside yellow box).

how to monitor executed background process?

for each process request, you can monitor your executed background process by open subtab process monitor.

you will see several process execution history on this subtab. Openbravo guarantee process execution thread safe, it’s mean process instance is not overlapping with another instance. then, only one record allowed in a time in this process monitor subtab, which status is in-progress.

this process execution is asynchronous, it’s mean when openbravo run your process request, and it’s not finished yet, then process monitor status is in-progress, you may do another task, openbravo does not hold application UI until process execution finihed. when finished, process monitor record will be changed into Success or Error or System Restart respectively.

run background process immediately

besides schedule, background process also can be executed immediately.

process request setting above tell Openbravo following information:

  1. this background process will be immediately. it’s mean, when you save this process request, then click schedule process on the top right corner on this process request window, then this background process will be executed immediately.
  2. when scheduled, this background process will run only once. no repetition further.

once you save those record, your requested background process not sheduled yet. why? because this process request status is not scheduled (or status=unscheduled). to make it schedule, click button schedule process on the top right corner. once clicked, your process will be executed immediately, and executed once only. in another hand, this button will be changed into unschedule process.

how to rerun your “run immediately” background process

to rerun your process request with schedule run immediately, you need to unschedule it first by click button unschedule process on the top right corner. now your process request status is unscheduled, and the button will changed into reschedule process. click reschedule process button. now your process will be executed immediately, now process request status is scheduled, and button changed into unschedule process.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s