/// <summary>
        /// Pushes the <see cref="TargetState"/> onto the workflow navigation context stack.
        /// </summary>
        public override void Execute()
        {
            IWorkflowManager        workflowManager = ServiceRegistration.Get <IWorkflowManager>();
            NavigationContextConfig config          = new NavigationContextConfig {
                NavigationContextDisplayLabel = _displayLabel,
                AdditionalContextVariables    = _workflowNavigationContextVariables
            };

            workflowManager.NavigatePushTransient(_transientState, config);
        }
Пример #2
0
        protected static void PushNewNavigationWorkflowState(WorkflowState newState, string navbarDisplayLabel, NavigationData newNavigationData)
        {
            IWorkflowManager workflowManager = ServiceRegistration.Get <IWorkflowManager>();

            workflowManager.NavigatePushTransient(newState, new NavigationContextConfig
            {
                AdditionalContextVariables = new Dictionary <string, object>
                {
                    { Consts.KEY_NAVIGATION_DATA, newNavigationData }
                },
                NavigationContextDisplayLabel = navbarDisplayLabel
            });
        }
Пример #3
0
        public void ShowScreenInTransientState(string screen)
        {
            IWorkflowManager workflowManager = ServiceRegistration.Get <IWorkflowManager>();

            workflowManager.NavigatePushTransient(new WorkflowState(Guid.NewGuid(), screen, screen, true, screen, false, true, ModelId, WorkflowType.Workflow), null);
        }