Get Facts From Rule Chain
  • 11 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Get Facts From Rule Chain

  • Dark
    Light

Article Summary

Step Details

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

The Get Facts From Rule Chain step will display data with facts of the specified Rule Chain Id input. It will output a list of the Data Description type.



Properties

Inputs

PropertyDescriptionData Type
Rule Chain IdThe desired Rule Chain Id to get facts fromString

Outputs

PropertyDescriptionData Type
OutputOutputs a list of factsString

Example Inputs and Outputs

Rule Chain IdOutput
08daf3f0-bf22-3532-1f24-2216a00b00a5
List of Facts
Null EXCEPTION MESSAGE
Empty EXCEPTION MESSAGE


Common Errors

Incorrect Parameter Count, Data Not Mapped Correctly

If the Rule Chain Id is empty, an error will occur.

To correct this, map or enter the correct Rule Chain Id.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Facts From Rule Chain 1[GetFactsFromRuleChain] in flow [Flow 12]: Incorrect Parmater Count, Data Not Mapped Correctly
 ---> DecisionsFramework.LoggedException: Incorrect Parmater Count, Data Not Mapped Correctly
 ---> System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture
 at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
   --- 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 ---


Value cannot be null

If the Rule Chain Id is null, an error will occur.

To correct this, map or enter the correct Rule Chain Id.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Facts From Rule Chain 1[GetFactsFromRuleChain] in flow [Flow 12]: Exception invoking method GetFactsFromRuleChain on class RuleChainEngine
 ---> DecisionsFramework.LoggedException: Exception invoking method GetFactsFromRuleChain on class RuleChainEngine
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'key'
 at System.ThrowHelper.ThrowArgumentNullException(String name
 at System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(TKey key, TValue& value
 at DecisionsFramework.Data.Caching.Implementations.MemoryCacheImpl`1.DoGet(String id
 at DecisionsFramework.Data.Caching.Interface.BaseCacheImpl`1.Get(Type type, String id
 at DecisionsFramework.Data.Caching.Interface.BaseCacheImpl`1.Get(String id
 at DecisionsFramework.Design.Flow.FlowEngine.GetFlowFromCache(String flowId
 at DecisionsFramework.Design.Flow.FlowEngine.LoadFlowByID(FlowLoadParameters flowLoadParameters
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.GetFactsFromRuleChain(String ruleChainId)
   --- 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?