﻿using System.Activities;
using System.Collections.Generic;
using Microsoft.Xrm.Sdk.Workflow;
using UltimateWorkflowToolkit.CoreOperations.Base;

namespace UltimateWorkflowToolkit.CoreOperations.RequestBuilder
{
    public class SetDecimalField: SetFieldWorkflowBase
    {
        #region Inputs

        [Input("Field Value")]
        [RequiredArgument]
        public InArgument<decimal> FieldValue { get; set; }

        #endregion Inputs

        protected override void AddField(ref Dictionary<string, object> dictionary, string fieldName)
        {
            dictionary.Add(fieldName, FieldValue.Get(Context.ExecutionContext));
        }
    }
}
