pcm_pin_conf() - cassiobj/PCM-Python_lib GitHub Wiki
The pcm_pin_conf function is part of a Python extension for Oracle BRM. It executes opcodes of the Oracle BRM system.
The pcm_pin_conf function executes opcodes of the Oracle BRM system.
- program: string with program name key.
- token: string with token.
- type: string with type
STR - retrieve data string
INT - retrieve data integer
DECIMAL - retrieve data in double format
POID - retrieve data into array
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.
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)
...
...