Hitachi

JP1 Version 12 JP1/Navigation Platform Development Guide


5.2.3 Plugin processing during preview

I/O Plugins are executed when node transition occurs during preview, in addition to node transition in the Operational Content Execution Window. If you do not want I/O Plugins to be executed during a preview, use the param parameter when implementing the inputFromNode or outputToNode method. When this parameter is specified as shown in the following example, the system checks whether the window used to execute the plugin is a preview window, and from this check determines whether to allow plugin processing to be performed.

Implementation example
public Map<String,Object> outputToNode(HttpSession session, Map<String,Object> param) {
 
 boolean isPreview = Boolean.valueOf((String) param.get("ucnp.screen.ispreview"));
 if (!isPreview) {
   // Perform plugin processing only when a preview window is not used.
 
 }
}