GetType

Description

Returns the type (state-based or stateless) of the Entity.

You cannot change the type of an Entity object using the API. The type of a record is determined by the corresponding record type and must be set by the administrator using Rational ClearQuest Designer.

Syntaxe

VBScript

entity.GetType 

Perl

$entity->GetType(); 
Identificateur
Description
entity
Objet Entity représentant un enregistrement de données utilisateur. Si vous omettez cette partie de la syntaxe au sein d'un point d'ancrage, l'objet Entity correspondant à l'enregistrement de données en cours est faux (VBScript uniquement).
Valeur renvoyée
A Long whose value is an EntityType constants: REQ_ENTITY for a state-based Entity object or AUX_ENTITY for a stateless Entity object.

Exemples

VBScript

recordType = GetType 
If recordType = AD_REQ_ENTITY Then 
   OutputDebugString "This record is a state-based record." 
Else 
   OutputDebugString "This record is a stateless record." 
End If 

Perl

$recordtype = $entity->GetType();



if ($recordtype eq $CQPerlExt::CQ_REQ_ENTITY)

 {

 $session->OutputDebugString("This record is a state-based
       record.");

 }

else

 {

 $session->OutputDebugString("This record is a stateless record.");

 } 

Feedback