コード例 #1
0
        /// <summary>
        /// Called when [after add process view classes].
        /// </summary>
        /// <param name="assemblyCode">The assembly code.</param>
        /// <param name="process">The process.</param>
        /// <param name="assemblyGenerator">The assembly generator.</param>
        public override void OnAfterAddProcessViewClasses(StringBuilder assemblyCode, IProcessDefinition process, ServerAssemblyGenerator assemblyGenerator)
        {
            base.OnAfterAddProcessViewClasses(assemblyCode, process, assemblyGenerator);

            foreach (var processView in process.ProcessViews)
            {
                if (processView.ViewType != ProcessViewType.Document)
                    continue;

                var viewConfig = new DocumentProcessViewConfigurator();
                viewConfig.SetConfigurationString(processView.Configuration);
            }
        }
コード例 #2
0
        /// <summary>
        /// Called when [after add process view classes].
        /// </summary>
        /// <param name="assemblyCode">The assembly code.</param>
        /// <param name="process">The process.</param>
        /// <param name="assemblyGenerator">The assembly generator.</param>
        public override void OnAfterAddProcessViewClasses(StringBuilder assemblyCode, IProcessDefinition process, ServerAssemblyGenerator assemblyGenerator)
        {
            base.OnAfterAddProcessViewClasses(assemblyCode, process, assemblyGenerator);

            foreach (var processView in process.ProcessViews)
            {
                if (processView.ViewType != ProcessViewType.DataCollect)
                    continue;

                var viewConfig = new DataCollectProcessViewConfigurator();
                viewConfig.SetConfigurationString(processView.Configuration);

                if (viewConfig.ExistingRecordFields.Count > 0)
                    AddExistingRecordsClasses(assemblyCode, processView, viewConfig, process, assemblyGenerator);
            }
        }