Retrieving Entity State

  • Updated

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();

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.