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

            try
            {
                query.open().open();
                fail("It was possible to set a the open flag twice.");
            }
            catch (ProcessEngineException)
            {
            }
        }
Esempio n. 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());
        }