Skip to content

Commit

Permalink
Rule id and output id should be string by default and not numbers (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kislayverma authored Oct 9, 2016
1 parent 4a3c7cd commit 3c7e09e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public RuleSystemMetaData(
*/
public void applyCustomConfiguration(RuleInputConfigurator configuration) throws Exception {
RuleInputValueFactory.getInstance().registerRuleInputBuilder(
this.uniqueIdColumnName, BUILDER_REGISTRY.getDefaultBuilder(DefaultDataType.NUMBER.name()));
this.uniqueIdColumnName, BUILDER_REGISTRY.getDefaultBuilder(DefaultDataType.STRING.name()));
RuleInputValueFactory.getInstance().registerRuleInputBuilder(
this.uniqueOutputColumnName, BUILDER_REGISTRY.getDefaultBuilder(DefaultDataType.NUMBER.name()));
this.uniqueOutputColumnName, BUILDER_REGISTRY.getDefaultBuilder(DefaultDataType.STRING.name()));

if (configuration == null) {
for (RuleInputMetaData rimd : inputColumnList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Rule(RuleSystemMetaData ruleSystemMetaData, Map<String, String> inputMap)
ruleSystemMetaData.getUniqueIdColumnName(),
UNIQUE_ID_INPUT_ID,
RuleInputType.VALUE,
DefaultDataType.NUMBER.name(),
DefaultDataType.STRING.name(),
(ruleId == null) ? "" : ruleId));

// Construct rule input object representing ouput column
Expand All @@ -66,7 +66,7 @@ public Rule(RuleSystemMetaData ruleSystemMetaData, Map<String, String> inputMap)
ruleSystemMetaData.getUniqueOutputColumnName(),
UNIQUE_OUTPUT_ID_INPUT_ID,
RuleInputType.VALUE,
DefaultDataType.NUMBER.name(),
DefaultDataType.STRING.name(),
(ruleOutputId == null) ? "" : ruleOutputId));
}

Expand Down

0 comments on commit 3c7e09e

Please sign in to comment.