Instance.createInstanceFromXML()

Signature

Concept createInstanceFromXML (String uri, String xml)

Domain

ACTION, BUI

Description

This function creates a new Concept instance by deserializing the XML data provided. If uri is null, then the URI will be inferred from the namespace in xml. The form of of the XML data provided is expected to be the same as the output from serialize(). The new Concept instance is added to the working memory. Adding the instance to the working memory will cause any rule conditions that depend on the concept to be evaluated.

Parameters

NameTypeDescription
uriURIconcept.
xmlStringXML string to be parsed

Returns

TypeDescription
ConceptThe newly created concept

Cautions

none. This function asserts the created concept but this assert will not fire any rules.