private FormData GetOrAddFormData(Guid instanceId) { FormData formData; if (!WorkflowFacade.TryGetFormData(instanceId, out formData)) { formData = new FormData(); WorkflowFacade.AddFormData(instanceId, formData); } return(formData); }
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; }
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; }
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; }