示例#1
0
        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());
        }
示例#2
0
 public void EmptyNormalActivityDescriptorJsonString()
 {
     Console.WriteLine(WfConverterHelper.GetEmptyNormalActivityDescriptorJsonString());
 }