Get All Rule Chain Inputs For Facts
  • 13 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Get All Rule Chain Inputs For Facts

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationDesigner Entities > Rule > Rule Chains

The Get All Rule Chain Inputs For Facts step will return a list of data definitions for all the Rule Chain inputs Facts. 



Properties

Inputs

PropertyDescriptionData Type
FactsThe desired Facts from the Rule ChainList of String
Rule Chain IdThe Id of the desired Rule ChainString

Outputs

PropertyDescriptionData Type
OutputList of information on the Rule Chain Fact InputsList of DataDescription

Example Inputs and Outputs

FactsRule Chain IdOutput
"Result"08daf3f0-bf22-3532-1f24-2216a00b00a5
List of Data Definition for Result Fact
EmptyNullEXCEPTION MESSAGE


Common Errors

Value cannot be null

If either input value is null or empty, an error will occur.

To correct this, ensure that the correct value is mapped or entered.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get All Rule Chain Inputs For Facts 1[GetAllRuleChainInputsForFacts] in flow [Flow 1]: Exception invoking method GetAllRuleChainInputsForFacts on class RuleChainEngine
 ---> DecisionsFramework.LoggedException: Exception invoking method GetAllRuleChainInputsForFacts on class RuleChainEngine
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source'
 at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument
 at System.Linq.Enumerable.Contains[TSource](IEnumerable`1 source, TSource value, IEqualityComparer`1 comparer
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.<>c__DisplayClass8_0.b__0(DataDescription d
 at System.Linq.Enumerable.WhereArrayIterator`1.ToArray(
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.GetAllRuleChainInputsForFacts(String ruleChainId, String[] facts)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Was this article helpful?