Custom Fields and Opcodes - cassiobj/PCM-Python_lib GitHub Wiki

Handling Custom Fields and Opcodes


Just like in Oracle BRM custom processes in C/C++, to use custom fields and opcodes, you will convert the custom_flds.h and custom_ops.h custom files in the same way and set the data in the pin.conf file.

IMPORTANT
Number of opcode or field must be less or equal than 9999999(7 digits).
Max size for field or opcode name is 60 characters.

parse_phppcm_custom_ops_fdls.pl

This script will convert include header fiels for custom fields and opcodes into a csv table to be loaded in memory later.
SYNTAX:

parse_pcmpy_custom_ops_fdls.pl -I  -O 
        -h      help
        -I      input file
        -O      output file

You can concatenate custom_flds.h and custom_flds.h into one single file to convert.
Example:

cat custom_flds.h custom_ops.h > prov.h
parse_pcmpy_custom_ops_fdls.pl -I prov.h -O custom_flds_ops.csv

Setting custom fields and opcodes table file into pin.conf

Open pin.conf file used by python (see https://github.com/cassiobj/PCM-Python_lib/wiki/Setting-pin.conf-and-logfile), and set the follow information.
- PCMPy py_ops_fields_extension_file <dir/filename>

Example

- PCMPy py_ops_fields_extension_file /etc/custom_flds_ops.csv
⚠️ **GitHub.com Fallback** ⚠️