示例#1
0
        private FormData GetOrAddFormData(Guid instanceId)
        {
            FormData formData;

            if (!WorkflowFacade.TryGetFormData(instanceId, out formData))
            {
                formData = new FormData();
                WorkflowFacade.AddFormData(instanceId, formData);
            }

            return(formData);
        }
示例#2
0
        public void DeliverCustomToolbarDefinition(Guid instanceId, IFormMarkupProvider customToolbarMarkupProvider)
        {
            FormData formData;

            if (WorkflowFacade.TryGetFormData(instanceId, out formData) == false)
            {
                formData = new FormData();
                WorkflowFacade.AddFormData(instanceId, formData);
            }

            formData.CustomToolbarMarkupProvider = customToolbarMarkupProvider;
        }
示例#3
0
        public void DeliverCustomToolbarDefinition(Guid instanceId, string customToolbarDefinition)
        {
            if (string.IsNullOrEmpty(customToolbarDefinition))
            {
                throw new ArgumentNullException("customToolbarDefinition");
            }
            FormData formData;

            if (WorkflowFacade.TryGetFormData(instanceId, out formData) == false)
            {
                formData = new FormData();
                WorkflowFacade.AddFormData(instanceId, formData);
            }

            formData.CustomToolbarDefinition = customToolbarDefinition;
        }
示例#4
0
        public void DeliverFormData(Guid instanceId, string containerLabel, IFlowUiContainerType containerType, IFormMarkupProvider formMarkupProvider, Dictionary <string, object> bindings)
        {
            FormData formData;

            if (WorkflowFacade.TryGetFormData(instanceId, out formData) == false)
            {
                formData = new FormData();
                WorkflowFacade.AddFormData(instanceId, formData);
            }

            formData.ContainerLabel     = containerLabel;
            formData.ContainerType      = containerType;
            formData.FormDefinition     = null;
            formData.FormMarkupProvider = formMarkupProvider;
            formData.Bindings           = bindings;
        }