Pre Processors
Pre Processors are Hub objects that let you manipulate resources and save them as modified resources
Admin Users can create pre-processors to manipulate a text-based resource file.
(e.g. implement a 'Find- Replace' logic on a Copybook (.cpy) file)
All users can execute those pre-processors.
Create pre-processor
From the Resources menu, select the pre-processor tab
Create a new pre-processor:
Fill in the pre-processor name, description, and the js logic code.
List pre-processors
The UI displays the pre-processor list
Edit and Delete pre-processors
From the UI pre-processors list, edit or delete a pre-processor
Run a pre-processor from the UI
From a text-file resource line in the UI, select the 'Run preprocessor' menu item
Supported file extentions: 'txt','cbl','cpy','cobol','json','swagger','xml','wsdl','pcml', 'trail','yaml','yml',
Select a pre-processor from the list
Provide additional parameters and set the processed resource name (same name as default)
and saved path.
Execute a pre-processor from the CLI
You can list the pre-processors from the CLI
ol list pre-processors
- Will list the pre-processor details: pre-processor name | pre-processor description
Execute one of the pre-processors by indicating its name, the local origin file path should the processed file override the origin file
ol execute pre-process -pp <pre-processor name> -i <local file path> --override
Updated 22 days ago