User Guide: Integration > Advanced Configurations > Sample Code for Preprocessor and Postprocessor > JavaScript Sample Code for Preprocessor and Postprocessor
JavaScript Sample Code for Preprocessor and Postprocessor
PreProcessor
- To add an input parameter:
- To add a new request parameter:
- To add an attribute to the session:
- To validate the input parameter before Service call:
- A function which uses most of the request APIs:
PostProcessor
- To add a new output parameter:
- To retrieve an attribute added to the session (from preprocessor):
- To add a custom device header:
- To add Datasets to result:
- A function which uses most of the response APIs:
- To set custom httpStatusCode params through JavaScript postprocessor in result:
- To set custom opstatus params through JavaScript postprocessor in result: