Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: Fix Bugzilla Bug --- 147145 Provide API to obtain Engine task status and errors

Title: [birt-dev]CheckIn: Fix Bugzilla Bug --- 147145 Provide API to obtain Engine task status and errors

- Summary:

- Bugzilla Bug (s) Resolved:
147145 Provide API to obtain Engine task status and errors
- Description:

  1. add APIs into IEngineTask to control the behavoir of error handling.
      IEngineTask.setErrorHandlingOption(int option)
      static final int CONTINUE_ON_ERROR = 0;
      static final int CANCEL_ON_ERROR = 1;
  2. the default option is CONTINUE_ON_ERROR. The error message will be logged into the error list and continue execution.

  3. If the error handling mode is set to CANCEL_ON_ERROR, the error message will be logged into the error list but the task will be canceled just like the user called cancel().

  

- Tests Description  :

   Unit Test.

- Notes to Build Team:

- Notes to Developers:

- Notes to QA:  

 
- Notes to Documentation:  

- Files Edited:
cvs ci -m "support cancel on error" -l "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/data/dte/NamedExpressionTest.java" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/data/dte/DataEngineTest.java" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilderTest.java" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/executor/ExecutorManagerTest.java" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/cancel-on-error.rptdesign" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/executor/ReportItemExecutorTestAbs.java" "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/CancelOnErrorTest.java"

cvs ci -m "support cancel on error" -l "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/IEngineTask.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java" "/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/EngineTask.java"


- Files Added:
cvs add -kkv "/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/CancelOnErrorTest.java"

- Files Deleted


-Wei Yan



Back to the top