Instance

Description

Functions to create and modify instances of type Concept

Categories

NameDescription
PropertyArrayUtility Functions to Operate on PropertyArray types of Concepts
PropertyAtomUtility functions to operate on PropertyAtom properties
StateMachineUtility functions to operate on StateMachines

Functions

NameSignature and Synopsis
createInstanceConcept createInstance (String xslt-template)
Creates a new Concept Instance based on the data passed in.
createInstanceFromXMLConcept createInstanceFromXML (String uri, String xml)
This function returns a concept instance using the xml . The XML String should adhere to the XML schema corresponding to the concept definition.
deleteInstanceConcept deleteInstance (Concept instance)
Retracts and deletes the Concept Instance instance from the working memory.
filterAndSerializeUsingDefaultsString filterAndSerializeUsingDefaults (Concept instance, String propertyNameRegexFilter)
Serializes the Concept into an XML String using concept namespace uri and Regex filter.
getByExtIdConcept getByExtId (String extId)
Returns the Instance using extId as the external ID.
getByIdConcept getById (long Id)
Returns the Instance using Id as the internal ID.
getExpandedName
Get the fully qualified namespace URI for a concept instance.
isModifiedboolean isModified (Concept instance)
This function returns true if a concept instance is being modified by other rules during the conflict resolution. Use "isNew(instance)" to check if an instance is newly added during the conflict resolution. Use "!isModified(instance)" to check if an instance is newly added but has not been modified during the conflict resolution. Use "isNew(instance) || isModified(instance)" regardless the instance is newly added or being modified during the conflict resolution.
isNewboolean isNew (Concept instance)
This function returns true if a concept instance is newly added during the conflict resolution. Use "isModified(instance)" to check if an instance is being modified by other rules during the conflict resolution. Use "!isModified(instance)" to check if an instance is newly added but has not been modified during the conflict resolution. Use "isNew(instance) || isModified(instance)" regardless the instance is newly added or being modified during the conflict resolution.
newInstanceConcept newInstance (String uri, String extId)
Creates a new empty Concept Instance
serializeString serialize (Concept instance, boolean changedOnly, String nameSpace, String root)
Serializes the Concept into an XML String.
serializeUsingDefaultsString serializeUsingDefaults (Concept instance)
Serializes the Concept into an XML String using concept namespace uri.
updateInstanceFromXMLConcept updateInstanceFromXML (String xml)
Update a concept instance with references as specified in the XML. "extId" from the XML string is first used to locate the concept instance to be updated. Then its contents and property references are updated with values provided in the XML