pcm_pin_conf() - cassiobj/PCM-Python_lib GitHub Wiki

Table of Contents

pcm_pin_conf Function

The pcm_pin_conf function is part of a Python extension for Oracle BRM. It executes opcodes of the Oracle BRM system.

Description

The pcm_pin_conf function executes opcodes of the Oracle BRM system.

Parameters

  • program: string with program name key.
  • token: string with token.
  • type: string with type
Types:
STR - retrieve data string
INT - retrieve data integer
DECIMAL - retrieve data in double format
POID - retrieve data into array

Return Value

Return a value in String, Integer, Double or Poid String.

Returns NULL if conf not found.

In case of an error, the `error` exception is raised.

Usage

Inside pin.conf file, if you have

- MyProgram       flagProcess             1

Then code for catch is:

import PCMPy

# Define parameters
flag = PCMPy.pcm_pin_conf("MyProgram", "flagProcess", 'INT')

if (flag == 1):
    result = PCMPy.pcm_op(opcode, in_flist, flag)
    ...
    ...
⚠️ **GitHub.com Fallback** ⚠️