ERP/2.50/Developers Guide/Database Model/org.openbravo.model.ad.process/AD PInstance
Contents |
AD_PInstance
This table is used internally by the application. Whenever a process is called a new line is added to this table including the process identifier and the record that called the process.
- Name:ADProcessInstance
- Classname:ProcessInstance
This table contains the following columns:
Name | Nullable | Data Type | Description |
AD_PInstance_ID | N | VARCHAR2(32) | Process Instance |
AD_Process_ID | N | VARCHAR2(32) | A series of actions carried out in sequential order. |
Record_ID | N | VARCHAR2(32) | An record identifier in the dictionary. |
IsProcessing | N | CHAR(1) | Processing |
Created | N | DATE | The date that this record is completed. |
AD_User_ID | Y | VARCHAR2(32) | An acquaintance to reach for information related to the business partner. |
Updated | Y | DATE | x not implemented |
Result | Y | NUMBER(10, 0) | x not implemented |
ErrorMsg | Y | NVARCHAR2(2000) | Error Message |
AD_Client_ID | Y | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | Y | VARCHAR2(32) | Organizational entity within client |
CreatedBy | Y | VARCHAR2(32) | User who created this records |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
IsActive | Y | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Other Info
Check constraints
These are the check constraints for this table:
- AD_PINSTANCE_ISACTIVE_CHECK: ISPROCESSING IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Non Unique
- AD_PINSTANCE_RECORD
Unique
- AD_PINSTANCE_KEY
Columns
Process Instance
Process Instance identifies the instance of a process. Every time a process is executed a new instance of it is created.
- Physical column name: AD_PInstance_ID
- Property Name: id
- Reference: ID
- This column is part of the table's identifier
Process
- Physical column name: AD_Process_ID
- Property Name: process
- Reference: TableDir
Foreign key column to AD_Process table, (column: AD_Process_ID)
Record ID
The Record ID is the internal unique identifier of a record
- Physical column name: Record_ID
- Property Name: recordID
- Reference: String
Processing
When the process is being accomplished this record has 'Y' value, otherwise it has 'N'.
- Physical column name: IsProcessing
- Property Name: processing
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: TableDir
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
Result
The Result indicates the result of any action taken on this request.
- Physical column name: Result
- Property Name: result
- Reference: Integer
Error Msg
In this filed is stored the error message in case the process fails.
- Physical column name: ErrorMsg
- Property Name: errorMsg
- Reference: String
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)
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
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
Related tables
Tables that link this table: