ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.process/AD PInstance

From InfiniteERP Wiki
Jump to: navigation, search
Back button.png   Back to ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.process


AD_PInstance

  • Name:AD_PInstance
  • Classname:ADProcessInstance

This table contains the following columns:

Name Nullable Data Type Description


IsActive Yes 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.

AD_Client_ID Yes VARCHAR (32) A Client is a company or a legal entity. You cannot share data between Clients.
CreatedBy Yes 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.
ErrorMsg Yes NVARCHAR (2000) In this filed is stored the error message in case the process fails.
AD_Org_ID Yes VARCHAR (32) An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.
AD_Process_ID No VARCHAR (32) The Process field identifies a unique Process or Report in the system.
AD_PInstance_ID No VARCHAR (32) Process Instance identifies the instance of a process. Every time a process is executed a new instance of it is created.
IsProcessing No CHAR (1) When the process is being accomplished this record has 'Y' value, otherwise it has 'N'.
Record_ID No VARCHAR (32) The Record ID is the internal unique identifier of a record
Result Yes DECIMAL (10,0) The Result indicates the result of any action taken on this request.
Updated Yes 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

Columns

Active

  • Physical column name: IsActive
  • Property Name: active
  • Reference: YesNo
  • Default value: Y



top


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@)

top


Created By

  • Physical column name: CreatedBy
  • Property Name: createdBy
  • Reference: Search


Foreign key column to AD_User table, (column: AD_User_ID)

top


Creation Date

  • Physical column name: Created
  • Property Name: creationDate
  • Reference: DateTime
  • Default value: SYSDATE



top


Error Msg

  • Physical column name: ErrorMsg
  • Property Name: errorMsg
  • Reference: String



top


Organization

  • Physical column name: AD_Org_ID
  • Property Name: organization
  • Reference: TableDir


Foreign key column to AD_Org table, (column: AD_Org_ID)

top


Process

  • Physical column name: AD_Process_ID
  • Property Name: process
  • Reference: TableDir


Foreign key column to AD_Process table, (column: AD_Process_ID)

top


Process Instance

  • Physical column name: AD_PInstance_ID
  • Property Name: id
  • Reference: ID
  • This column is part of the table's identifier


top


Processing

  • Physical column name: IsProcessing
  • Property Name: processing
  • Reference: YesNo
  • Default value: N



top


Record ID

  • Physical column name: Record_ID
  • Property Name: recordID
  • Reference: String



top


Result

  • Physical column name: Result
  • Property Name: result
  • Reference: Integer



top


Updated

  • Physical column name: Updated
  • Property Name: updated
  • Reference: DateTime
  • Default value: SYSDATE



top


Updated By

  • Physical column name: UpdatedBy
  • Property Name: updatedBy
  • Reference: Search


Foreign key column to AD_User table, (column: AD_User_ID)

top


User/Contact

  • Physical column name: AD_User_ID
  • Property Name: userContact
  • Reference: TableDir


Foreign key column to AD_User table, (column: AD_User_ID)

top


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_PINSTANCE_RECORD Not Unique. Columns:
    • AD_PROCESS_ID
    • RECORD_ID

top

Check Constraints

These are the check constraints for this table:

  • AD_PINSTANCE_ISACTIVE_CHECK: ISPROCESSING IN ('Y', 'N')

top

Back button.png   Back to org.openbravo.model.ad.process