Defining Individual Actions in an Action Set
Each action data object in a set is a data object of type com.vmware.actionsfw.ActionSpec. You must create an ActionSpec data object for every action to add to the action set.
You create each ActionSpec data object using a <com.vmware.actionsfw.ActionInfo> XML element. In this element, you set the properties for the action. ActionInfo Extension Object Properties lists the properties that you set for each ActionInfo object.
Boolean value. If you set this value to true, the action can be made available when the user selects multiple vSphere objects. This property is optional.
Example: Example Action Set Extension shows an example extension definition for an action set extension. In the example, the extension adds a set of two actions to the vSphere Web Client Actions Framework. The actions are associated with a custom object type called a Chassis.
Example: Example Action Set Extension
<extension id="mySolution.myPlugin.myActionSet">
<extendedPoint>vise.actions.sets</extendedPoint>
<object>
<actions>
<!-- first action -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.mySolution.myPlugin.chassis.createChassis</uid>
<label>Create Chassis</label>
<description>Create a Chassis object.</description>
<icon>#{myPluginImages:sample1}</icon>
<acceptsMultipleTargets>false</acceptsMultipleTargets>
<command className="com.mySolution.myPlugin.ChassisCommand"/>
</com.vmware.actionsfw.ActionSpec>
<!-- second action -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.mySolution.myPlugin.chassis.editChassis</uid>
<label>Edit Chassis</label>
<description>Edit a Chassis object.</description>
<icon>#{myPluginImages:sample2}</icon>
<acceptsMultipleTargets>true</acceptsMultipleTargets>
<conditionalProperty>actions.isEditAvailable</conditionalProperty>
<command className="com.mySolution.myPlugin.ChassisCommand"/>
</com.vmware.actionsfw.ActionSpec>
</actions>
</object>
<metadata>
<!-- filters the actions in the set to be visible only for Chassis -->
<objectType>samples:Chassis</objectType>
</metadata>
</extension>