Thanks Neeraj. This answers my question.
Rgds,
Sahana 

-----Original Message-----
From: Neeraj Joshi [mailto:[email protected]] 
Sent: Monday, October 19, 2009 7:27 PM
To: [email protected]
Subject: RE: Can instances be enumerated using imperius

Hey Sahana,
According to the CIM-SPL spec any CIM instance used in the policy needs to be 
accessible by traversing from the 'anchor' class that you specify in the import 
statement. 
So currently it is not possible to enumerate instances of a class thats 
unrelated to the anchor class.
You might be able to get around that by using custom expressions though this 
article talks about adding custom expressions to the Java-SPL (very similar to 
CIM-SPL except it uses Java objects) 
http://www.ibm.com/developerworks/autonomic/library/ac-spl2/?S_TACT=105AGX09&S_CMP=HP

Hope that helps
Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by candlelight. 
- George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <[email protected]>
To:
"[email protected]" <[email protected]>
Date:
10/19/2009 12:39 AM
Subject:
RE: Can instances be enumerated using imperius



Hi Neeraj,
This is what I want to do, in the Condition section I want to enumerate a class 
which is not associated with the current class. I assume the 'collect' function 
is used to collect associations to the current class. 
So I cant use collect in my use case. In case the number of enumerated 
instances is > 0 then I take the action. 

Rgds,
Sahana

-----Original Message-----
From: Neeraj Joshi [mailto:[email protected]]
Sent: Friday, October 16, 2009 10:57 PM
To: [email protected]
Subject: Re: Can instances be enumerated using imperius

Hello Sahana,

> whether its possible to enumerate instances in the Decision section ?

I assume you wish to use the CIM-SPL. I am not clear what you mean by enumerate 
instances? Can you elaborate on that?

Thanks
Neeraj
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"If it weren't for electricity we'd all be watching television by candlelight. 
- George Gobel"

Neeraj Joshi (knee-rudge)
WebSphere XD - Compute Grid
AIM, IBM
Apache Imperius - http://incubator.apache.org/imperius
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From:
"Sampige, Sahana Prabhakar (STSD)" <[email protected]>
To:
"[email protected]" <[email protected]>
Date:
10/16/2009 11:49 AM
Subject:
Can instances be enumerated using imperius



Hi ,
                 I intend to use imperius to create policies. Just wanted to 
know whether its possible to enumerate instances in the Decision section ? Also 
where can I downlaod the jars for imperius ?

Thanks,
Sahana



Reply via email to