Date Name Downloads
Mar 15, 2018 XPages Packaged Plugin 1.2.1 37
Mar 15, 2018 0.8.1 1
Mar 8, 2018 XPages Packaged Plugin 1.2.0 4
Mar 8, 2018 0.8.0 3
Oct 12, 2017 Java and XPages Samples 137
Oct 9, 2017 XPages Packaged Plugin 1.1.0 9
Oct 9, 2017 0.7.0 4
May 5, 2017 XPages Packaged Plugin 118
Feb 17, 2017 0.6.0 150
Jan 1, 2017 0.5.0 23
XPages Packaged Plugin
XPages Packaged Plugin
May 5, 2017
Apache License
118

XPages Plugin, allowing integration with Watson Work Services from XPages applications

NOTE
The core code uses gson, which uses Java reflection to parse JSON data into Java objects. Java reflection is prevented by Domino's Java policy settings, which pre-date REST service integration. As a result, the settings need amending, either by appending to the java.policy file or adding a java.pol file. Back up the changes, because java.policy is often overwritten by FP/IF installs, and java.pol may get removed by FP/IF installs.

Two operations need permission granted, by adding to the “grant” block:

permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission java.lang.RuntimePermission "accessDeclaredMembers";

Reflection is a standard Java approach for integrating JSON data into Java. It avoids manual parsing which is considerably more time-consuming and error-prone.

If a Domino administrator is not willing to allow Java reflection and empower developers to develop modern web applications, you will need to create your own plugin that includes the base Watson Work Services Java SDK and performs all functions you require. If you wish to write the code within an NSF, you will need to call wrapper methods in that plugin for all interactions you require (there are many available). If you do not have the skills for this, approach an IBM business partner to build the plugin for you or train you to do so. Wrapping code within your NSF in a “AccessController.doPrivileged” block will not work.