Пример #1
0
        private Client.ProcessType Parse(ProcessType processType)
        {
            var activity = this._workflowParser.Parse(WorkflowBuilder.GetCacheKey(processType)
                                                      , processType.Workflow.Serialized
                                                      , processType.ActivitySettings);

            return(new Client.ProcessType()
            {
                CreateTime = processType.CreateTime,
                Description = processType.Description,
                Name = processType.Name,
                Version = processType.Version,
                IsCurrent = processType.IsCurrent,
                Group = processType.Group,
                ActivityNames = processType.ActivitySettings.Select(o => o.ActivityName).ToArray(),
                DataFields = activity.Variables.Select(o => o.Name).ToArray()
            });
        }