This may be an easy one, but I haven't found an easy way to determine in a rule that an object in working memory represented by an implemented interface is a specific class in IBM Rules Designer 8.8.1. For example, assuming HousingPeriod
is an interface, if I have a definition that states:
definitions
set 'the housing period' to a housing period...
And I want to follow that with a where
clause that further refines the collection of objects that implement HousingPeriod
as one of a list of implementing classes, say CollegeHousingPeriod
and InternshipHousingPeriod
, how could I do that? Something like:
where this housing period is a college housing period
or
where any of the following is true:
- this housing period is a college housing period
- this housing period is an internship housing period,
doesn't seem to work. Thanks in advance for any help you can provide!