ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.ui/AD Process Request
AD_Process_Request
- Name:AD_Process_Request
- Classname:ProcessRequest
This table contains the following columns:
Name | Nullable | Data Type | Description
|
AD_Process_Request_ID | No | VARCHAR (32) | Request to run a Process, either directly or scheduled for a later date. |
AD_Process_Set_ID | Yes | VARCHAR (32) | Unique identifier for a Process Set (a collection of Process Requests). |
Isactive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
Channel | Yes | VARCHAR (20) | The method by which this Process request was executed/scheduled (Direct, Scheduled, Webservice) |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Cron | Yes | VARCHAR (60) | A Quartz cron expression to schedule this Process Request. More information on Quartz cron expression can be found at http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html and |
Daily_Option | Yes | VARCHAR (60) | Option to run a Process Request on a daily basis. |
Daily_Interval | Yes | DECIMAL (10,0) | The daily interval between executions of a process. |
Monthly_Specific_Day | Yes | DECIMAL | The specific date within each month. For example, specifying 15 will signify the 15th of each month. |
Monthly_Day_Of_Week | Yes | VARCHAR (60) | A day within a week. |
Description | Yes | VARCHAR (255) | A description is limited to 255 characters. |
Scheduled_Finish | Yes | TIMESTAMP (7) | The date and time a Process Request is due to finish (repeating). |
Finishes_Date | Yes | TIMESTAMP (7) | The date that this item will finish. |
Finishes_Time | Yes | TIMESTAMP (7) | The time that this item will finish. |
Finishes | Yes | CHAR (1) | Specifiy that this item should finish. |
Frequency | Yes | VARCHAR (60) | The frequency is used in conjunction with the frequency type in determining an event. Example: If the Frequency Type is Week and the Frequency is 2 - it is every two weeks. |
DAY_Fri | Yes | CHAR (1) | The day of the week Friday. |
Hourly_Interval | Yes | DECIMAL (10,0) | Interval in hours between an event (such as a process execution). |
Minutely_Interval | Yes | DECIMAL (10,0) | Interval in minutes between an event (such as a process execution). |
Secondly_Interval | Yes | DECIMAL (10,0) | Interval in hours between an event (such as a process execution). |
Isgroup | No | CHAR (1) | |
DAY_Mon | Yes | CHAR (1) | The day of the week Monday. |
Monthly_Option | Yes | VARCHAR (60) | An option by which to schedule a Process in a monthly manner. The option can be a specific date within each month, the last day of each month, or the Nth selected day within each month, such as the first Wednesday of each month. |
Next_Fire_Time | Yes | TIMESTAMP (7) | The next time a process will execute. |
Minutely_Repetitions | Yes | DECIMAL (10,0) | The number of times a process request will repeat after its first execution. Note that 10 repeats will give a total of 11 process executions. |
Hourly_Repetitions | Yes | DECIMAL (10,0) | The number of times a process request will repeat after its first execution. Note that 10 repeats will give a total of 11 process executions. |
OB_Context | Yes | CLOB | The context in which a Process Request was scheduled or executed. The context contains information such as user, client, organization, language, date format etc. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Params | Yes | VARCHAR (4000) | |
Previous_Fire_Time | Yes | TIMESTAMP (7) | The last time this Process Request was executed. |
AD_Process_ID | Yes | VARCHAR (32) | The Process field identifies a unique Process or Report in the system. |
AD_Process_Group_ID | Yes | VARCHAR (32) | Process Group to be executed in serials from the Process Request window |
Secondly_Repetitions | Yes | DECIMAL (10,0) | The number of times a process request will repeat after its first execution. Note that 10 repeats will give a total of 11 process executions. |
Reschedule | Yes | CHAR (1) | Reschedule a previoulsy (or currently) scheduled Process Request. |
DAY_Sat | Yes | CHAR (1) | The day of the week Saturday. |
Schedule | Yes | CHAR (1) | Schedule a Process to be executed, either immediately, at a later date or on a recurring basis. |
Isrolesecurity | Yes | CHAR (1) | A flag indicating whether access to an item should be based on a user's role within the system. |
Start_Date | Yes | TIMESTAMP (7) | The date on which an item is due to start. |
Start_Time | Yes | TIMESTAMP (7) | The time at which an item is due to, or did, start. |
Status | Yes | VARCHAR (60) | Current status of a debt/payment. |
DAY_Sun | Yes | CHAR (1) | The day of the week Sunday. |
DAY_Thu | Yes | CHAR (1) | The day of the week Thursday. |
Timing_Option | Yes | VARCHAR (60) | When to run a Process Request - either immediately, at a later date or on a recurring basis. |
AD_Process_Request_Group_ID | Yes | VARCHAR (32) | |
DAY_Tue | Yes | CHAR (1) | The day of the week Tuesday. |
Unschedule | Yes | CHAR (1) | Unschedule the Process. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
AD_User_ID | Yes | VARCHAR (32) | The User identifies a unique user in the system. This could be an internal user or a business partner contact |
DAY_Wed | Yes | CHAR (1) | The day of the week Wednesday. |
Columns
AD_Process_Request_ID
- Physical column name: AD_Process_Request_ID
- Property Name: id
- Reference: ID
AD_Process_Set_ID
- Physical column name: AD_Process_Set_ID
- Property Name: processSet
- Reference: String
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Channel
- Physical column name: Channel
- Property Name: channel
- Reference: String
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Cron Expression
- Physical column name: Cron
- Property Name: cronExpression
- Reference: String
Daily Option
- Physical column name: Daily_Option
- Property Name: dailyOption
- Reference: List
List values: Process Daily Option
The allowed values for this list are:
- N (Every n days)
- E (Weekends): The days of the weekend.
- D (Weekdays): The days of the work week.
Daily_Interval
- Physical column name: Daily_Interval
- Property Name: dailyInterval
- Reference: Integer
Day in Month
- Physical column name: Monthly_Specific_Day
- Property Name: dayInMonth
- Reference: Integer
Day of the Week
- Physical column name: Monthly_Day_Of_Week
- Property Name: dayOfTheWeek
- Reference: List
List values: Weekdays
The allowed values for this list are:
- 1 (Monday)
- 2 (Tuesday)
- 3 (Wednesday)
- 4 (Thursday)
- 5 (Friday)
- 6 (Saturday)
- 7 (Sunday)
Description
- Physical column name: Description
- Property Name: description
- Reference: String
Finish
- Physical column name: Scheduled_Finish
- Property Name: finish
- Reference: DateTime
Finish Date
- Physical column name: Finishes_Date
- Property Name: finishDate
- Reference: Date
Finish Time
- Physical column name: Finishes_Time
- Property Name: finishTime
- Reference: Time
Finishes
- Physical column name: Finishes
- Property Name: finishes
- Reference: YesNo
Frequency
- Physical column name: Frequency
- Property Name: frequency
- Reference: List
List values: Process Frequency
The allowed values for this list are:
- 7 (07 - Cron expression)
- 5 (05 - Weekly): Process trigger will execute on a weekly basis.
- 6 (06 - Monthly): Process trigger will execute on a monthly basis.
- 1 (01 - Every n seconds): Process trigger will execute every n seconds.
- 4 (04 - Daily): Process trigger will execute on a daily basis.
- 2 (02 - Every n minutes): Process trigger will execute every n minutes.
- 3 (03 - Hourly): Process trigger will execute every n hours.
Friday
- Physical column name: DAY_Fri
- Property Name: friday
- Reference: YesNo
Hourly Interval
- Physical column name: Hourly_Interval
- Property Name: hourlyInterval
- Reference: Integer
Interval in Minutes
- Physical column name: Minutely_Interval
- Property Name: intervalInMinutes
- Reference: Integer
Interval in Seconds
- Physical column name: Secondly_Interval
- Property Name: intervalInSeconds
- Reference: Integer
Isgroup
- Physical column name: Isgroup
- Property Name: isgroup
- Reference: YesNo
- Default value: N
Monday
- Physical column name: DAY_Mon
- Property Name: monday
- Reference: YesNo
Monthly Option
- Physical column name: Monthly_Option
- Property Name: monthlyOption
- Reference: List
List values: Process Month Option
The allowed values for this list are:
- 2 (02 - Second): Second specified weekday of the month.
- S (06 - Specific Date): Specific day withina month to trigger a process.
- 1 (01 - First): First specified weekday of the month.
- 3 (03 - Third): Third specified weekdday of the month.
- 4 (04 - Fourth): Fourth specified weekday of the month.
- L (05 - Last day of the month): Last specified weekday of the month.
Next Execution
- Physical column name: Next_Fire_Time
- Property Name: nextExecution
- Reference: DateTime
Num Repetitions
- Physical column name: Minutely_Repetitions
- Property Name: numRepetitions
- Reference: Integer
Number of Repetitions
- Physical column name: Hourly_Repetitions
- Property Name: numberOfRepetitions
- Reference: Integer
Openbravo Context
- Physical column name: OB_Context
- Property Name: openbravoContext
- Reference: Text
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org Security validation", with the following code
(@AD_Client_ID@='0' AND AD_Org.AD_Org_ID='0') OR (@AD_Client_ID@!='0' AND ((AD_Org.AD_Client_ID IN (@#User_Client@) AND AD_Org.AD_Org_ID IN (@#User_Org@)) OR AD_Org.AD_Org_ID='0' AND AD_Org.IsSummary='N'))
Params
- Physical column name: Params
- Property Name: params
- Reference: Text
Previous Execution
- Physical column name: Previous_Fire_Time
- Property Name: previousExecution
- Reference: DateTime
Process
- Physical column name: AD_Process_ID
- Property Name: process
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to AD_Process table, (column: AD_Process_ID)
It has a validation "AD_Process isBackground", with the following code
AD_Process.IsBackground='Y' AND AD_Process.AD_Process_ID <> '5BD4D2B3313E4C708F0AE29095AF16AD'
Process Group
- Physical column name: AD_Process_Group_ID
- Property Name: processGroup
- Reference: TableDir
- This column is part of the table's identifier
Foreign key column to AD_Process_Group table, (column: AD_Process_Group_ID)
Repetitions
- Physical column name: Secondly_Repetitions
- Property Name: repetitions
- Reference: Integer
Reschedule Process
- Physical column name: Reschedule
- Property Name: rescheduleProcess
- Reference: Button
Saturday
- Physical column name: DAY_Sat
- Property Name: saturday
- Reference: YesNo
Schedule Process
- Physical column name: Schedule
- Property Name: scheduleProcess
- Reference: Button
Security Based on Role
- Physical column name: Isrolesecurity
- Property Name: securityBasedOnRole
- Reference: YesNo
- Default value: Y
Start Date
- Physical column name: Start_Date
- Property Name: startDate
- Reference: Date
Start Time
- Physical column name: Start_Time
- Property Name: startTime
- Reference: Time
Status
- Physical column name: Status
- Property Name: status
- Reference: List
List values: Process Status
The allowed values for this list are:
- UNS (Unscheduled): The process has been unscheduled (status of Process Request).
- KIL (Killed by User)
- MIS (Misfired): The process missed to an execution (This could happen if you schedule a process to start in the past)
- PRC (Processing): A process that is currently executing.
- SYR (System Restart): A Process that was failed due to System Restart
- COM (Complete): The process is complete (status of the request).
- SCH (Scheduled): A process that has been scheduled to run but has not yet started.
- SUC (Success): A process that has completed successfully.
- ERR (Error): A process that has been executed but failed due to an error.
Sunday
- Physical column name: DAY_Sun
- Property Name: sunday
- Reference: YesNo
Thursday
- Physical column name: DAY_Thu
- Property Name: thursday
- Reference: YesNo
Timing
- Physical column name: Timing_Option
- Property Name: timing
- Reference: List
List values: Process Timing Option
The allowed values for this list are:
- I (Run Immediately): Run the Process immediately
- L (Run Later): Run the process at a later date and time.
- S (Schedule): Schedule the process to recur.
Triggered by Group
- Physical column name: AD_Process_Request_Group_ID
- Property Name: triggeredByGroup
- Reference: OBUISEL_SelectorAsLink Reference
Foreign key column to AD_Process_Request table, (column: AD_Process_Request_ID)
Tuesday
- Physical column name: DAY_Tue
- Property Name: tuesday
- Reference: YesNo
Unschedule Process
- Physical column name: Unschedule
- Property Name: unscheduleProcess
- Reference: Button
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: OBUISEL_Selector Reference
Foreign key column to AD_User table, (column: AD_User_ID)
Wednesday
- Physical column name: DAY_Wed
- Property Name: wednesday
- Reference: YesNo
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- AD_PROCESS_REQGROUP_IDX Not Unique. Columns:
- AD_PROCESS_REQUEST_GROUP_ID
Check Constraints
These are the check constraints for this table:
- AD_PROCESS_REQUEST_GROUP_CHK: ISGROUP = 'Y' AND AD_PROCESS_GROUP_ID IS NOT NULL OR ISGROUP = 'N' AND AD_PROCESS_GROUP_ID IS NULL
- AD_PROCESS_REQUEST_ISGROUP_CHK: ISGROUP IN ('Y', 'N')
- AD_PROCESS_REQUEST_PROCESS_CHK: AD_PROCESS_ID IS NOT NULL AND AD_PROCESS_GROUP_ID IS NULL OR AD_PROCESS_GROUP_ID IS NOT NULL AND AD_PROCESS_ID IS NULL
![]() | Back to org.openbravo.model.ad.ui |