Пример #1
0
        public void Draft_读取某租户下流程名的草稿定义(string bpmnFile)
        {
            var ex = Record.Exception(() =>
            {
                string bpmnName       = string.Join("", ctx.Guid2IntString(Guid.NewGuid()));
                Deployment deployment = AsyncHelper.RunSync <Deployment>(() => Save(bpmnFile, bpmnName));

                Deployment draft = AsyncHelper.RunSync <Deployment>(() => client.Draft(ctx.TenantId, bpmnName));

                Assert.NotNull(draft);
                Assert.True(deployment.Equals(draft));

                AsyncHelper.RunSync(() => client.Remove(deployment.Id));
            });

            Assert.Null(ex);
        }
Пример #2
0
        public void Draft_读取某租户下流程名的草稿定义(string bpmnFile)
        {
            var ex = Record.Exception(() =>
            {
                string bpmnName       = string.Join("", ctx.Guid2IntString(Guid.NewGuid()));
                Deployment deployment = Save(bpmnFile, bpmnName).GetAwaiter().GetResult();

                Deployment draft = client.Draft(ctx.TenantId, bpmnName).GetAwaiter().GetResult();

                Assert.NotNull(draft);
                Assert.True(deployment.Equals(draft));

                client.Remove(deployment.Id).GetAwaiter().GetResult();
            });

            Assert.Null(ex);
        }