cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VB how to get the derivated class ?

ymlesaux
Super Contributor

Hello,

I list "System elements" from a "System Used" object. I need to process those objects in different ways considering their class (Application, Service or Feature).

The getClassId() method just get the "System Element" class ID.

Is it possible to get the "derived class" ?

 

Thank you

 

Yves-Marie LE SAUX

LE SAUX Yves-Marie
2 Replies

ymlesaux
Super Contributor

Many thanks

LE SAUX Yves-Marie

jhorber
MEGA
MEGA

Hello Yves-Marie

 

From a collection based upon an abstract MetaClass, get a sub collection for a concrete MetaClass with GetType

 

Set cBE = GetCollection("~JW7j6VRt9H40[BPMN Element]")
Print "Number of BPMN Element objects: " & cBE.count()
Set cOP = cBE.GetType("~gsUiU9B5iiR0[Organizational Process]")
Print "Number of Organizational Process objects: " & cOP.count()
Jerome