add workflow system event listener demo#1037
Conversation
b4f09e6 to
43e1ad7
Compare
43e1ad7 to
35fa7f3
Compare
|
There was a problem hiding this comment.
Pull request overview
Adds a new workflow demo that starts processes in response to workflow system events (task/case created/changed), including a reusable ProcessStartEventBean and a corresponding example process with test coverage.
Changes:
- Introduce
WorkflowSystemEventListenerBean(aProcessStartEventBean) that registers anISystemEventListenerfor workflow system events and starts a process on matching events. - Add a new demo process model + dataclass to showcase reacting to task created/changed events and executing follow-up logic.
- Add a new BPM test for the demo and adjust a few existing tests / CI Maven args.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
workflow/workflow-demos/src/ch/ivyteam/ivy/system/event/WorkflowSystemEventListenerBean.java |
New start-event bean that registers/unregisters a workflow system event listener and starts a process with event parameters. |
workflow/workflow-demos/processes/WorkflowSystemEvent/WorkflowSystemEventListeners.p.json |
New demo process wiring program-starts to workflow events and scripts that filter/act on task IDs. |
workflow/workflow-demos/dataclasses/WorkflowSystemEvent/WorkflowSystemEventListenersData.d.json |
Data class for passing workflow system event parameters + collected task IDs through the demo process. |
workflow/workflow-demos-test/src_test/test/bpm/TestWorkflowSystemEventListeners.java |
New automated test asserting executions triggered by workflow system events. |
workflow/workflow-demos-test/src_test/test/bpm/TestProcurementRequestUserTask.java |
Formatting changes + adjust how end data is retrieved from executed task. |
workflow/workflow-demos-test/src_test/test/bpm/TestProcurementRequest.java |
Formatting changes + adjust how end data is retrieved from executed task. |
workflow/workflow-demos-test/src_test/test/bpm/TestBusinessCaseDataWorkflow.java |
Test assertion relaxed from strict element sequence to presence-based checks. |
.github/workflows/ci.yml |
Add Maven property to use latest engine minor version (tests still skipped in GitHub CI). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Could you show it to us after the daily tomorrow? I think others are interested in this too. |
|
@weissreto Regarding using |
…SystemEventListeners.p.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
e020a31 to
d805c54
Compare
As discussed on the desc |
I can also give you a live demo if you wish 😉