protected override void Execute(CodeActivityContext executionContext) { // Get the input paramaters String originalString = OriginalString.Get <String>(executionContext); String comparitor = ComparisonString.Get <String>(executionContext); // Compare the inputted owner to comparison string then return true or false if (originalString.Equals(comparitor)) { EqualsString.Set(executionContext, true); } else { EqualsString.Set(executionContext, false); } }
protected override void Execute(CodeActivityContext context) { IDistanceEngine engine = DistanceEngineFactory(BaseString.Get(context)); Distance.Set(context, engine.Distance(ComparisonString.Get(context))); }