You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "Christine-Jose (via GitHub)" <gi...@apache.org> on 2026/10/27 04:13:59 UTC

[I] Enhance the Work Item Handler to support process-level error handling through ProcessWorkItemHandlerException, including strategies such as RETRY. [incubator-kie]

Christine-Jose opened a new issue, #7237:
URL: https://github.com/apache/incubator-kie/issues/7237

   Currently, handling REST invocation failures through an error-handling subprocess may require extending or duplicating the REST WIH implementation. This is undesirable because it duplicates existing REST/Vert.x logic and may not integrate cleanly with the process editor/code generation.
   
   The REST WIH should be enhanced so that, when configured, failures during REST invocation (including unhandled exceptions and request/response errors) result in a ProcessWorkItemHandlerException. The existing process-level error-handling mechanism can then start the configured error-handling subprocess and apply the configured handling strategy, such as RETRY. This mechanism is already supported by the process engine for ProcessWorkItemHandlerException.
   
   **Proposed solution**
   
   - Add optional error-handling configuration to the REST Work Item Handler:
   - Error handler process ID
   - Error handling strategy (e.g. RETRY, COMPLETE, ABORT, RETHROW)
   - Prefer providing these values through the existing Work Item I/O/parameters rather than requiring UI changes, if feasible.
   - When the configuration is present and the REST invocation fails, the REST WIH should throw a ProcessWorkItemHandlerException containing:
   - The configured error handler process ID
   - The configured handling strategy
   - The original/root-cause exception
   - When the configuration is not provided, existing REST WIH behaviour must remain unchanged.
   - Reuse the existing REST WIH implementation and Vert.x/REST invocation logic rather than introducing a custom handler that duplicates the implementation.
   - Add or adapt examples/tests demonstrating REST invocation failure handled by an error subprocess, including the RETRY strategy.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org