How to configure a OneClick custom script to execute on multiple selected models
book
Article ID: 122945
calendar_today
Updated On:
Products
Spectrum
Issue/Introduction
How to configure a OneClick custom script to execute on multiple selected models
Environment
Release: Spectrum 10.3.0 and above
Component: SPCOCK
Resolution
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 of the documentation for more information.
Feedback
thumb_up
Yes
thumb_down
No