How to configure a OneClick custom script to execute on multiple selected models

Document ID : KB000122945
Last Modified Date : 12/12/2018
Show Technical Document Details
Introduction:
How to configure a OneClick custom script to execute on multiple selected models
Instructions:
Use the "<run-for-multiple-alarms>" tag. The following is an example:

 
<root> 
<menu name="com.aprisma.spectrum.app.swing.window.menu.Tools"> 
<item name="Run Shell Script"> 
<popup-visibility>always</popup-visibility> 
<action> 
<context> 
com.aprisma.spectrum.app.alarm.client.group.AlarmContext 
</context> 
<launch-web-server-script> 
<command>sh /cygdrive/c/win32app/Spectrum/test.sh {0} {1} {2}</command> 
<param> 
<attribute>AlarmAttrID.ALARM_ID</attribute> 
</param> 
<param> 
<attribute>AttributeID.MODEL_NAME</attribute> 
</param> 
<param> 
<attribute>AlarmAttrID.ALARM_TITLE</attribute> 
</param> 
<display-exit-status /> 
<run-for-multiple-alarms /> 
</launch-web-server-script> 
</action> 
</item> 
</menu> 
</root>
Additional Information:
Please reference the "Launch a Web Server Script For Multiple Alarms in Combined Mode" section for more information.

https://docops.ca.com/ca-spectrum/10-3-0/en/customizing/oneclick-customization/customizing-the-oneclick-console-menu#CustomizingtheOneClickConsoleMenu-LaunchaWebServerScriptForMultipleAlarmsinCombinedMode