BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.WorkFlow/Engine/ProcessDefinition.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
using System.Collections;
using System.Web;

namespace Zephyr.WorkFlow
{
    public class ProcessDefinition
    {
        private BpmContext _bpmContext;
        private wf_processDefinition _model;
        private NodeReader _nodeReader;
  
        internal ProcessDefinition(BpmContext bpmContext,wf_processDefinition dataProcessDefinition)
        {
            _bpmContext = bpmContext;
            _nodeReader = new NodeReader(this, dataProcessDefinition.Xml);
            _model = dataProcessDefinition;
        }

        internal ProcessDefinition(BpmContext bpmContext,string xmlString)
        {
            _bpmContext = bpmContext;
            _nodeReader = new NodeReader(this, xmlString);
            _model = new wf_processDefinition() { 
                Xml = xmlString,
                Name = _nodeReader._name,
                Description = _nodeReader._description,
                Version = bpmContext.getProcessDefinitionNextVersion(_nodeReader._name),
                EffectiveDate = DateTime.Now,
                Status = "1"
            };

            _model.Id = bpmContext.save(this);
        }

        public wf_processDefinition getProcessDefinitionModel()
        {
            return _model;
        }

        public Task getTaskByName(string name)
        {
            return _nodeReader.getTaskByName(name);
        }

       
        public IList<Task> getTaskList()
        {
            return _nodeReader.getTaskList();
        }

       
        public Task getStartTask()
        {
            return _nodeReader.getStartTask();
        }
        
后面还有 21 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。