Skip to content

feat(api): mark custom actions, require utils ^0.8.0 and api-configuration ^0.9.0 - #33

Merged
schmunk42 merged 4 commits into
masterfrom
feature/flowable-custom-action-markers
Nov 26, 2026
Merged

schmunk42 merged 4 commits into
masterfrom
feature/flowable-custom-action-markers

Conversation

@schmunk42

Copy link
Copy Markdown
Member

Summary

  • composer.json requires dmstr/api-platform-utils-bundle ^0.8.0 (was ^0.6.0) and dmstr/api-configuration-bundle ^0.9.0 (was ^0.7). dmstr/openapi-json-schema-bundle stays ^0.5.0 || ^0.6.0.
  • 14 HTTP operations carry extraProperties: ['custom_action' => true], the marker utils 0.8 turns into schema:Action entries of the Hydra documentation: POST /decisions/execute, /deployments/upload, /dmn_deployments/upload, /event_deployments/upload, /event_instances, /executions/{id}/trigger, /external_worker_jobs/acquire, /external_worker_jobs/{id}/{complete,fail,bpmnError,unacquire}, /process_definitions/{id}/start, /tasks/{id}/complete and GET /jobs/{id}/stacktrace.
  • Not marked: the two input_schema GETs, POST /process_instances, the other CRUD operations including DELETE, and the MCP tools. No operation behaves differently.
  • README and CHANGELOG for 0.15.0.

Tests

  • tests/Metadata/CustomActionMarkerTest.php pins the exact set on the attribute metadata (strict true, resource label kept).
  • tests/Http/CustomActionHydraDocumentationTest.php pins the 14 actions under /api/flowable/ in /api/docs.jsonld (schema:Action, hydra:title, @id or hydra:uriTemplate).
  • Both fail without the markers. Checked by mutation: removing a marker, marking POST /process_instances, or using 1 instead of true turns them red; a marker on an MCP tool does not.
  • Full suite: OK (1428 tests, 7193 assertions) with utils 0.8.1 and api-configuration 0.9.0.

🤖 Generated with Claude Code

schmunk42 and others added 4 commits November 26, 2026 20:55
…ration-bundle ^0.9.0 [*]

The utils bundle 0.8 evaluates the custom_action marker and the
api-configuration bundle 0.9 is the first release built against it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The 14 HTTP operations that are neither CRUD nor an input schema carry
extraProperties custom_action => true, the marker api-platform-utils-bundle
0.8 turns into schema:Action entries of the Hydra documentation. A metadata
test pins the exact set and that the resource label survives the merge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Walks the class operations and the entrypoint properties of /api/docs.jsonld
and expects exactly the 14 marked operations under /api/flowable as
schema:Action entries, titled by their operation name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… the README [*]

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@schmunk42 schmunk42 self-assigned this Nov 26, 2026
@schmunk42
schmunk42 merged commit e7aa366 into master Nov 26, 2026
2 checks passed
@schmunk42
schmunk42 deleted the feature/flowable-custom-action-markers branch November 26, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant