Prerequisites: A valid Entity
Namespaces: InRule.Runtime
Classes: Entity
See Also: Retrieving a Rule Application, Creating a RuleSession, Creating Entities
Saving the state to the file system
// Save the state by passing in the path & filename.
mortgageEntity.SaveXml("MortgageOutput.xml");
Retrieving entity state as object
// get a reference to the object model - provided an object was used to
// create (or load) the entity
Mortgage mortgageObject = mortgageEntity.BoundValue as Mortgage;
Retrieving entity state as XML
// Get the state as XML
string stateXml = mortgageEntity.GetXml();
Comments
0 comments
Please sign in to leave a comment.