Esempio n. 1
0
        public virtual void testHistoricBatchQueryFilterByTenant()
        {
            // when
            IHistoricBatch returnedBatch = historyService.CreateHistoricBatchQuery(c => c.TenantId == TENANT_ONE).First();

            // then
            Assert.NotNull(returnedBatch);
            Assert.AreEqual(tenant1Batch.Id, returnedBatch.Id);
        }
Esempio n. 2
0
        public virtual void testHistoricBatchQueryFilterWithoutTenantId()
        {
            // when
            IHistoricBatch returnedBatch = historyService.CreateHistoricBatchQuery(c => c.TenantId == null).First();

            // then
            Assert.NotNull(returnedBatch);
            Assert.AreEqual(sharedBatch.Id, returnedBatch.Id);
        }
Esempio n. 3
0
        [Test]   public virtual void testHistoricBatchTenantId()
        {
            // given
            batchHelper.MigrateProcessInstanceAsync(tenant1Definition, tenant1Definition);

            // then
            IHistoricBatch historicBatch = historyService.CreateHistoricBatchQuery().First();

            Assert.AreEqual(TENANT_ONE, historicBatch.TenantId);
        }
        //JAVA TO C# CONVERTER TODO Resources.Task: Most Java annotations will not have direct .NET equivalent attributes:
        //ORIGINAL LINE: @After public void cleanBatch()
        public virtual void cleanBatch()
        {
            IBatch batch = engineRule.ManagementService.CreateBatchQuery().First();
            if (batch != null)
            {
                engineRule.ManagementService.DeleteBatch(batch.Id, true);
            }

            IHistoricBatch historicBatch = engineRule.HistoryService.CreateHistoricBatchQuery().First();
            if (historicBatch != null)
            {
                engineRule.HistoryService.DeleteHistoricBatch(historicBatch.Id);
            }
        }
Esempio n. 5
0
        public virtual void removeBatch()
        {
            IBatch batch = managementService.CreateBatchQuery().First();

            if (batch != null)
            {
                managementService.DeleteBatch(batch.Id, true);
            }

            IHistoricBatch historicBatch = historyService.CreateHistoricBatchQuery().First();

            if (historicBatch != null)
            {
                historyService.DeleteHistoricBatch(historicBatch.Id);
            }
        }