public static byte[] ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, params string[] processDespKeys)
		{
			using (MemoryStream outputStream = new MemoryStream())
			{
				ExportProcessDescriptors(exportParams, outputStream, processDespKeys);

				outputStream.Flush();

				return outputStream.ToArray();
			}
		}
示例#2
0
        public static byte[] ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, params string[] processDespKeys)
        {
            using (MemoryStream outputStream = new MemoryStream())
            {
                ExportProcessDescriptors(exportParams, outputStream, processDespKeys);

                outputStream.Flush();

                return(outputStream.ToArray());
            }
        }
		public static void ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, Stream outputStream, params string[] processDespKeys)
		{
			exportParams.NullCheck("exportParams");
			processDespKeys.NullCheck("processDespKeys");

			WfExportProcessDescriptorContext context = new WfExportProcessDescriptorContext(exportParams);

			using (Package package = ZipPackage.Open(outputStream, FileMode.Create))
			{
				foreach (string key in processDespKeys)
				{
					WfProcessDescriptor processDesp = (WfProcessDescriptor)WfProcessDescriptorManager.LoadDescriptor(key);

					ExportProcessPart(package, processDesp, context);
					ExportMatrixPart(package, processDesp, context);
				}

				ExportMappingPart(package, context);
			}
		}
示例#4
0
        public static void ExportProcessDescriptors(WfExportProcessDescriptorParams exportParams, Stream outputStream, params string[] processDespKeys)
        {
            exportParams.NullCheck("exportParams");
            processDespKeys.NullCheck("processDespKeys");

            WfExportProcessDescriptorContext context = new WfExportProcessDescriptorContext(exportParams);

            using (Package package = ZipPackage.Open(outputStream, FileMode.Create))
            {
                foreach (string key in processDespKeys)
                {
                    WfProcessDescriptor processDesp = (WfProcessDescriptor)WfProcessDescriptorManager.LoadDescriptor(key);

                    ExportProcessPart(package, processDesp, context);
                    ExportMatrixPart(package, processDesp, context);
                }

                ExportMappingPart(package, context);
            }
        }
示例#5
0
        public WfExportProcessDescriptorContext(WfExportProcessDescriptorParams exportParams)
        {
            exportParams.NullCheck("exportParams");

            this._ExportParams = exportParams;
        }
		public WfExportProcessDescriptorContext(WfExportProcessDescriptorParams exportParams)
		{
			exportParams.NullCheck("exportParams");

			this._ExportParams = exportParams;
		}