Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testQueryByInvalidResolved()
        public virtual void testQueryByInvalidResolved()
        {
            HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

            try
            {
                query.resolved().resolved();
                fail("It was possible to set a the resolved flag twice.");
            }
            catch (ProcessEngineException)
            {
            }
        }
Пример #2
0
        public virtual void testCreateSecondHistoricIncident()
        {
            startProcessInstance(PROCESS_DEFINITION_KEY);

            string jobId = managementService.createJobQuery().singleResult().Id;

            managementService.setJobRetries(jobId, 1);

            executeAvailableJobs();

            HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();

            assertEquals(2, query.count());

            // the first historic incident has been resolved
            assertEquals(1, query.resolved().count());

            query = historyService.createHistoricIncidentQuery();
            // a new historic incident exists which is open
            assertEquals(1, query.open().count());
        }