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);
        }
        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);
        }
 internal ProcessDefinition(BpmContext bpmContext,wf_processDefinition dataProcessDefinition)
 {
     _bpmContext = bpmContext;
     _nodeReader = new NodeReader(this, dataProcessDefinition.Xml);
     _model = dataProcessDefinition;
 }
 internal ProcessDefinition(BpmContext bpmContext, wf_processDefinition dataProcessDefinition)
 {
     _bpmContext = bpmContext;
     _nodeReader = new NodeReader(this, dataProcessDefinition.Xml);
     _model      = dataProcessDefinition;
 }