protected override void Execute(CodeActivityContext executionContext)
        {
            ITracingService tracingService = executionContext.GetExtension <ITracingService>();

            IWorkflowContext            context        = executionContext.GetExtension <IWorkflowContext>();
            IOrganizationServiceFactory serviceFactory = executionContext.GetExtension <IOrganizationServiceFactory>();
            IOrganizationService        service        = serviceFactory.CreateOrganizationService(context.UserId);
            string TafqitOutput =
                new ToWord(DecimalArgument.Get <Decimal>(executionContext),
                           new CurrencyInfo(
                               CurrencyInfo.GetCurrencyInfoFromOptionSetValue(
                                   TafqitTypeArgument.Get <OptionSetValue>(executionContext).Value)), false).ConvertToArabic();

            TafqitStringOutputOutArgument.Set(executionContext, TafqitOutput);
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor: Full Version
 /// </summary>
 /// <param name="number">Number to be converted</param>
 /// <param name="currency">Currency to use</param>
 /// <param name="englishPrefixText">English text to be placed before the generated text</param>
 /// <param name="englishSuffixText">English text to be placed after the generated text</param>
 /// <param name="arabicPrefixText">Arabic text to be placed before the generated text</param>
 /// <param name="arabicSuffixText">Arabic text to be placed after the generated text</param>
 public ToWord(Decimal number, CurrencyInfo currency, String englishPrefixText, String englishSuffixText, String arabicPrefixText, String arabicSuffixText)
 {
     InitializeClass(number, currency, englishPrefixText, englishSuffixText, arabicPrefixText, arabicSuffixText);
 }