CMDBuild Forum

access to domain attributes

Hi,

 

I'm currently trying CMDBuild and so far I'm really impressed with what I can do with it. However, while I was checking out the workflow functionalities, I couldn't find a way to access domain attributes from an automated task.

 

I tried cmdb.queryRelations but it returns a list of card descriptors for one of the classes concerned by the domain. I need a list of card descriptors from the domain itself, so I can access the domain attributes. How can I do that?

 

Regards

Michael

 

P.S.: I'm working with 2.1.5.

 

 

Hi Michael,

unfortunately at this moment it's impossible to query directly the attribute of any relations.
I suggest you to use a stored procedure (the method "callFunction") to achieve this result.
 
Best regards,
CMDBuild Team

 

 

Hi,

 

Thanks! It worked. Quick comment: if the stored procedure's return type is date, an IllegalArgumentException will be thrown.

 

Regards

Michael

 

Previously Tecnoteca wrote:
Hi Michael,
unfortunately at this moment it's impossible to query directly the attribute of any relations.
I suggest you to use a stored procedure (the method "callFunction") to achieve this result.
 
Best regards,
CMDBuild Team