IBM Support

The difference between pre-processing, post-processing, and post-save scripts defined for a catalog

Question & Answer


Question

This technote addresses questions about the differences between a pre-processing script, a post-processing script, and a post- save script. For example, why does the script operation item.getEntrySaveResult() work correctly in a post-save script but always returns an UNKNOWN in a post-processing script?

Answer

Both pre-processing and post-processing scripts run before an item or entry is saved. The difference between them is that pre-processing scripts runs before the value and validation rules checking is complete, and post-processing scripts run after these processes.

The post-save scripts run after the item or entry has been saved to the catalog or collaboration area.

For the item.getEntrySaveResult() script, if you receive the return value UNKNOWN in a post-processing script it means that the item has simply not been saved.

[{"Product":{"code":"SSNJBH","label":"WebSphere Product Center"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Scripting\/API","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"5.3.2;5.3.1;5.3;5.2.1;5.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Product Synonym

WPC;WebSphere Product Center

Document Information

Modified date:
16 June 2018

UID

swg21285029