JanssenProject / JanssenProject/jans
feat(agama): add foreign-call code-generation conformance tests for the transpiler
@imran-ishaq is already working on this.
Since Jun 24, 2026.
- Dominant language
- Java
- Stars
- 648
- Forks
- 174
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 110
Description
**Is your feature request related to a problem? Please describe.**
The transpiler's Call (foreign-routine) construct and its exception-capture form (result | error = Call …) are covered
only by syntax-pass tests; nothing asserts they generate the expected action-call code and capture-variable
declaration, so a code-generation regression could go unnoticed.
**Describe the solution you'd like**
Add a test that transpiles a flow with a static Call and the exception-capture form, asserting the generated code
contains the action-call invocation with the target class/method and declares the capture variable.
**Describe alternatives you've considered**
Relying on syntax-pass tests — rejected: they don't verify code generation for foreign calls.
**Additional context**
Part of the effort to add semantic/spec-conformance coverage to the Agama subsystem; covers the
transpiler/code-generation side of Call (runtime invocation is exercised by the engine's end-to-end tests on a
deployment).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.