Error handling for a custom inbound integration
If you throw an exception in your code, PolicyCenter behavior depends on the
stoponerror and ordered configuration parameters. If
stoponerror is
true, in the following cases, PolicyCenter immediately stops processing until the plugin is restarted or the server is
restarted:- The WorkDataSet.findWork method throws any exception.
- The ordered configuration parameter is also
trueand the WorkDataSet.process method throws any exception.
If the ordered configuration parameter is false, PolicyCenter logs any exception that the WorkSetProcessor object’s
process method throws and the item is skipped. It is important to catch any exceptions in the
process method to ensure that you correctly handle error conditions. For example, you might
need to notify administrators or place the work item in a special location for appropriate handling.
See also
