Create Rule Table From Definition
- 02 Feb 2023
- 3 Minutes to read
- Print
- DarkLight
Create Rule Table From Definition
- Updated on 02 Feb 2023
- 3 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 5.12.0 |
Location | Integration > Project Conversion |
The Create Rule Table From Definition step allows users to define the properties to create a Rule Table.
Properties
Inputs
Property | Description | Data Type | ||||
---|---|---|---|---|---|---|
Rule Table | Defines the properties for the Rule table | ConvertedRuleTable | ||||
HasNoMatchOutcome | Defines that the Rule has no match returns | Boolean | ||||
Rows | Defines a row of the Rule | List of | ||||
Cells | Defines the properties for the cell of the Rule | --- | ||||
Rules | Defines the properties for the Rule for the Row | --- | ||||
IsNegative | Defines that the value is not | --- | ||||
ListValue | Defines a list value | --- | ||||
MulipleValues | Defines multiple values | --- | ||||
Value | Defines a single value | --- | ||||
Verb | Defines what the verb for the Rule is | --- | ||||
Outputs | Defines what the output of the cell for the Rule is | --- | ||||
Rule Name | The name of the Rule | String | ||||
Description | Description of the Rule | String | ||||
Begin Date | Optional setting which controls when the Rule can be enabled. Used to set when the Rule is enabled | DateTime | ||||
End Date | Optional setting which controls when the Rule can be disabled. | DateTime | ||||
Rule Id | Specifies the desired String to use for identifying the Rule Table | String | ||||
Folder | The desired Folder to save the Rule | String | ||||
Input Data | Defines the input data for the Rule | List of DataDefinition | ||||
CanBeNull | Determines if the output data can be a null value | |||||
FullTypeName | The full type name of the data | |||||
IsList | Determines whether the output value is a list | |||||
Name | Defines the name of the output data input | |||||
Output Data | Defines the output data for the Rule | List of OutcomeDefinition | ||||
OutcomeData | Defines the output data for the Rule | |||||
CanBeNull | Determines if the output data can be a null value | |||||
FullTypeName | The full type name of the data | |||||
IsList | Determines whether the output value is a list | |||||
Name | Defines the name of the output data input | |||||
OutcomeName | Defines the name of the outcome data | |||||
Rule Type | Allows a user to select output behavior type from a dropdown list (to see the dropdown list select Constant mapping) | RuleType | ||||
Logical Rule | Outputs 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
Property | Description | Data Type |
---|---|---|
Output | Outputs the Id of the Rule | String |
Example Inputs and Outputs
Rule Table | Output |
---|---|
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?