WebDocs iSeries Edition Common Exit Points
From Support
WebDocs provides for the listed WebDocs iSeries commands to call exit point processes. Customers can also program their own special logic into WebDocs as needed.
Listed below are the current built-in exit points.
DOCCHKIN command - Adding a new document to WebDocs.
Pre Check-in Exit - Before the document gets checked- into WebDocs, the Pre Check-In Exit program is called. The pre-checkin exit program can validate document keywords and send back an error response message to the user. If the pre check-in exit fails, this will prevent the DOCCHKIN command from completing the document check-in without the user first fixing the error.
By default the program DOCEXITPC in the users library list is called. The template CL program for DOCEXITPC can be found in file: SOURCE in library RJSIMAGE.
Note: The compiled program object should always be compiled into library RJSIMAGE although a copy of the source should be mad eto a user library.
Post Check-in Exit - After a new document gets checked- into WebDocs, the Post Check-In Exit program is called. The post-checkin exit program can backfill index values into a new document from a user database or can perform pretty much anything that an RPG or CL program can accomplish. You should always make sure the post-checkin program exits normally because the document has already been saved into WebDocs. if there is some user logic (such as customer# does not exist) where you want to notify someone of the error, you can do so through your RPG or CL logic, but always make sure DOCEXITC ends normally.
Recommendation: When calling the post exit process, submit the post process logic to batch to prevent holdups if your custom CL or RPG program fails.
By default the program DOCEXITC in the users library list is called. The template CL program for DOCEXITC can be found in file: SOURCE in library RJSIMAGE.
Note: The compiled program object should always be compiled into library RJSIMAGE although a copy of the source should be mad eto a user library.
DOCINFOUPD command - Updating document keyword info
Pre Update Exit - Before the document details get updated, the Pre Update Exit program is called. The pre-update exit program can validate document keywords and send back an error response message to the user. If the pre update-in exit fails, this will prevent the DOCINFOUPD command from completing the document keyword updates without the user first fixing the error.
By default the program DOCEXITUPC in the users library list is called. The template CL program for DOCEXITUPC can be found in file: SOURCE in library RJSIMAGE.
Note: The compiled program object should always be compiled into library RJSIMAGE although a copy of the source should be mad eto a user library.
Post Update Exit - After a documents details have been updated, the Post Update Exit program is called. The post-update exit program can backfill index values into an updated document from a user database or can perform pretty much anything that an RPG or CL program can accomplish. You should always make sure the post-update program exits normally because the document details have already been saved into WebDocs. if there is some user logic (such as customer# does not exist) where you want to notify someone of the error, you can do so through your RPG or CL logic, but always make sure DOCEXITUC ends normally.
Recommendation: When calling the post exit process, submit the post process logic to batch to prevent holdups if your custom CL or RPG program fails.
By default the program DOCEXITUC in the users library list is called. The template CL program for DOCEXITPUC can be found in file: SOURCE in library RJSIMAGE.
Note: The compiled program object should always be compiled into library RJSIMAGE although a copy of the source should be mad eto a user library.
