Example #1
0
        private void ExecuteOpenFormControllerOperation()
        {
            IWfProcess process = WfClientContext.Current.OriginalActivity.Process;
            OpenFormControllerOperation operation = new OpenFormControllerOperation();

            string requestTicketString = HttpContext.Current.Request.QueryString.GetValue("requestTicket", string.Empty);

            if (requestTicketString.IsNotEmpty())
            {
                RelativeTicket requestTicket = RelativeTicket.DecryptFromString(requestTicketString);

                requestTicket.CheckIsValid();

                operation.IsRelativeForm = true;
            }

            operation.Process           = process;
            operation.NavigationCommand = CollectNavigationCommand(this.GetType());
            operation.SceneInfo         = CollectSceneInfo(this.GetType());

            OnInitOperation(operation);

            PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("DoOpenFormControllerOperation",
                                                                                () => operation.DoOperation());
        }
		private void ExecuteOpenFormControllerOperation()
		{
			IWfProcess process = WfClientContext.Current.OriginalActivity.Process;
			OpenFormControllerOperation operation = new OpenFormControllerOperation();

			string requestTicketString = HttpContext.Current.Request.QueryString.GetValue("requestTicket", string.Empty);

			if (requestTicketString.IsNotEmpty())
			{
				RelativeTicket requestTicket = RelativeTicket.DecryptFromString(requestTicketString);

				requestTicket.CheckIsValid();

				operation.IsRelativeForm = true;
			}

			operation.Process = process;
			operation.NavigationCommand = CollectNavigationCommand(this.GetType());
			operation.SceneInfo = CollectSceneInfo(this.GetType());

			OnInitOperation(operation);

			PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("DoOpenFormControllerOperation",
				() => operation.DoOperation());
		}