[Process Group] Basic Functionality
authorRafa de Miguel <rafael.demiguel@openbravo.com>
Tue, 27 May 2014 10:11:02 +0200
changeset 24017 bd1fcfa0a044
parent 24016 cc62e2e59efa
child 24018 2f709052b32d
[Process Group] Basic Functionality
src-db/database/model/tables/AD_PROCESS_REQUEST.xml
src-db/database/model/tables/AD_PROCESS_RUN.xml
src-db/database/model/views/AD_PROCESS_EXECUTION_V.xml
src-db/database/sourcedata/AD_COLUMN.xml
src-db/database/sourcedata/AD_ELEMENT.xml
src-db/database/sourcedata/AD_FIELD.xml
src-db/database/sourcedata/AD_REFERENCE.xml
src-db/database/sourcedata/AD_TABLE.xml
src-db/database/sourcedata/AD_VAL_RULE.xml
src-db/database/sourcedata/OBUISEL_SELECTOR.xml
src/org/openbravo/scheduling/GroupInfo.java
src/org/openbravo/scheduling/OBScheduler.java
src/org/openbravo/scheduling/ProcessBundle.java
src/org/openbravo/scheduling/ProcessGroup.java
src/org/openbravo/scheduling/ProcessMonitor.java
src/org/openbravo/scheduling/ProcessRun_data.xsql
--- a/src-db/database/model/tables/AD_PROCESS_REQUEST.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_REQUEST.xml	Tue May 27 10:11:02 2014 +0200
@@ -205,6 +205,10 @@
         <default><![CDATA[N]]></default>
         <onCreateDefault><![CDATA['N']]></onCreateDefault>
       </column>
+      <column name="AD_PROCESS_REQUEST_GROUP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="AD_PROCESS_REQUEST_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -220,5 +224,8 @@
       <foreign-key foreignTable="AD_USER" name="AD_PROCESS_REQUEST_AD_USER">
         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_PROCESS_REQUEST" name="AD_PROCESS_REQUEST_GROUP">
+        <reference local="AD_PROCESS_REQUEST_GROUP_ID" foreign="AD_PROCESS_REQUEST_ID"/>
+      </foreign-key>
     </table>
   </database>
--- a/src-db/database/model/tables/AD_PROCESS_RUN.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/model/tables/AD_PROCESS_RUN.xml	Tue May 27 10:11:02 2014 +0200
@@ -65,6 +65,10 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="AD_PROCESS_RUN_GROUP_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="AD_PROCESS_RUN_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -74,6 +78,9 @@
       <foreign-key foreignTable="AD_PROCESS_REQUEST" name="AD_PROCESS_RUN_AD_PROCESS_REQU" onDelete="cascade">
         <reference local="AD_PROCESS_REQUEST_ID" foreign="AD_PROCESS_REQUEST_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="AD_PROCESS_RUN" name="AD_PROCESS_RUN_GROUP">
+        <reference local="AD_PROCESS_RUN_GROUP_ID" foreign="AD_PROCESS_RUN_ID"/>
+      </foreign-key>
       <index name="AD_PROCESS_RUN_STATUS" unique="false">
         <index-column name="STATUS"/>
       </index>
--- a/src-db/database/model/views/AD_PROCESS_EXECUTION_V.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/model/views/AD_PROCESS_EXECUTION_V.xml	Tue May 27 10:11:02 2014 +0200
@@ -1,4 +1,4 @@
 <?xml version="1.0"?>
   <database name="VIEW AD_PROCESS_EXECUTION_V">
-    <view name="AD_PROCESS_EXECUTION_V"><![CDATA[SELECT rn.ad_process_run_id, rn.ad_client_id, rn.ad_org_id, rn.isactive, rn.created, rn.createdby, rn.updated, rn.updatedby, rq.ad_user_id, rn.status, rn.start_time, rn.end_time, rn.runtime, rn.log, rn.result, rq.params, rn.report, rq.channel, rq.isrolesecurity, rq.ad_process_id, rn.ad_process_request_id FROM ad_process_run rn LEFT JOIN ad_process_request rq ON rn.ad_process_request_id = rq.ad_process_request_id]]></view>
+    <view name="AD_PROCESS_EXECUTION_V"><![CDATA[SELECT rn.ad_process_run_id, rn.ad_client_id, rn.ad_org_id, rn.isactive, rn.created, rn.createdby, rn.updated, rn.updatedby, rq.ad_user_id, rn.status, rn.start_time, rn.end_time, rn.runtime, rn.log, rn.result, rq.params, rn.report, rq.channel, rq.isrolesecurity, rq.ad_process_id, rn.ad_process_request_id, rn.ad_process_run_group_id FROM ad_process_run rn LEFT JOIN ad_process_request rq ON rn.ad_process_request_id = rq.ad_process_request_id]]></view>
   </database>
--- a/src-db/database/sourcedata/AD_COLUMN.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_COLUMN.xml	Tue May 27 10:11:02 2014 +0200
@@ -262244,6 +262244,40 @@
 <!--724D3D28D01A4501AA4A0152072C7A7B-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--724D3D28D01A4501AA4A0152072C7A7B--></AD_COLUMN>
 
+<!--725CA414537E4AE7A10C9B5632C92838--><AD_COLUMN>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_COLUMN_ID><![CDATA[725CA414537E4AE7A10C9B5632C92838]]></AD_COLUMN_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <NAME><![CDATA[Triggered by Group]]></NAME>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <COLUMNNAME><![CDATA[AD_Process_Request_Group_ID]]></COLUMNNAME>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_TABLE_ID><![CDATA[82D4EDCF39AE44FB9B24E95A1B18B21C]]></AD_TABLE_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_REFERENCE_ID><![CDATA[80B1630792EA46F298A3FBF81E77EF9C]]></AD_REFERENCE_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_REFERENCE_VALUE_ID><![CDATA[1D302425F6124D3DB90D89178223D7DB]]></AD_REFERENCE_VALUE_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <SEQNO><![CDATA[630]]></SEQNO>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_ELEMENT_ID><![CDATA[9438EBF8347047E2B34A9861FECB2BAF]]></AD_ELEMENT_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <POSITION><![CDATA[52]]></POSITION>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--725CA414537E4AE7A10C9B5632C92838-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--725CA414537E4AE7A10C9B5632C92838--></AD_COLUMN>
+
 <!--7270DE4F7AAA41E89E5F133AF78F2163--><AD_COLUMN>
 <!--7270DE4F7AAA41E89E5F133AF78F2163-->  <AD_COLUMN_ID><![CDATA[7270DE4F7AAA41E89E5F133AF78F2163]]></AD_COLUMN_ID>
 <!--7270DE4F7AAA41E89E5F133AF78F2163-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -284249,6 +284283,40 @@
 <!--87731FFC3B7145BABDD2C6A030450A99-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--87731FFC3B7145BABDD2C6A030450A99--></AD_COLUMN>
 
+<!--8774B0E36D5E4E0798C704EB26733E2D--><AD_COLUMN>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_COLUMN_ID><![CDATA[8774B0E36D5E4E0798C704EB26733E2D]]></AD_COLUMN_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <NAME><![CDATA[Triggered by Group Execution]]></NAME>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <COLUMNNAME><![CDATA[AD_Process_Run_Group_ID]]></COLUMNNAME>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_TABLE_ID><![CDATA[6567DD0C6715472CAE04255A4BEC4654]]></AD_TABLE_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_REFERENCE_ID><![CDATA[80B1630792EA46F298A3FBF81E77EF9C]]></AD_REFERENCE_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_REFERENCE_VALUE_ID><![CDATA[177376BB849C4F718AB5E66CDB81F34E]]></AD_REFERENCE_VALUE_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <SEQNO><![CDATA[170]]></SEQNO>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_ELEMENT_ID><![CDATA[692D5AFB705C4C3394E1D3AB309BDF5F]]></AD_ELEMENT_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <POSITION><![CDATA[18]]></POSITION>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--8774B0E36D5E4E0798C704EB26733E2D-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--8774B0E36D5E4E0798C704EB26733E2D--></AD_COLUMN>
+
 <!--877E2F50EE6CF24BE040007F01006114--><AD_COLUMN>
 <!--877E2F50EE6CF24BE040007F01006114-->  <AD_COLUMN_ID><![CDATA[877E2F50EE6CF24BE040007F01006114]]></AD_COLUMN_ID>
 <!--877E2F50EE6CF24BE040007F01006114-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -300266,6 +300334,40 @@
 <!--B059926E49A94F68963E064C270F5C33-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
 <!--B059926E49A94F68963E064C270F5C33--></AD_COLUMN>
 
+<!--B07134E43C344FCFA660CA26936B144B--><AD_COLUMN>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_COLUMN_ID><![CDATA[B07134E43C344FCFA660CA26936B144B]]></AD_COLUMN_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--B07134E43C344FCFA660CA26936B144B-->  <NAME><![CDATA[Triggered by Group Execution]]></NAME>
+<!--B07134E43C344FCFA660CA26936B144B-->  <COLUMNNAME><![CDATA[AD_Process_Run_Group_ID]]></COLUMNNAME>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_TABLE_ID><![CDATA[7F900CBEF00C45D2833F897E12BAE86E]]></AD_TABLE_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_REFERENCE_ID><![CDATA[80B1630792EA46F298A3FBF81E77EF9C]]></AD_REFERENCE_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_REFERENCE_VALUE_ID><![CDATA[177376BB849C4F718AB5E66CDB81F34E]]></AD_REFERENCE_VALUE_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <FIELDLENGTH><![CDATA[32]]></FIELDLENGTH>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISKEY><![CDATA[N]]></ISKEY>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISPARENT><![CDATA[N]]></ISPARENT>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISMANDATORY><![CDATA[N]]></ISMANDATORY>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISUPDATEABLE><![CDATA[Y]]></ISUPDATEABLE>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISIDENTIFIER><![CDATA[N]]></ISIDENTIFIER>
+<!--B07134E43C344FCFA660CA26936B144B-->  <SEQNO><![CDATA[240]]></SEQNO>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISTRANSLATED><![CDATA[N]]></ISTRANSLATED>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISSELECTIONCOLUMN><![CDATA[N]]></ISSELECTIONCOLUMN>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_ELEMENT_ID><![CDATA[692D5AFB705C4C3394E1D3AB309BDF5F]]></AD_ELEMENT_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISSESSIONATTR><![CDATA[N]]></ISSESSIONATTR>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISSECONDARYKEY><![CDATA[N]]></ISSECONDARYKEY>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISDESENCRYPTABLE><![CDATA[N]]></ISDESENCRYPTABLE>
+<!--B07134E43C344FCFA660CA26936B144B-->  <DEVELOPMENTSTATUS><![CDATA[RE]]></DEVELOPMENTSTATUS>
+<!--B07134E43C344FCFA660CA26936B144B-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--B07134E43C344FCFA660CA26936B144B-->  <POSITION><![CDATA[22]]></POSITION>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISTRANSIENT><![CDATA[N]]></ISTRANSIENT>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISAUTOSAVE><![CDATA[Y]]></ISAUTOSAVE>
+<!--B07134E43C344FCFA660CA26936B144B-->  <VALIDATEONNEW><![CDATA[Y]]></VALIDATEONNEW>
+<!--B07134E43C344FCFA660CA26936B144B-->  <IMAGESIZEVALUESACTION><![CDATA[N]]></IMAGESIZEVALUESACTION>
+<!--B07134E43C344FCFA660CA26936B144B-->  <ISUSEDSEQUENCE><![CDATA[N]]></ISUSEDSEQUENCE>
+<!--B07134E43C344FCFA660CA26936B144B--></AD_COLUMN>
+
 <!--B0718076FC0140809F31330F12ED1A49--><AD_COLUMN>
 <!--B0718076FC0140809F31330F12ED1A49-->  <AD_COLUMN_ID><![CDATA[B0718076FC0140809F31330F12ED1A49]]></AD_COLUMN_ID>
 <!--B0718076FC0140809F31330F12ED1A49-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_ELEMENT.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_ELEMENT.xml	Tue May 27 10:11:02 2014 +0200
@@ -25272,6 +25272,18 @@
 <!--687290BF756545829E283A6AF2CC2576-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--687290BF756545829E283A6AF2CC2576--></AD_ELEMENT>
 
+<!--692D5AFB705C4C3394E1D3AB309BDF5F--><AD_ELEMENT>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <AD_ELEMENT_ID><![CDATA[692D5AFB705C4C3394E1D3AB309BDF5F]]></AD_ELEMENT_ID>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <COLUMNNAME><![CDATA[AD_Process_Run_Group_ID]]></COLUMNNAME>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <NAME><![CDATA[Triggered by Group Execution]]></NAME>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <PRINTNAME><![CDATA[Triggered by Group Execution]]></PRINTNAME>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--692D5AFB705C4C3394E1D3AB309BDF5F--></AD_ELEMENT>
+
 <!--69C0AB4BC5474357B8119A12E75FBBA9--><AD_ELEMENT>
 <!--69C0AB4BC5474357B8119A12E75FBBA9-->  <AD_ELEMENT_ID><![CDATA[69C0AB4BC5474357B8119A12E75FBBA9]]></AD_ELEMENT_ID>
 <!--69C0AB4BC5474357B8119A12E75FBBA9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -28685,6 +28697,18 @@
 <!--9397E02890444B43E040007F0100749D-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
 <!--9397E02890444B43E040007F0100749D--></AD_ELEMENT>
 
+<!--9438EBF8347047E2B34A9861FECB2BAF--><AD_ELEMENT>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <AD_ELEMENT_ID><![CDATA[9438EBF8347047E2B34A9861FECB2BAF]]></AD_ELEMENT_ID>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <COLUMNNAME><![CDATA[AD_Process_Request_Group_ID]]></COLUMNNAME>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <NAME><![CDATA[Triggered by Group]]></NAME>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <PRINTNAME><![CDATA[Triggered by Group]]></PRINTNAME>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--9438EBF8347047E2B34A9861FECB2BAF-->  <ISGLOSSARY><![CDATA[N]]></ISGLOSSARY>
+<!--9438EBF8347047E2B34A9861FECB2BAF--></AD_ELEMENT>
+
 <!--949DE0539399B12AE040A8C0BD0626B6--><AD_ELEMENT>
 <!--949DE0539399B12AE040A8C0BD0626B6-->  <AD_ELEMENT_ID><![CDATA[949DE0539399B12AE040A8C0BD0626B6]]></AD_ELEMENT_ID>
 <!--949DE0539399B12AE040A8C0BD0626B6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_FIELD.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_FIELD.xml	Tue May 27 10:11:02 2014 +0200
@@ -234380,6 +234380,34 @@
 <!--8A48D5D6FBF0469EA8F5138CF37F0FC1-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--8A48D5D6FBF0469EA8F5138CF37F0FC1--></AD_FIELD>
 
+<!--8A49C62F98F54C6DAD538343D4C7E469--><AD_FIELD>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_FIELD_ID><![CDATA[8A49C62F98F54C6DAD538343D4C7E469]]></AD_FIELD_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <NAME><![CDATA[Triggered by Group]]></NAME>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_TAB_ID><![CDATA[CD573DF1E351485EA2B2DE487DCACA6F]]></AD_TAB_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_COLUMN_ID><![CDATA[725CA414537E4AE7A10C9B5632C92838]]></AD_COLUMN_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <DISPLAYLOGIC><![CDATA[@AD_Process_Request_Group_ID@!'']]></DISPLAYLOGIC>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <SEQNO><![CDATA[68]]></SEQNO>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <SHOWINRELATION><![CDATA[Y]]></SHOWINRELATION>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <GRID_SEQNO><![CDATA[68]]></GRID_SEQNO>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--8A49C62F98F54C6DAD538343D4C7E469-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--8A49C62F98F54C6DAD538343D4C7E469--></AD_FIELD>
+
 <!--8A556E6A2C0D43AA82047A898D4F31C2--><AD_FIELD>
 <!--8A556E6A2C0D43AA82047A898D4F31C2-->  <AD_FIELD_ID><![CDATA[8A556E6A2C0D43AA82047A898D4F31C2]]></AD_FIELD_ID>
 <!--8A556E6A2C0D43AA82047A898D4F31C2-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -239717,6 +239745,33 @@
 <!--961051B0A580472A8D4FD7BB6F738EF6-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
 <!--961051B0A580472A8D4FD7BB6F738EF6--></AD_FIELD>
 
+<!--96227C396836463B985E30DD956AABC4--><AD_FIELD>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_FIELD_ID><![CDATA[96227C396836463B985E30DD956AABC4]]></AD_FIELD_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--96227C396836463B985E30DD956AABC4-->  <NAME><![CDATA[Triggered by Group Execution]]></NAME>
+<!--96227C396836463B985E30DD956AABC4-->  <ISCENTRALLYMAINTAINED><![CDATA[Y]]></ISCENTRALLYMAINTAINED>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_TAB_ID><![CDATA[8E5972CF3664486D9D887BDEDA88627D]]></AD_TAB_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_COLUMN_ID><![CDATA[B07134E43C344FCFA660CA26936B144B]]></AD_COLUMN_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <IGNOREINWAD><![CDATA[N]]></IGNOREINWAD>
+<!--96227C396836463B985E30DD956AABC4-->  <ISDISPLAYED><![CDATA[Y]]></ISDISPLAYED>
+<!--96227C396836463B985E30DD956AABC4-->  <DISPLAYLOGIC><![CDATA[@AD_Process_Run_Group_ID@!'']]></DISPLAYLOGIC>
+<!--96227C396836463B985E30DD956AABC4-->  <DISPLAYLENGTH><![CDATA[32]]></DISPLAYLENGTH>
+<!--96227C396836463B985E30DD956AABC4-->  <ISREADONLY><![CDATA[Y]]></ISREADONLY>
+<!--96227C396836463B985E30DD956AABC4-->  <SEQNO><![CDATA[130]]></SEQNO>
+<!--96227C396836463B985E30DD956AABC4-->  <ISSAMELINE><![CDATA[N]]></ISSAMELINE>
+<!--96227C396836463B985E30DD956AABC4-->  <ISFIELDONLY><![CDATA[N]]></ISFIELDONLY>
+<!--96227C396836463B985E30DD956AABC4-->  <ISENCRYPTED><![CDATA[N]]></ISENCRYPTED>
+<!--96227C396836463B985E30DD956AABC4-->  <SHOWINRELATION><![CDATA[N]]></SHOWINRELATION>
+<!--96227C396836463B985E30DD956AABC4-->  <ISFIRSTFOCUSEDFIELD><![CDATA[N]]></ISFIRSTFOCUSEDFIELD>
+<!--96227C396836463B985E30DD956AABC4-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--96227C396836463B985E30DD956AABC4-->  <STARTINODDCOLUMN><![CDATA[N]]></STARTINODDCOLUMN>
+<!--96227C396836463B985E30DD956AABC4-->  <STARTNEWLINE><![CDATA[N]]></STARTNEWLINE>
+<!--96227C396836463B985E30DD956AABC4-->  <ISSHOWNINSTATUSBAR><![CDATA[N]]></ISSHOWNINSTATUSBAR>
+<!--96227C396836463B985E30DD956AABC4-->  <EM_OBUIAPP_SHOWSUMMARY><![CDATA[N]]></EM_OBUIAPP_SHOWSUMMARY>
+<!--96227C396836463B985E30DD956AABC4--></AD_FIELD>
+
 <!--9637A9D187E846349B2F844A18965898--><AD_FIELD>
 <!--9637A9D187E846349B2F844A18965898-->  <AD_FIELD_ID><![CDATA[9637A9D187E846349B2F844A18965898]]></AD_FIELD_ID>
 <!--9637A9D187E846349B2F844A18965898-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_REFERENCE.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_REFERENCE.xml	Tue May 27 10:11:02 2014 +0200
@@ -4335,6 +4335,18 @@
 <!--1722C8B5D1BC4B349332167C3E3A4561-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--1722C8B5D1BC4B349332167C3E3A4561--></AD_REFERENCE>
 
+<!--177376BB849C4F718AB5E66CDB81F34E--><AD_REFERENCE>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <AD_REFERENCE_ID><![CDATA[177376BB849C4F718AB5E66CDB81F34E]]></AD_REFERENCE_ID>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <NAME><![CDATA[Process Run]]></NAME>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <PARENTREFERENCE_ID><![CDATA[80B1630792EA46F298A3FBF81E77EF9C]]></PARENTREFERENCE_ID>
+<!--177376BB849C4F718AB5E66CDB81F34E-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--177376BB849C4F718AB5E66CDB81F34E--></AD_REFERENCE>
+
 <!--180774E575694F81B753B3DD46316E0E--><AD_REFERENCE>
 <!--180774E575694F81B753B3DD46316E0E-->  <AD_REFERENCE_ID><![CDATA[180774E575694F81B753B3DD46316E0E]]></AD_REFERENCE_ID>
 <!--180774E575694F81B753B3DD46316E0E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -4385,6 +4397,18 @@
 <!--1CC9902786384893A551465428468C2A-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
 <!--1CC9902786384893A551465428468C2A--></AD_REFERENCE>
 
+<!--1D302425F6124D3DB90D89178223D7DB--><AD_REFERENCE>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <AD_REFERENCE_ID><![CDATA[1D302425F6124D3DB90D89178223D7DB]]></AD_REFERENCE_ID>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <NAME><![CDATA[Process Request]]></NAME>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <ISBASEREFERENCE><![CDATA[N]]></ISBASEREFERENCE>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <PARENTREFERENCE_ID><![CDATA[80B1630792EA46F298A3FBF81E77EF9C]]></PARENTREFERENCE_ID>
+<!--1D302425F6124D3DB90D89178223D7DB-->  <ISVALUEDISPLAYED><![CDATA[N]]></ISVALUEDISPLAYED>
+<!--1D302425F6124D3DB90D89178223D7DB--></AD_REFERENCE>
+
 <!--1DBAAD6ABF2E4FE7A4654DDE387B89C9--><AD_REFERENCE>
 <!--1DBAAD6ABF2E4FE7A4654DDE387B89C9-->  <AD_REFERENCE_ID><![CDATA[1DBAAD6ABF2E4FE7A4654DDE387B89C9]]></AD_REFERENCE_ID>
 <!--1DBAAD6ABF2E4FE7A4654DDE387B89C9-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src-db/database/sourcedata/AD_TABLE.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_TABLE.xml	Tue May 27 10:11:02 2014 +0200
@@ -10579,6 +10579,7 @@
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <CLASSNAME><![CDATA[ProcessExecution]]></CLASSNAME>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISVIEW><![CDATA[Y]]></ISVIEW>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ACCESSLEVEL><![CDATA[6]]></ACCESSLEVEL>
+<!--7F900CBEF00C45D2833F897E12BAE86E-->  <AD_WINDOW_ID><![CDATA[EF3E837705944F4DBF398D683D36ACE0]]></AD_WINDOW_ID>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISSECURITYENABLED><![CDATA[N]]></ISSECURITYENABLED>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISDELETEABLE><![CDATA[Y]]></ISDELETEABLE>
 <!--7F900CBEF00C45D2833F897E12BAE86E-->  <ISHIGHVOLUME><![CDATA[N]]></ISHIGHVOLUME>
@@ -10678,6 +10679,7 @@
 <!--861F0EA985C7422080911D45FB53F4F2-->  <CLASSNAME><![CDATA[ProcessGroup]]></CLASSNAME>
 <!--861F0EA985C7422080911D45FB53F4F2-->  <ISVIEW><![CDATA[N]]></ISVIEW>
 <!--861F0EA985C7422080911D45FB53F4F2-->  <ACCESSLEVEL><![CDATA[7]]></ACCESSLEVEL>
+<!--861F0EA985C7422080911D45FB53F4F2-->  <AD_WINDOW_ID><![CDATA[C846A9EFF5D741A693029D516432BF6C]]></AD_WINDOW_ID>
 <!--861F0EA985C7422080911D45FB53F4F2-->  <ISSECURITYENABLED><![CDATA[N]]></ISSECURITYENABLED>
 <!--861F0EA985C7422080911D45FB53F4F2-->  <ISDELETEABLE><![CDATA[Y]]></ISDELETEABLE>
 <!--861F0EA985C7422080911D45FB53F4F2-->  <ISHIGHVOLUME><![CDATA[N]]></ISHIGHVOLUME>
--- a/src-db/database/sourcedata/AD_VAL_RULE.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/AD_VAL_RULE.xml	Tue May 27 10:11:02 2014 +0200
@@ -826,7 +826,7 @@
 <!--800004-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--800004-->  <NAME><![CDATA[AD_Process isBackground]]></NAME>
 <!--800004-->  <TYPE><![CDATA[S]]></TYPE>
-<!--800004-->  <CODE><![CDATA[AD_Process.IsBackground='Y']]></CODE>
+<!--800004-->  <CODE><![CDATA[AD_Process.IsBackground='Y' AND AD_Process.AD_Process_ID <> '5BD4D2B3313E4C708F0AE29095AF16AD']]></CODE>
 <!--800004-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
 <!--800004--></AD_VAL_RULE>
 
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Wed May 21 20:09:59 2014 +0200
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR.xml	Tue May 27 10:11:02 2014 +0200
@@ -165,6 +165,21 @@
 <!--32CFC9EB6DD04FACA7452C20C39116F0-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
 <!--32CFC9EB6DD04FACA7452C20C39116F0--></OBUISEL_SELECTOR>
 
+<!--3E93B5BA717D4596BA41B843AFFB903C--><OBUISEL_SELECTOR>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <OBUISEL_SELECTOR_ID><![CDATA[3E93B5BA717D4596BA41B843AFFB903C]]></OBUISEL_SELECTOR_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <NAME><![CDATA[Process Run]]></NAME>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <AD_REFERENCE_ID><![CDATA[177376BB849C4F718AB5E66CDB81F34E]]></AD_REFERENCE_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <AD_TABLE_ID><![CDATA[7F900CBEF00C45D2833F897E12BAE86E]]></AD_TABLE_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <OBCLKER_TEMPLATE_ID><![CDATA[C1FD42039C804705B8E5012E4553433C]]></OBCLKER_TEMPLATE_ID>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--3E93B5BA717D4596BA41B843AFFB903C-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--3E93B5BA717D4596BA41B843AFFB903C--></OBUISEL_SELECTOR>
+
 <!--3E9E206575F94F579BAE65C1C929E3E0--><OBUISEL_SELECTOR>
 <!--3E9E206575F94F579BAE65C1C929E3E0-->  <OBUISEL_SELECTOR_ID><![CDATA[3E9E206575F94F579BAE65C1C929E3E0]]></OBUISEL_SELECTOR_ID>
 <!--3E9E206575F94F579BAE65C1C929E3E0-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
@@ -440,6 +455,21 @@
 <!--A085BAFF89C74D7696A877C697DF350F-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
 <!--A085BAFF89C74D7696A877C697DF350F--></OBUISEL_SELECTOR>
 
+<!--A25A4A49D65D4460BBDC38EF78F28C09--><OBUISEL_SELECTOR>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <OBUISEL_SELECTOR_ID><![CDATA[A25A4A49D65D4460BBDC38EF78F28C09]]></OBUISEL_SELECTOR_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <AD_MODULE_ID><![CDATA[0]]></AD_MODULE_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <NAME><![CDATA[Process Request]]></NAME>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <AD_REFERENCE_ID><![CDATA[1D302425F6124D3DB90D89178223D7DB]]></AD_REFERENCE_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <AD_TABLE_ID><![CDATA[82D4EDCF39AE44FB9B24E95A1B18B21C]]></AD_TABLE_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <OBCLKER_TEMPLATE_ID><![CDATA[C1FD42039C804705B8E5012E4553433C]]></OBCLKER_TEMPLATE_ID>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <SUGGESTIONTEXTMATCHSTYLE><![CDATA[startsWith]]></SUGGESTIONTEXTMATCHSTYLE>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <POPUPTEXTMATCHSTYLE><![CDATA[startsWith]]></POPUPTEXTMATCHSTYLE>
+<!--A25A4A49D65D4460BBDC38EF78F28C09-->  <CUSTOM_QUERY><![CDATA[N]]></CUSTOM_QUERY>
+<!--A25A4A49D65D4460BBDC38EF78F28C09--></OBUISEL_SELECTOR>
+
 <!--A35B6EC33A2243018915908AEB1B3F5E--><OBUISEL_SELECTOR>
 <!--A35B6EC33A2243018915908AEB1B3F5E-->  <OBUISEL_SELECTOR_ID><![CDATA[A35B6EC33A2243018915908AEB1B3F5E]]></OBUISEL_SELECTOR_ID>
 <!--A35B6EC33A2243018915908AEB1B3F5E-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/src/org/openbravo/scheduling/GroupInfo.java	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/GroupInfo.java	Tue May 27 10:11:02 2014 +0200
@@ -1,5 +1,7 @@
 package org.openbravo.scheduling;
 
+import java.sql.Timestamp;
+import java.util.Date;
 import java.util.List;
 
 import javax.servlet.ServletException;
@@ -10,52 +12,111 @@
 import org.openbravo.model.ad.ui.ProcessGroup;
 import org.openbravo.model.ad.ui.ProcessGroupList;
 import org.openbravo.model.ad.ui.ProcessRequest;
+import org.openbravo.model.ad.ui.ProcessRun;
 import org.openbravo.scheduling.ProcessBundle.Channel;
 import org.quartz.SchedulerException;
 
 public class GroupInfo {
 
+  /**
+   * String constant id for the Process Group process.
+   */
+  public static final String processGroupId = "5BD4D2B3313E4C708F0AE29095AF16AD";
+
+  public static final String END = "END";
+
   private org.openbravo.model.ad.ui.ProcessGroup group;
 
   private ProcessRequest request;
 
+  private ProcessRun processRun;
+
   private List<ProcessGroupList> groupList;
 
+  private int actualposition = 0;
+
   private VariablesSecureApp vars;
 
-  private int actualposition = 0;
+  private ConnectionProvider conn;
 
-  private ConnectionProvider conn;
+  private StringBuilder groupLog;
+
+  private Date startGroupTime;
+
+  private Date endGroupTime;
 
   Logger log4j = Logger.getLogger(GroupInfo.class);
 
-  public GroupInfo(ProcessGroup group, ProcessRequest request, List<ProcessGroupList> groupList,
-      VariablesSecureApp vars, ConnectionProvider conn) {
+  public GroupInfo(ProcessGroup group, ProcessRequest request, ProcessRun processRun,
+      List<ProcessGroupList> groupList, VariablesSecureApp vars, ConnectionProvider conn) {
     super();
     this.group = group;
     this.request = request;
     this.groupList = groupList;
     this.vars = vars;
     this.conn = conn;
+    this.processRun = processRun;
   }
 
   public ProcessRequest getRequest() {
     return request;
   }
 
+  public ProcessRun getProcessRun() {
+    return processRun;
+  }
+
+  public StringBuilder getLogger() {
+    return groupLog;
+  }
+
+  public String getLog() {
+    String groupLogMessage = this.groupLog.toString();
+    groupLogMessage = groupLogMessage + "\n END Process Group: " + group.getName();
+    return groupLogMessage;
+  }
+
   public String executeNextProcess() throws SchedulerException, ServletException {
+    if (actualposition == 0) {
+      groupLog = new StringBuilder();
+      groupLog.append(now() + "Process Group: " + group.getName() + " started. \n\n");
+      startGroupTime = new Date();
+    }
     if (actualposition < groupList.size()) {
-      String actualProcessId = groupList.get(actualposition).getProcess().getId();
+      ProcessGroupList processList = groupList.get(actualposition);
+      String actualProcessId = processList.getProcess().getId();
       actualposition++;
+      groupLog.append(now() + processList.getSequenceNumber() + " Process : "
+          + processList.getProcess().getName() + " started succesfully. \n");
       final ProcessBundle firstProcessBundle = new ProcessBundle(actualProcessId, vars,
           Channel.SCHEDULED, request.getClient().getId(), request.getOrganization().getId(),
           request.isSecurityBasedOnRole(), this).init(conn);
       OBScheduler.getInstance().schedule(firstProcessBundle);
-      return "OK";
+      return actualProcessId;
     } else {
-      return "END";
+      endGroupTime = new Date();
+      return END;
     }
-
   }
 
+  public void logProcess(String result) {
+    String resultMessage = "";
+    ProcessGroupList processList = groupList.get(actualposition - 1);
+    if (result.equals(Process.SUCCESS)) {
+      resultMessage = " processed successfully.";
+    } else if (result.equals(Process.ERROR)) {
+      resultMessage = " FAILED!!!.";
+    }
+    groupLog.append(now() + processList.getSequenceNumber() + " Process : "
+        + processList.getProcess().getName() + resultMessage + "\n");
+    groupLog.append("-------- \n");
+  }
+
+  public long getDuration() {
+    return endGroupTime.getTime() - startGroupTime.getTime();
+  }
+
+  private String now() {
+    return new Timestamp(System.currentTimeMillis()).toString() + " - ";
+  }
 }
--- a/src/org/openbravo/scheduling/OBScheduler.java	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/OBScheduler.java	Tue May 27 10:11:02 2014 +0200
@@ -366,7 +366,7 @@
       TriggerData data = new TriggerData();
 
       if (bundle.isGroup()) {
-        data = TriggerData.selectGroup(conn, name, ProcessBundle.processGroupId);
+        data = TriggerData.selectGroup(conn, name, GroupInfo.processGroupId);
       } else {
         data = TriggerData.select(conn, name);
       }
--- a/src/org/openbravo/scheduling/ProcessBundle.java	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/ProcessBundle.java	Tue May 27 10:11:02 2014 +0200
@@ -66,15 +66,12 @@
    */
   public static final String CONFIG_PARAMS = "process.param.configParams";
 
-  /**
-   * String constant id for the Process Group process.
-   */
-  public static final String processGroupId = "5BD4D2B3313E4C708F0AE29095AF16AD";
-
   private String processId;
 
   private String processRequestId;
 
+  private String processRunId;
+
   private boolean closeConnection;
 
   private String impl;
@@ -190,6 +187,15 @@
   }
 
   /**
+   * Returns the id of the process run.
+   * 
+   * @return Returns the id of the process run
+   */
+  public String getProcessRunId() {
+    return this.processRunId;
+  }
+
+  /**
    * Returns the unique id for the implementation of this process.
    * 
    * @return the process' id
@@ -253,7 +259,7 @@
    * @return true if the process is a group
    */
   public boolean isGroup() {
-    if (this.processId.equals(processGroupId)) {
+    if (this.processId.equals(GroupInfo.processGroupId)) {
       return true;
     } else {
       return false;
@@ -269,6 +275,10 @@
     return this.groupInfo;
   }
 
+  public void setProcessRunId(String strProcessRunId) {
+    this.processRunId = strProcessRunId;
+  }
+
   public void setParams(Map<String, Object> params) {
     this.params = params;
   }
@@ -424,7 +434,7 @@
     String processId = "";
 
     if (data.isgroup.equals("Y")) {
-      processId = processGroupId;
+      processId = GroupInfo.processGroupId;
     } else {
       processId = data.processId;
     }
--- a/src/org/openbravo/scheduling/ProcessGroup.java	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/ProcessGroup.java	Tue May 27 10:11:02 2014 +0200
@@ -10,6 +10,7 @@
 import org.openbravo.database.ConnectionProvider;
 import org.openbravo.model.ad.ui.ProcessGroupList;
 import org.openbravo.model.ad.ui.ProcessRequest;
+import org.openbravo.model.ad.ui.ProcessRun;
 import org.openbravo.service.db.DalBaseProcess;
 
 public class ProcessGroup extends DalBaseProcess {
@@ -22,6 +23,8 @@
     final VariablesSecureApp vars = bundle.getContext().toVars();
     final ProcessRequest processRequest = OBDal.getInstance().get(ProcessRequest.class,
         bundle.getProcessRequestId());
+    final ProcessRun processRun = OBDal.getInstance().get(ProcessRun.class,
+        bundle.getProcessRunId());
     final org.openbravo.model.ad.ui.ProcessGroup group = processRequest.getProcessGroup();
     log.logln("Process Group: " + group.getName());
 
@@ -42,7 +45,8 @@
         Hibernate.initialize(prolist.getProcess());
       }
 
-      GroupInfo groupInfo = new GroupInfo(group, processRequest, processList, vars, conn);
+      GroupInfo groupInfo = new GroupInfo(group, processRequest, processRun, processList, vars,
+          conn);
       groupInfo.executeNextProcess();
 
     }
--- a/src/org/openbravo/scheduling/ProcessMonitor.java	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/ProcessMonitor.java	Tue May 27 10:11:02 2014 +0200
@@ -127,6 +127,7 @@
       ProcessRunData.insert(getConnection(), ctx.getOrganization(), ctx.getClient(), ctx.getUser(),
           ctx.getUser(), executionId, PROCESSING, null, null, jec.getJobDetail().getName());
 
+      bundle.setProcessRunId(executionId);
       jec.put(EXECUTION_ID, executionId);
       jec.put(ProcessBundle.CONNECTION, getConnection());
       jec.put(ProcessBundle.CONFIG_PARAMS, getConfigParameters());
@@ -163,7 +164,14 @@
 
       // Manage Group
       if (bundle.getGroupInfo() != null) {
-        bundle.getGroupInfo().executeNextProcess();
+        GroupInfo groupInfo = bundle.getGroupInfo();
+        groupInfo.logProcess(jee == null ? SUCCESS : ERROR);
+        ProcessRunData.updateGroup(getConnection(), groupInfo.getProcessRun().getId(), executionId);
+        String result = groupInfo.executeNextProcess();
+        if (result.equals(GroupInfo.END)) {
+          ProcessRunData.update(getConnection(), ctx.getUser(), SUCCESS, getDuration(groupInfo
+              .getDuration()), groupInfo.getLog(), groupInfo.getProcessRun().getId());
+        }
       }
 
     } catch (Exception e) {
--- a/src/org/openbravo/scheduling/ProcessRun_data.xsql	Wed May 21 20:09:59 2014 +0200
+++ b/src/org/openbravo/scheduling/ProcessRun_data.xsql	Tue May 27 10:11:02 2014 +0200
@@ -57,4 +57,14 @@
     <Parameter name="log"/>
     <Parameter name="id"/>
    </SqlMethod>
+   <SqlMethod name="updateGroup" type="preparedStatement" return="rowcount">
+      <SqlMethodComment></SqlMethodComment>
+      <Sql><![CDATA[
+        UPDATE AD_Process_Run
+        SET AD_Process_Run_Group_ID = ?
+        WHERE AD_Process_Run_ID = ?
+    ]]></Sql>
+    <Parameter name="group"/>
+    <Parameter name="id"/>
+   </SqlMethod>
 </SqlClass>
\ No newline at end of file