RECORD_ACTION

Possible values:

RECORD_ACTION Escaped Version
ADD New record is being added.
EDIT Existing record is being edited.
COPY New Record is being copied from another record.
VIEW Record is being viewed.
MASS_UPDATE Executes a constraint only when the mass update is in process, that is, the same validation file can be used for record edit and mass update.

Refer tomass_update.

RECORD_SEARCH The record search is being executed. If a constraint is defined with this action, the same catalog validation file can be used for record search screen if the property com.tibco.cim.recordsearch.rulesfile is configured with catalog validation file name.

The following example restricts view access to the BASE_UNIT, ITEM_BRAND_NAME, and BRAND_OWNER_ID attributes, if the record is being viewed or edited:

<constraint>
		<name>ViewOnlyGeneralAttributesForViewAndChange</name>
		<description>View only attributes for View and Change</description>
		<condition>
			<or>
				<eq>
					<var>RECORD_ACTION</var>
					<const type="string">EDIT</const>
				</eq>
				<eq>
					<var>RECORD_ACTION</var>
					<const type="string">VIEW</const>
				</eq>
			</or>
		</condition>
		<action>
			<access mode="view">BASE_UNIT</access>
			<access mode="view">ITEM_BRAND_NAME</access>
			<access mode="view">BRAND_OWNER_ID</access>
		</action>
</constraint>