Beispiel #1
0
        public virtual void testQueryByInvalidProcessInstanceIds()
        {
            // given
            IDictionary <string, object> variables1 = new Dictionary <string, object>();

            variables1["stringVar"] = "test";
            runtimeService.startProcessInstanceByKey(PROCESS_KEY, variables1);

            // when
            HistoricDetailQuery query = historyService.createHistoricDetailQuery();

            try
            {
                // when
                query.processInstanceIdIn(null);
                fail("A ProcessEngineException was expected.");
            }
            catch (ProcessEngineException)
            {
                // then fails
            }

            try
            {
                // when
                query.processInstanceIdIn((string)null);
                fail("A ProcessEngineException was expected.");
            }
            catch (ProcessEngineException)
            {
                // then fails
            }
        }