Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2856

assertExecutionEnded should check for executions in STATE_ENDED

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jBPM 4.3
    • Fix Version/s: jBPM 4.4
    • Component/s: None
    • Labels:
      None

      Description

      In the testing framework, the method assertExecutionEnded() seems to have a bug in it. It only checks whether a process instance has been deleted from the database. It should also check for the case where a process instance has not been deleted from the database, but has a state of Execution.STATE_ENDED.

      It would look something like this:

      public void assertExecutionEnded( final String processInstanceId )

      { final ProcessInstance pi = executionService.findProcessInstanceById( processInstanceId ); assertTrue( "Error: an active process instance with id " + processInstanceId + " was found", pi == null || Execution.STATE_ENDED.equals( pi.getState() ) ); }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rebody HuiSheng Xu
                  Reporter:
                  gubespam Mike M
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: