POST api/RulesEngine/Evaluate

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

RulesEngineEvaluationResult
NameDescriptionTypeAdditional information
expression

RulesEngineExpressionResult

None.

Arguments

Dictionary of string [key] and string [value]

None.

ErrorMessage

string

None.

EvaluationResult

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "expression": {
    "RootNodeId": 1,
    "GroupName": "sample string 2",
    "ExpressionResult": "sample string 3"
  },
  "Arguments": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "ErrorMessage": "sample string 1",
  "EvaluationResult": true
}

text/html

Sample:
{"expression":{"RootNodeId":1,"GroupName":"sample string 2","ExpressionResult":"sample string 3"},"Arguments":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"ErrorMessage":"sample string 1","EvaluationResult":true}

application/xml, text/xml

Sample:
<RulesEngineEvaluationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIObjectClasses.RulesEngineModels">
  <Arguments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Arguments>
  <ErrorMessage>sample string 1</ErrorMessage>
  <EvaluationResult>true</EvaluationResult>
  <expression>
    <ExpressionResult>sample string 3</ExpressionResult>
    <GroupName>sample string 2</GroupName>
    <RootNodeId>1</RootNodeId>
  </expression>
</RulesEngineEvaluationResult>