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 by using a <com.vmware.actionsfw.ActionSpec> XML element. In this element, you set the properties for the action.
The following example shows an extension definition for a Flex-based 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 Chassis.
<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>