ERP 2.50:Developers Guide/Database Model/org.openbravo.model.ad.ui/AD Process Request
AD_Process_Request
Create a new Process Request to be executed immediately, at a later date or on a recurring basis.
- Name:ProcessRequest
- Classname:ProcessRequest
This table contains the following columns:
Name | Nullable | Data Type | Description |
AD_Process_Request_ID | N | VARCHAR2(32) | Request to run a Process. |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
Isactive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
Createdby | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
Updatedby | N | VARCHAR2(32) | User who updated this records |
AD_Process_ID | N | VARCHAR2(32) | A series of actions carried out in sequential order. |
Description | Y | VARCHAR2(255) | A space to write additional related information. |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
Isrolesecurity | Y | CHAR(1) | A flag indicating whether access to an item should be based on a user's role within the system. |
OB_Context | Y | CLOB(4000) | The context in which a Process Request was scheduled or executed. |
Status | Y | VARCHAR2(60) | A defined state or position of a payment. |
Next_Fire_Time | Y | DATE | The next time a process will execute. |
Previous_Fire_Time | Y | DATE | The last time this Process Request was executed. |
Scheduled_Finish | Y | DATE | The date and time a Process Request is due to finish (repeating). |
Channel | Y | VARCHAR2(20) | The method by which this Process request was executed/scheduled. |
Timing_Option | Y | VARCHAR2(60) | When to run a Process Request - either immediately, at a later date or on a recurring basis. |
Start_Time | Y | DATE | The time at which an item is due to, or did, start. |
Start_Date | Y | DATE | The date on which an item is due to start. |
Frequency | Y | VARCHAR2(60) | The number of times something occurs during a specified time period. |
Secondly_Interval | Y | NUMBER(10, 0) | Interval in hours between an event (such as a process execution). |
Minutely_Interval | Y | NUMBER(10, 0) | Interval in minutes between an event (such as a process execution). |
Hourly_Interval | Y | NUMBER(10, 0) | Interval in hours between an event (such as a process execution). |
Daily_Interval | Y | NUMBER(10, 0) | The daily interval between executions of a process. |
Secondly_Repetitions | Y | NUMBER(10, 0) | The number of times this element will repeat. |
Minutely_Repetitions | Y | NUMBER(10, 0) | The number of times this element will repeat. |
Hourly_Repetitions | Y | NUMBER(10, 0) | The number of times this element will repeat. |
DAY_Mon | Y | CHAR(1) | The day of the week Monday. |
DAY_Tue | Y | CHAR(1) | The day of the week Tuesday. |
DAY_Wed | Y | CHAR(1) | The day of the week Wednesday. |
DAY_Thu | Y | CHAR(1) | The day of the week Thursday. |
DAY_Fri | Y | CHAR(1) | The day of the week Friday. |
DAY_Sat | Y | CHAR(1) | The day of the week Saturday. |
DAY_Sun | Y | CHAR(1) | The day of the week Sunday. |
Monthly_Option | Y | VARCHAR2(60) | An option by which to schedule a Process in a monthly manner. |
Monthly_Specific_Day | Y | NUMBER | The specific date within each month. |
Monthly_Day_Of_Week | Y | VARCHAR2(60) | A day within a week. |
Finishes | Y | CHAR(1) | Specifiy that this item should finish. |
Finishes_Time | Y | DATE | The time that this item will finish. |
Finishes_Date | Y | DATE | The date that this item will finish. |
Daily_Option | Y | VARCHAR2(60) | Option to run a Process Request on a daily basis. |
Cron | Y | VARCHAR2(60) | A Quartz cron expression to schedule this Process Request. |
AD_Process_Set_ID | Y | VARCHAR2(32) | Unique identifier for a Process Set (a collection of Process Requests). |
Schedule | Y | CHAR(1) | Schedule a Process to be executed, either immediately, at a later date or on a recurring basis. |
Reschedule | Y | CHAR(1) | Reschedule a previoulsy (or currently) scheduled Process Request. |
Unschedule | Y | CHAR(1) | Unschedule the Process. |
Params | Y | VARCHAR2(4000) | null |
Other Info
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- AD_PROCESS_REQUEST_KEY
Columns
AD_Process_Request_ID
Request to run a Process, either directly or scheduled for a later date.
- Physical column name: AD_Process_Request_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_ORG_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Validation Rule AD_Org Security validation: Organizations of the Client with user acces rights. 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'))
Active
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.
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was 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)
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 buisiness object (is Parent)
Foreign key column to AD_Process table, (column: AD_Process_ID)
Validation Rule AD_Process isBackground: null. With the following code:
AD_Process.IsBackground='Y'
Description
A description is limited to 255 characters.
- Physical column name: Description
- Property Name: description
- Reference: String
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
Foreign key column to AD_User table, (column: AD_User_ID)
Security Based on Role
A flag indicating whether access to an item should be based on a user's role within the system.
- Physical column name: Isrolesecurity
- Property Name: securityBasedOnRole
- Reference: YesNo
- Default value: Y
Openbravo Context
The context in which a Process Request was scheduled or executed. The context contains information such as user, client, organization, language, date format etc.
- Physical column name: OB_Context
- Property Name: openbravoContext
- Reference: Text
Status
Current status of a debt/payment.
- Physical column name: Status
- Property Name: status
- Reference: List
List values: Process Status
The allowed values for this list are:
- COM (Complete): The process is complete (status of the request).
- ERR (Error): A process that has been executed but failed due to an error.
- 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.
- SCH (Scheduled): A process that has been scheduled to run but has not yet started.
- SUC (Success): A process that has completed successfully.
- UNS (Unscheduled): The process has been unscheduled (status of Process Request).
Next Execution
The next time a process will execute.
- Physical column name: Next_Fire_Time
- Property Name: nextExecution
- Reference: DateTime
Previous Execution
The last time this Process Request was executed.
- Physical column name: Previous_Fire_Time
- Property Name: previousExecution
- Reference: DateTime
Finish
The date and time a Process Request is due to finish (repeating).
- Physical column name: Scheduled_Finish
- Property Name: finish
- Reference: DateTime
Channel
The method by which this Process request was executed/scheduled (Direct, Scheduled, Webservice)
- Physical column name: Channel
- Property Name: channel
- Reference: String
- Default value: Process Scheduler
- This column is part of the table's identifier
Timing
When to run a Process Request - either immediately, at a later date or on a recurring basis.
- Physical column name: Timing_Option
- Property Name: timing
- Reference: List
- Default value: I
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.
Start Time
The time at which an item is due to, or did, start.
- Physical column name: Start_Time
- Property Name: startTime
- Reference: Time
- Default value: @SQL=SELECT to_char(now(),'HH24:MI:SS') AS def FROM dual
Start Date
The date on which an item is due to start.
- Physical column name: Start_Date
- Property Name: startDate
- Reference: Date
- Default value: @#Date@
Frequency
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.
- Physical column name: Frequency
- Property Name: frequency
- Reference: List
- Default value: 4
List values: Process Frequency
The allowed values for this list are:
- 1 (01 - Every n seconds): Process trigger will execute every n seconds.
- 2 (02 - Every n minutes): Process trigger will execute every n minutes.
- 3 (03 - Hourly): Process trigger will execute every n hours.
- 4 (04 - Daily): Process trigger will execute on a daily basis.
- 5 (05 - Weekly): Process trigger will execute on a weekly basis.
- 6 (06 - Monthly): Process trigger will execute on a monthly basis.
- 7 (07 - Cron expression)
Interval in Seconds
Interval in hours between an event (such as a process execution).
- Physical column name: Secondly_Interval
- Property Name: intervalInSeconds
- Reference: Integer
Interval in Minutes
Interval in minutes between an event (such as a process execution).
- Physical column name: Minutely_Interval
- Property Name: intervalInMinutes
- Reference: Integer
Hourly Interval
Interval in hours between an event (such as a process execution).
- Physical column name: Hourly_Interval
- Property Name: hourlyInterval
- Reference: Integer
Daily_Interval
The daily interval between executions of a process.
- Physical column name: Daily_Interval
- Property Name: dailyInterval
- Reference: Integer
- Default value: 1
Repetitions
The number of times this element will repeat.
- Physical column name: Secondly_Repetitions
- Property Name: repetitions
- Reference: Integer
Num Repetitions
The number of times this element will repeat.
- Physical column name: Minutely_Repetitions
- Property Name: numRepetitions
- Reference: Integer
Number of Repetitions
The number of times this element will repeat.
- Physical column name: Hourly_Repetitions
- Property Name: numberOfRepetitions
- Reference: Integer
Monday
The day of the week Monday.
- Physical column name: DAY_Mon
- Property Name: monday
- Reference: YesNo
Tuesday
The day of the week Tuesday.
- Physical column name: DAY_Tue
- Property Name: tuesday
- Reference: YesNo
Wednesday
The day of the week Wednesday.
- Physical column name: DAY_Wed
- Property Name: wednesday
- Reference: YesNo
Thursday
The day of the week Thursday.
- Physical column name: DAY_Thu
- Property Name: thursday
- Reference: YesNo
Friday
The day of the week Friday.
- Physical column name: DAY_Fri
- Property Name: friday
- Reference: YesNo
Saturday
The day of the week Saturday.
- Physical column name: DAY_Sat
- Property Name: saturday
- Reference: YesNo
Sunday
The day of the week Sunday.
- Physical column name: DAY_Sun
- Property Name: sunday
- Reference: YesNo
Monthly Option
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.
- Physical column name: Monthly_Option
- Property Name: monthlyOption
- Reference: List
- Default value: S
List values: Process Month Option
The allowed values for this list are:
- 1 (01 - First): First specified weekday of the month.
- 2 (02 - Second): Second 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.
- S (06 - Specific Date): Specific day withina month to trigger a process.
Day in Month
The specific date within each month. For example, specifying 15 will signify the 15th of each month.
- Physical column name: Monthly_Specific_Day
- Property Name: dayInMonth
- Reference: Integer
Day of the Week
A day within a 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)
Finishes
Specifiy that this item should finish.
- Physical column name: Finishes
- Property Name: finishes
- Reference: YesNo
Finish Time
The time that this item will finish.
- Physical column name: Finishes_Time
- Property Name: finishTime
- Reference: Time
Finish Date
The date that this item will finish.
- Physical column name: Finishes_Date
- Property Name: finishDate
- Reference: Date
Daily Option
Option to run a Process Request on a daily basis.
- Physical column name: Daily_Option
- Property Name: dailyOption
- Reference: List
- Default value: N
List values: Process Daily Option
The allowed values for this list are:
- D (Weekdays): The days of the work week.
- E (Weekends): The days of the weekend.
- N (Every n days)
Cron Expression
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
- Physical column name: Cron
- Property Name: cronExpression
- Reference: String
AD_Process_Set_ID
Unique identifier for a Process Set (a collection of Process Requests).
- Physical column name: AD_Process_Set_ID
- Property Name: processSet
- Reference: String
Schedule Process
Schedule a Process to be executed, either immediately, at a later date or on a recurring basis.
- Physical column name: Schedule
- Property Name: scheduleProcess
- Reference: Button
Reschedule Process
Reschedule a previoulsy (or currently) scheduled Process Request.
- Physical column name: Reschedule
- Property Name: rescheduleProcess
- Reference: Button
Unschedule Process
Unschedule the Process.
- Physical column name: Unschedule
- Property Name: unscheduleProcess
- Reference: Button
Params
- Physical column name: Params
- Property Name: params
- Reference: Text
Related tables
Tables that link this table: