Repository navigation
feat: asynchronous process start for routed events (0.4.0) - #8
Merged
Merged
Conversation
…rameter [*] EventStore::transition() takes the origin status as its last argument, "received" by default, and rejects a terminal origin and a move to the origin itself. EventStatusTransition keeps its meaning: only from "received". Prepares the asynchronous process start, which leaves "routed". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…aim column [*] webhook_event gets start_claimed_at (the lease of a start attempt) and kind and id of the project, target, note and discussion reference, written with the row at insert and readable on the admin resource. New migration Version20261205225504 (Schema API, MySQL and PostgreSQL). No note text and no payload goes into the columns. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ProcessEngineInterface (deploy, start with business key, find instances with variables) is the only way the bundle talks to a process engine. FlowableProcessEngine implements it over dmstr/flowable-bundle and loads only when FlowableBundle is registered; otherwise MissingProcessEngine answers every call with engine_port_missing. A failure is a ProcessEngineException with a reason category and never the engine's text. New hard requirements: dmstr/flowable-bundle >=0.12.1 <0.15 and symfony/messenger ^7.4. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
On an uncompiled container a class excluded by file still has an abstract definition tagged container.excluded, so hasDefinition() is true. The registration test accepts that marker and checks both engine implementations symmetrically. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…cess:deploy [*] config/bpmn/webhook-answer.bpmn20.xml defines the process webhookAnswer: an external-worker task on the topic webhook-answer, an error boundary event and an external-worker task on webhook-error-answer. AnswerProcess holds key, resource name, topics and error code. The command deploys the definition to the Flowable connections of the process endpoints and uploads nothing when the deployed content is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nsport webhook [*] The intake dispatches one StartProcess message (event id only) after an event became routed and makes no engine call in the request. The handler claims the event (start_claimed_at, one conditional update), looks for an instance with the business key and the endpoint variable, starts the route's process definition otherwise and records started with the instance id. A failure carries only a reason category; after the last retry a listener sets the event to failed with it. The bundle prepends the routing of the message and, unless the application defines it, the transport webhook (in-memory, never sync). A start rejected with 422 is definition_not_deployed when the engine has no definition of the key. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ProcessStartCatchUp starts routed events without instance that were received between catch_up.min_age (300 s) and catch_up.max_age (86400 s) and whose claim is empty or expired, directly through the starter and not through the transport. An unrecoverable failure sets the event to failed, a retryable one leaves it routed for the next run. The command webhook:process:catch-up wraps it, with a limit and a dry run. The bundle ships no schedule; the application calls the service. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, workflow against both flowable-bundle bounds [*] README, CLAUDE.md and the changelog describe the asynchronous process start, the transport webhook an application has to define, the reason categories, the engine port, the answer process, both commands and the upgrade from 0.3.x with the check query for routed events. The workflow runs four jobs: MySQL and PostgreSQL against dmstr/flowable-bundle 0.12.1 and 0.14.0, with an assertion of the installed version. The suggestions for symfony/http-client and symfony/security-bundle go, both come with dmstr/flowable-bundle now. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
schmunk42
marked this pull request as ready for review
December 6, 2026 00:32
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release candidate for 0.4.0, based on 0.3.0.
StartProcessmessage (event id only) after an event becamerouted; a handler on the Messenger transportwebhookclaims the event, checks the engine for an instance with the business key and the endpoint variable, starts the route's process definition otherwise and recordsstartedwith the instance id. A failure carries only a reason category; after the last retry the event isfailedwith it.ProcessEngineInterfacewith a Flowable implementation overdmstr/flowable-bundle(loaded only when FlowableBundle is registered) andMissingProcessEngine.config/bpmn/webhook-answer.bpmn20.xml,AnswerProcessconstants, commandwebhook:process:deploy(uploads nothing when the deployed content is unchanged).ProcessStartCatchUpandwebhook:process:catch-upfor routed events without instance betweencatch_up.min_ageandcatch_up.max_age.Version20261205225504addsstart_claimed_atand the reference columns towebhook_event(Schema API, MySQL and PostgreSQL).dmstr/flowable-bundle >=0.12.1 <0.15andsymfony/messenger ^7.4are hard requirements now.EventStore::transition()as a parameter, in its own commit.The workflow runs MySQL 8 and PostgreSQL against flowable-bundle 0.12.1 and 0.14.0. See the upgrade notes in
CHANGELOG.md; its heading still readsUnreleasedand gets the date with the tag.Merge and tag only after the maintainer's approval.
🤖 Generated with Claude Code