private void InitializeTemplate() { this.processTemplate.Value = WfConverterHelper.GetEmptyProcessDescriptorJsonString(); this.initActTemplate.Value = WfConverterHelper.GetEmptyInitialActivityDescriptorJsonString(); this.normalActTemplate.Value = WfConverterHelper.GetEmptyNormalActivityDescriptorJsonString(); this.completedActTemplate.Value = WfConverterHelper.GetEmptyCompletedActivityDescriptorJsonString(); this.tranTemplate.Value = WfConverterHelper.GetEmptyForwardTransitionDescriptorJsonString(); var templateCollection = WfActivityTemplateAdpter.Instance.LoadAvailableTemplates(); StringBuilder strBuilder = new StringBuilder(); templateCollection.ForEach(p => strBuilder.Append(p.Content + ",")); if (strBuilder.Length > 0) { strBuilder.Remove(strBuilder.Length - 1, 1); } this.actUserTemplate.Value = string.Format("[{0}]", strBuilder.ToString()); }
public void EmptyProcessDescriptorJsonStringTest() { Console.WriteLine(WfConverterHelper.GetEmptyProcessDescriptorJsonString()); }