Exemplo n.º 1
0
        protected override bool Execute(CodeActivityContext context)
        {
            int obj_id = ObjectID.Get(context);


            List <usp2_Info_GetFormulaHierarchy_ListResult> vallist = null;

            try
            {
                var res = ARM_Service.FL_GetFormulaHierarchy_List(obj_id, (enumTypeHierarchy)ObjectType);
                if (res != null)
                {
                    vallist = res.FormulaHierarchy;
                }
            }

            catch (Exception ex)
            {
                Error.Set(context, ex.Message);
                if (!HideException.Get(context))
                {
                    throw ex;
                }
            }

            if (vallist == null)
            {
                vallist = new List <usp2_Info_GetFormulaHierarchy_ListResult>();
            }
            FormulsList.Set(context, vallist);

            return(string.IsNullOrEmpty(Error.Get(context)));
        }