示例#1
0
        protected override void Execute(NativeActivityContext context)
        {
            //get data from context
            bool   getAllProperties  = GetAllProperties;
            string formXAMLPath      = FormXAMLPath.Get(context);
            string styleSheetPath    = StyleSheetPath.Get(context);
            string submitElementName = SubmitElementName.Get(context);
            string submitEventName   = SubmitEventName.Get(context);
            Dictionary <string, Dictionary <string, object> > input = InputDictionary.Get(context);

            string[] elementsToRetrieve = ElementsToRetrieve.Get(context);


            //launch form and get result data
            Dictionary <string, Dictionary <string, object> > results = FormsCreator.LaunchForm(
                formXAMLPath,
                styleSheetPath,
                submitElementName,
                submitEventName,
                input,
                AlwaysTop,
                GetAllProperties,
                elementsToRetrieve
                );

            //set output value
            OutputDictionary.Set(context, results);
        }
示例#2
0
        public Output execute(Input input)
        {
            inputDictionary = (InputDictionary)input;
            dictionary      = (Dictionary <String, String>)inputDictionary.getValue();

            operation = (String)inputDictionary
                        .AdditionalInformation[ApplicationConstants.Operation.OPERATION];

            return(performOperation());
        }