Ejemplo n.º 1
0
        private ProcessType GetProcess(PoolElement poolElement)
        {
            ProcessType processType = new ProcessType();

            processType.Id                    = poolElement.ProcessGuid.ToString();
            processType.ProcessHeader         = new ProcessHeader();
            processType.ProcessHeader.Created = new Created()
            {
                Value = XpdlInfo.GetUtcDateTime(poolElement.CreatedOn)
            };
            processType.Name        = poolElement.Name;
            processType.Activities  = GetActivities(poolElement.Elements);
            processType.Transitions = GetTransitions(poolElement);
            return(processType);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add Package Header to Package
        /// </summary>
        public void CreateHeader()
        {
            PackageHeader header = new PackageHeader();

            header.XPDLVersion = new XPDLVersion()
            {
                Value = XpdlInfo.Version
            };
            header.Vendor = new Vendor()
            {
                Value = Assembly.GetExecutingAssembly().GetName().Name
            };
            //To Utc date time format
            header.Created = new Created()
            {
                Value = XpdlInfo.GetUtcDateTime(_document.CreatedOn)
            };
            Package.PackageHeader = header;
        }