Objects

Open Bee™ Scan Capture provides a number of variables in its scripts depending on the context in which they are used. These variables can be structured.

In Open Bee™ Scan Capture there is a special type: JSE_Result that allows you to return an object that is more complex than a simple string. Indeed, this object allows you, for example, to fill in the values of a drop-down list if your script is intended not only to return a value, but also to populate the drop-down list.

Pre-integrated variables

Reminder of contexts: LABEL, INDEX, VALIDATION, ENTRIES

Variables are made available for use within the script:

  • Local variables (accessible in the main body of the script):
    • pParameters —An array containing all Info and ArticleLineInfo objects found for the current document LABEL, INDEX, VALIDATION, ENTRIES

Global variables to the script:

NameDescriptionTypeContextVersion
ID_INVOICE Displays the document ID in Open Bee™ Scan CaptureTextLIBEL
INDEX
VALIDATION
SCRIPTURES
3.3.1
INTERNAL_DOCUMENT_IDDisplays the internal ID of the document in Open Bee™ Scan CaptureTextLIBEL
INDEX
VALIDATION
SCRIPTURES
3.8.0
ID_DMSL’identifiant du document dans Open Bee™ Portal quand celui a déjà été archivé par Capture. TextLIBEL
INDEX
VALIDATION
SCRIPTURES
3.5.0
ID_DMS_LISTIdentifiants des documents dans le ou les Open Bee Portal™ quand le document a été archivé par Capture. Liste de TexteLIBEL
INDEX
VALIDATION
SCRIPTURES
4.3.0
THIRDPARTThird Party of the DocumentThirdPartLIBEL
INDEX
VALIDATION
SCRIPTURES
 
FOLDER Document FolderFolderLIBEL
INDEX
VALIDATION
SCRIPTURES
3.3.0
DOCUMENT_STATE Current status of the document. Possible values: – WORKFLOW_DONE – ENTRY_DONE – DOCUMENT_FINAL – VIDEOCODAGE_DONE – ANALYTICAL_BREAKDOWN_DONETextLIBEL
INDEX
VALIDATION
SCRIPTURES
3.4.0
DOCUMENT_TEMPLATEThe template used for the document (corresponding to its third party, its folder or generic to the application)TemplateLIBEL
INDEX
VALIDATION
SCRIPTURES
3.8.0
DOCUMENT_TYPEThe type of document in Open Bee™ PortalDocument TemplateLIBEL
INDEX
VALIDATION
SCRIPTURES
3.8.0
Wear out Current user: LIBELLE the user who generates the accounting entries INDEX the user who videocodes the document (or if the script is executed on the server side, the user “USER_SYSTEM”) VALIDATION the user who validates and exports the document WRITINGS the user who exports the entriesWear outLIBEL
INDEX
VALIDATION
SCRIPTURES
3.4.0
COMMENTSOpen Bee™ PortalList of CommentsINDEX
VALIDATION
SCRIPTURES
3.7.0
ACCOUNT_ENTRIESList of ledger entries associated with the documentList of Ledger EntriesVALIDATION
SCRIPTURES
3.7.0
ACCOUNT_ENTRYWriting in the process of being exportedAccounting EntrySCRIPTURES4.2.0
ACCOUNT_ENTRY_NUMBERThe number of the ledger entry in the export order. Starts at 1WholeSCRIPTURES3.8.0
DOCUMENT_WORKFLOW_STATUSStatus of the document vs. its status in the workflow (see accounting configuration) Status: Validated Refused NotProcessed WaitingTextSCRIPTURES3.8.0
ID_UNITInstance number of the Current Info object TextLIBEL
INDEX
 
GROUPED_INDEX_IDUnique identifier of the parent index: Populated only if the index belongs to an article group or rowTextINDEX 
IS_ARTICLE Specifies whether the line comes from an item line (In case an item line needs to generate a ledger entry)BooleanLIBEL 
IS_DISCOUNT_RATE_GENERATION Indicates whether the line is the result of a discount generationBooleanLIBEL3.3.0
ID_CURRENT_INDEX The identifier of the index that was used to generate the row. Filled only in case of index -> entry line link (Ex: If I find the value foo on the index NOM_INDEX I debit the account 445600 with the amount excluding VAT) -> The value would be NOM_INDEXTextLIBEL 
CAPTURE_WS_TOKENSession capture token to call certain web servicesTextLIBEL
INDEX
VALIDATION
SCRIPTURES
4.1.0
FILENAMEFile NameTextLIBEL
INDEX
VALIDATION
SCRIPTURES
4.3.0
INTERPRETATION_MODEWhere the script is executedCLIENT, SERVER, or UNKNOWNLIBEL
INDEX
VALIDATION
SCRIPTURES
4.5.0
GENERATION_TEMPLATE_NAMELedger Entry Model NameTextLIBEL4.7.1