Ejemplo n.º 1
0
        public virtual void testQueryIncludeOutputsNoInput()
        {
            startProcessInstanceAndEvaluateDecision();

            HistoricDecisionInstanceQuery query = historyService.createHistoricDecisionInstanceQuery();

            assertThat(query.includeOutputs().singleResult().Outputs.size(), @is(0));
        }
Ejemplo n.º 2
0
        public virtual void testQueryIncludeOutputs()
        {
            startProcessInstanceAndEvaluateDecision();

            HistoricDecisionInstanceQuery query = historyService.createHistoricDecisionInstanceQuery();

            try
            {
                query.singleResult().Outputs;
                fail("expected exception: output not fetched");
            }
            catch (ProcessEngineException)
            {
                // should throw exception if output is not fetched
            }

            assertThat(query.includeOutputs().singleResult().Outputs.size(), @is(1));
        }