Instance.createInstanceFromJSON()

Signature

Concept createInstanceFromJSON (String uri, String json)

Domain

ACTION, BUI

Description

This function creates a new Concept instance by deserializing the JSON data provided. The form of of the JSON 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 URI.
jsonStringJSON 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.