<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_create_a_Background_Process</id>
	<title>How to create a Background Process - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_create_a_Background_Process"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_create_a_Background_Process&amp;action=history"/>
	<updated>2026-04-06T16:55:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=How_to_create_a_Background_Process&amp;diff=217&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;== How to create a Background Process ==  Background Processes are Processes that are executed without the direct action of the user. There can be set different rules to s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_create_a_Background_Process&amp;diff=217&amp;oldid=prev"/>
		<updated>2018-10-15T12:59:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== How to create a Background Process ==  Background Processes are &lt;a href=&quot;/index.php/Processes&quot; title=&quot;Processes&quot;&gt;Processes&lt;/a&gt; that are executed without the direct action of the user. There can be set different rules to s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== How to create a Background Process ==&lt;br /&gt;
&lt;br /&gt;
Background Processes are [[Processes]] that are executed without the direct action of the user. There can be set different rules to schedule when the process is executed.&lt;br /&gt;
&lt;br /&gt;
This document discusses about the Openbravo infrastructure for Background Processes. How to define, schedule and monitorize Background Processes.&lt;br /&gt;
&lt;br /&gt;
=== Defining a Background Process ===&lt;br /&gt;
&lt;br /&gt;
Background Processes are defined in the window '''General Setup || Process Scheduling || Process Request'''. First you select in the  field '''Process''' the process to execute and in the field '''Timing''' when it will be executed.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ref-process-request.png]]&lt;br /&gt;
&lt;br /&gt;
Depending the '''Timing''' selected there is needed to define more fields to define this timing:&lt;br /&gt;
&lt;br /&gt;
==== Run Immediately ====&lt;br /&gt;
&lt;br /&gt;
This timing option will execute the Background Process only time at the moment the button to schedule the process is pressed. After it has been scheduled, it can be rescheduled as many times as needed.&lt;br /&gt;
&lt;br /&gt;
This option is very similar to executing a process from a menu option. The difference is that when scheduling a ''Run Immediately'' Background Process, there will not be any pop-up that indicates when the execution finished and instead it will be registered its execution in the '''Process Monitor'''.&lt;br /&gt;
&lt;br /&gt;
==== Run Later ====&lt;br /&gt;
&lt;br /&gt;
This option is similar to the previous option. In this case the Background Process will be executed only one time in one moment in the future.&lt;br /&gt;
&lt;br /&gt;
The moment when the Background Process will be executed is defined in the fields '''Start Date''' and '''End Date'''&lt;br /&gt;
&lt;br /&gt;
==== Schedule ====&lt;br /&gt;
&lt;br /&gt;
This is the most versatile option that allows to execute a Background Process periodically. These are the fields used to define the schedule plan of a Background Process:&lt;br /&gt;
&lt;br /&gt;
*'''Start Date''' and '''Start Time''': Defines the moment when the schedule plan for this Background Process will start.&lt;br /&gt;
*'''Frequency''': Defines the frequency to execute the Background Process. It can be '''Every n seconds''', '''Every n minutes''', '''Hourly''', '''Daily''', '''Weekly''', '''Monthly''', or '''Cron expression'''. Depending on the option selected you can define the specific details for each frequency option.&lt;br /&gt;
*'''Finish Date''' and '''Finish Time''': These fields can be defined only when the option '''Finished''' is selected. And it defines when to stop the schedule plan for this Background Process.&lt;br /&gt;
&lt;br /&gt;
=== Schedule and Unschedule a Background Process ===&lt;br /&gt;
&lt;br /&gt;
After the Background Process has been completely defined it can be scheduled pressing the button '''Schedule Process'''. When a process is scheduled, it will be executed according the '''Timing''' options selected, and every execution will be registered in the Process Monitor.&lt;br /&gt;
&lt;br /&gt;
To stop future executions of an Background Process just press the button '''Unschedule Process'''. After a Background Process has been unscheduled it can be scheduled again in any moment pressing the button '''Reschedule Process'''.&lt;br /&gt;
&lt;br /&gt;
=== Monitoring executions of Background Processes ===&lt;br /&gt;
&lt;br /&gt;
All the executions of Background Processes can be monitored in '''General Setup || Process Scheduling || Process Monitor'''.&lt;br /&gt;
&lt;br /&gt;
[[Image:Ref-process-monitor.png]]&lt;br /&gt;
&lt;br /&gt;
In this window there is one entry for each Background Process execution and the information of each execution. The most important fields are:&lt;br /&gt;
&lt;br /&gt;
*'''Process''': The Process executed.&lt;br /&gt;
*'''Start Time''', '''End Time''' and '''Duration''': When the execution started, when finished and the time it took to complete.&lt;br /&gt;
*'''Status''': The final result of the execution of the Process. &lt;br /&gt;
*'''Process Log''': The information logged during the execution of the Process. For example if the '''Status''' of the execution is ''Error'' here in the '''Process Log''' can be detected the reason of the error.&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>