Create Rule Table From Definition
  • 02 Feb 2023
  • 3 Minutes to read
  • Dark
    Light

Create Rule Table From Definition

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationIntegration > Project Conversion

The Create Rule Table From Definition step allows users to define the properties to create a Rule Table.


Properties

Inputs

PropertyDescriptionData Type
Rule TableDefines the properties for the Rule tableConvertedRuleTable

HasNoMatchOutcomeDefines that the Rule has no match returnsBoolean

RowsDefines a row of the RuleList of


CellsDefines the properties for the cell of the Rule---



RulesDefines the properties for the Rule for the Row---




IsNegativeDefines that the value is not---




ListValueDefines a list value---




MulipleValuesDefines multiple values---




ValueDefines a single value---




VerbDefines what the verb for the Rule is---


OutputsDefines what the output of the cell for the Rule is---

Rule NameThe name of the RuleString

DescriptionDescription of the RuleString

Begin DateOptional setting which controls when the Rule can be enabled. Used to set when the Rule is enabled
DateTime

End DateOptional setting which controls when the Rule can be disabled.
DateTime

Rule IdSpecifies the desired String to use for identifying the Rule Table String

FolderThe desired Folder to save the RuleString

Input DataDefines the input data for the RuleList of DataDefinition


CanBeNullDetermines if the output data can be a null value



FullTypeNameThe full type name of the data



IsListDetermines whether the output value is a list



NameDefines the name of the output data input


Output DataDefines the output data for the RuleList of OutcomeDefinition


OutcomeDataDefines the output data for the Rule




CanBeNullDetermines if the output data can be a null value




FullTypeNameThe full type name of the data




IsListDetermines whether the output value is a list




NameDefines the name of the output data input



OutcomeNameDefines the name of the outcome data


Rule TypeAllows a user to select output behavior type from a dropdown list (to see the dropdown list select Constant mapping)
RuleType


Logical RuleOutputs either a True or False boolean when the Rule executes
---


Data Return Rule (Single)
Outputs a single variable
---


Action Rule
Allows the execution of another Rule or Flow based on the outcome
---


Data Return Rule (Multiple, Composite Type)
Creates a new data type based on the output fields
---


Data Return Rule (Multiple)
Outputs multiple variables
---

Outputs

PropertyDescriptionData Type
OutputOutputs the Id of the RuleString

Example Inputs and Outputs

Rule TableOutput
RuleName:"RFS",FolderId:"",InputData[Name:"Re",FullTypeName:"System.String"],OutputData:[Name:"Name",FullTypeName:"System.String"]08dafb2d-c02e-5a5b-1f24-2216a00c20be
RuleName:null,FolderId:"",InputData[Name:"Re",FullTypeName:"System.String"],OutputData:[Name:"Name",FullTypeName:"System.String"]
EXCEPTION MESSAGE


Common Errors

Please provide a Valid Name

If the Rule Name is null or empty, the step will cause an error.

To correct this, specify a name for the Rule.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create Rule Table From Definition 1[CreateRuleTableFromDefinition] in flow [Flow 6]: Exception invoking method CreateRuleTableFromDefinition on class ImportRule
 ---> DecisionsFramework.LoggedException: Exception invoking method CreateRuleTableFromDefinition on class ImportRule
 ---> DecisionsFramework.LoggedException: Error creating new element registration with configuration data
 ---> DecisionsFramework.LoggedException: Error creating new element registration
 ---> DecisionsFramework.BusinessRuleException: [BusinessRule] Please provide a Valid Name 
at DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistrationUtils.Create(AbstractUserContext userContext, String folderId, String name, String templateId, ElementType elementType, String subElementType, String id, Boolean isHidden)
   --- End of inner exception stack trace --- at DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistrationUtils.Create(AbstractUserContext userContext, String folderId, String name, String templateId, ElementType elementType, String subElementType, String id, Boolean isHidden
 at DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistrationUtils.CreateWithConfigurationData(String folderId, String name, String templateId, ElementType elementType, String behaviorTypeName, String id, String subElementType, DataPair[] extraData, Boolean isHidden)
   --- End of inner exception stack trace --- at DecisionsFramework.ServiceLayer.Services.ConfigurationStorage.ElementRegistrationUtils.CreateWithConfigurationData(String folderId, String name, String templateId, ElementType elementType, String behaviorTypeName, String id, String subElementType, DataPair[] extraData, Boolean isHidden
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateRuleRegistration(BaseConvertedRule ruleData, Boolean useRuleIdForCreation
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateElementRegistration(BaseConvertedRule ruleData
 at RuleImportProject.ImportRule.CreateRuleTableFromDefinition(ConvertedRuleTable ruleTable)
   --- 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 ---


Object reference not set to an instance of an object

If the Row for the Rule is not configured correctly, the step will cause an error.

To correct this, define the properties for the Row field.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Create Rule Table From Definition 1[CreateRuleTableFromDefinition] in flow [Flow 6]: Exception invoking method CreateRuleTableFromDefinition on class ImportRule
 ---> DecisionsFramework.LoggedException: Exception invoking method CreateRuleTableFromDefinition on class ImportRule
 ---> System.NullReferenceException: Object reference not set to an instance of an object. 
at DecisionsFramework.ProjectConversion.ConvertedRuleTable.ConfigureRule(Rule rule
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateRuleRegistration(BaseConvertedRule ruleData, Boolean useRuleIdForCreation
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateElementRegistration(BaseConvertedRule ruleData
 at RuleImportProject.ImportRule.CreateRuleTableFromDefinition(ConvertedRuleTable ruleTable)
   --- 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 ---


A single value expected by rule step on input

If the ListValue field for a Cell has multiple values entered, the step will cause an error.

To correct this, use the MultipleValues field if a list of values is needed.

Exception Message:

Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] A single value expected by rule step on input
 at DecisionsFramework.Design.Flow.Service.TruthTable.TruthTableHelper.SetStepListValue(RuleStep step, String[] valueList
 at DecisionsFramework.ProjectConversion.ConvertedRuleTable.ConfigureRule(Rule rule
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateRuleRegistration(BaseConvertedRule ruleData, Boolean useRuleIdForCreation
 at DecisionsFramework.ProjectConversion.RuleImport.RuleCreator.CreateElementRegistration(BaseConvertedRule ruleData
 at RuleImportProject.ImportRule.CreateRuleTableFromDefinition(ConvertedRuleTable ruleTable)



Was this article helpful?