コード例 #1
0
        public void ProcessNodeInstanceAdapterLoadListTest()
        {
            ProcessNodeInstanceAdapter pna = new ProcessNodeInstanceAdapter();
            List <ProcessNodeInstance> pn  = pna.LoadList("F7D243D8-6B03-4DC4-8979-22C0991FB6B7");

            Console.WriteLine(pn.Count);
        }
コード例 #2
0
        public void ProcessNodeInstanceAdapterInsertTest()
        {
            ProcessNodeInstanceAdapter pna = new ProcessNodeInstanceAdapter();
            ProcessNodeInstance        pn  = new ProcessNodeInstance()
            {
                BizProcessID           = "unit_test",
                CreatedTime            = DateTime.Now,
                CreateTime             = DateTime.Now,
                CreatorName            = "unit_test_user",
                cUserID                = "unit_test_cUser",
                Description            = "unit_test_desc",
                Expression             = "test_Exp",
                ID                     = Guid.NewGuid().ToString(),
                IsDeleted              = false,
                IsHandSign             = false,
                LastUpdatedTime        = DateTime.Now,
                NodeID                 = "BFC6EF76-86D2-40D3-A7EB-37031A91357E",
                NodeInstanceID         = Guid.NewGuid().ToString(),
                NodeName               = "new_name",
                NodeSeq                = 1,
                NodeType               = 1,
                OperationType          = 1,
                PreviousNodeInstanceID = Guid.NewGuid().ToString(),
                ProcessID              = "47d1d866-4c1e-4ce9-81ae-4701e521d540",
                ProcessInstanceID      = "F7D243D8-6B03-4DC4-8979-22C0991FB6B9",
                ProcessType            = "test",
                RoleID                 = "123",
                Status                 = 0,
                UserCode               = "test",
                UserID                 = 2,
                UserName               = "******"
            };

            pna.Insert(pn);
        }
コード例 #3
0
        public void ProcessNodeInstanceAdapterUpdateTest()
        {
            ProcessNodeInstanceAdapter pna = new ProcessNodeInstanceAdapter();
            ProcessNodeInstance        pn  = pna.Load("C7D4D898-FC23-4F3C-90C4-BBF7AD20CDD7");

            pn.UserName    = "******";
            pn.Description = "UPDATE_DESC";
            pn.CreatedTime = pn.CreateTime.AddYears(100);
            pna.Update(pn);
        }
コード例 #4
0
        public void ProcessNodeInstanceAdapterDeleteListTest()
        {
            ProcessNodeInstanceAdapter pna = new ProcessNodeInstanceAdapter();

            pna.DeleteList("F7D243D8-6B03-4DC4-8979-22C0991FB6B9");
        }
コード例 #5
0
        public void ProcessNodeInstanceAdapterDeleteTest()
        {
            ProcessNodeInstanceAdapter pna = new ProcessNodeInstanceAdapter();

            pna.Delete("73930c93-d6cb-4bda-a455-f7304ce30292");
        }