protected override void Execute(CodeActivityContext context) { var inputString = StringInArgument.Get(context); var returnValue = DoConversion(inputString); IntOutArgument.Set(context, returnValue); }
protected override void Execute(CodeActivityContext context) { var inputString = StringInArgument.Get(context); var stringToTrim = StringToTrimInArgument.Get(context); var returnValue = GetTrimmedString(inputString, stringToTrim); TrimmedStringOutArgument.Set(context, returnValue); }
protected override void Execute(CodeActivityContext context) { var inputString = StringInArgument.Get(context); var caseOption = CaseOptionInArgument.Get(context); var returnString = GetSetCase(inputString, caseOption); StringOutArgument.Set(context, returnString); }
protected override void Execute(CodeActivityContext context) { var stringInput = StringInArgument.Get(context); var decimalInput = DecimalInArgument.Get(context); var wholeNumberInput = WholeNumberInArgument.Get(context); var returnValue = ChooseConversion(stringInput, decimalInput, wholeNumberInput); MoneyOutArgument.Set(context, returnValue); }
protected override void Execute(CodeActivityContext context) { var intputString = StringInArgument.Get(context); var deliminator = DeliminatorInArgument.Get(context); var returnIndex = ReturnIndexInArgument.Get(context); var returnValue = GetSplitOutput(intputString, deliminator, returnIndex); StringOutArgument.Set(context, returnValue); }
protected override void Execute(CodeActivityContext context) { var t = context.GetExtension <ITracingService>(); var stringInput = StringInArgument.Get(context); try { var returnValue = DoConversion(stringInput); DateTimeOutArgument.Set(context, returnValue); } catch (FormatException) { t.Trace($"{DateTime.Now}: Could not convert input value - a formatting exception was thrown."); throw; } catch (Exception) { t.Trace($"{DateTime.Now}: Could not convert input value - a generic exception was thrown."); throw; } }