Ifd:addConstrainedValues

From dev.ifd-library.org

Jump to: navigation, search
Function public IfdMeasure addConstrainedValues (String concept_guid, 
                                                          String property_guid, 
                                                          String measure_guid, 
                                                          String [] value_guids, 
                                                          String rel_context_guid,
                                                          String session_id)
                                throws IfdServerException


Function to add constrained values to a measure

QUERY_FUNCTION addConstrainedValuesToMeasure (concept_guid : STRING; 
                                              property_guid : STRING ; 
                                              measure_guid : STRING ; 
                                              values: LIST OF IfdValue
                                              rel_context_guid: STRING) :  IfdMeasure;

Input:

  • concept_guid - guid of concept
  • property_guid - guid of property
  • measure_guid - guid of measure
  • value_guids [] - array of global unique identifier for values to be contstrained in the concept-property relationship
  • rel_context_guid - (optional) the global unique identifier for the context to whcich the realtionship will be added, if given
  • session_id - the session id for the current user

The values added must be part of the measure given by the measure_guid. If the values are not already part of the measure they will be added using the xtdRelAssignsValues relationship. To constrain a value for a given object-property combination we are using the xtdRelAssignsPropertyWithValues relationship.

Return:

[edit] Example of use

Image:Assignconstrainedvalues.jpg

The picture above shows an example of the intended use of addConsrainedValuesToMeasure. The relationship takes one or more values from a list of values and attach them to a concept.

Back to the API

Comments: