> > > Step-by-Step: Convert V1 Ruleset to V2 - Part 2

Step-by-Step: Convert V1 Ruleset to V2 - Part 2

13th June 2019

Cleo Clarify Version 2 Ruleset in text edito

There are many reasons Cleo Clarify customers want to migrate their existing Clarify set-ups to Version 2 (V2)

Part of the process of migrating to V2 is manually upgrading the ruleset(s)

In several posts, we will review the steps required to move from V1 to V2.

Replacing Rules

STEP 1: Next Number

GetNextNumberFromServer is now
new com.extol.ebi.reactor.server.actions.general.GetNextNumberFromServer().execute(“KeyHere”) => #[this]

STEP 2: RawMove

1. new Move().execute(“ ”) to new RawMove().execute(“ ”)

2. new SetToNull().execute() to new RawMove().execute(“ ”) 

STEP 3: Concatenate

ConcatenateWithTrim to
new ConcatenateMany().execute(null, null, input1, input2, null, null, null, null, null, null, null, null) => #[this]

STEP 4: Get Current Time

Note: Create a DateTime variable. In our example below we created one called: vDateTime

new GetCurrentDateTime().execute() => #[this.vDateTime]
new FormatDateTime().execute(this.vDateTime, “1yyDDD”) => #[target]

STEP 5: Convert Date From String

Note: Create a DateTime variable. In our example below we created one called: vDateTime

new CreateDateTimeFromString().execute(this, “yyyyMMdd”) => #[this.vDateTime]
new FormatDateTime().execute(this.vDateTime, “1yyDDD”) => #[target]        



Replacing Conditions

STEP 1: String Equals

1. new com.extol.ebi.ruleset.lang.actions.legacy.StringEquals2().execute to new StringEqualsNormalized()

2. new com.abc.core.other. NormalizedStringEQNormalizedStringFOR() to new StringEqualsNormalized()

Step 2: String Not Equals

1. new com.extol.ebi.ruleset.lang.actions.legacy.StringNotEquals().execute to new StringNotEqualsNormalized()

2. com.abc.core.other.NormalizedInputNENormalizedValueFOR().execute to new StringNotEqualsNormalized()

Step 3: Contains

new com.extol.ebi.ruleset.lang.actions.legacy.Contains().execute to new Contains().execute

Step 4: Greater Than Or Equals

new com.extol.ebi.ruleset.lang.actions.legacy.GreaterThanOrEquals().execute to new GreaterThanOrEquals().execute

Step 5: Less Than

new com.extol.ebi.ruleset.lang.actions.legacy.LessThan().execute to new LessThan().execute


By: on