Example #1
0
  public TestCase execute(final APISession apiSession) {
    try {
      final TestHumanTask nextActivityInstance = getNextHumanTask(apiSession);
      if (nextActivityInstance != null) {
        nextActivityInstance.execute(apiSession);
      }
    } catch (final NoActivityLeftException e) {
      // there were no activity in the process
    }

    return this;
  }