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

Get Fact Names From Rule Chain

  • Dark
    Light

Article summary

Step Details

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

The Get Fact Names From Rule Chain step will display data with the fact names of the specified Rule Chain Id input.



Properties

Inputs

PropertyDescriptionData Type
Rule Chain IdThe desired Rule Chain IdString

Outputs

PropertyDescriptionData Type
OutputList of the fact names from the Rule Chain Id List of String

Example Inputs and Outputs

Rule Chain IdOutput
1c76053c-7de0-4880-89fd-473ce9e2de24
"Result", "NotSuppliedInputs"
Null ValueEXCEPTION MESSAGE
Empty StringEXCEPTION MESSAGE


Common Errors

Value cannot be null

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

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

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Fact Names From Rule Chain 1[GetFactNamesFromRuleChain] in flow [Flow 12]: Exception invoking method GetFactNamesFromRuleChain on class RuleChainEngine
 ---> DecisionsFramework.LoggedException: Exception invoking method GetFactNamesFromRuleChain 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
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.GetFactNamesFromRuleChain(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 ---


[BusinessRule] Flow not found

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

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

Exception Message:

Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] Flow not found at DecisionsFramework.Design.Flow.FlowEngine.LoadFlowByID(FlowLoadParameters flowLoadParameters
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.GetFactsFromRuleChain(String ruleChainId
 at DecisionsFramework.Design.Flow.RuleChaining.RuleChainEngine.GetFactNamesFromRuleChain(String ruleChainId)

Was this article helpful?