{"id":36604411,"url":"https://github.com/labai/opa","last_synced_at":"2026-01-12T08:42:20.068Z","repository":{"id":46280449,"uuid":"58852241","full_name":"labai/opa","owner":"labai","description":"OPA - Openedge Procedure Adapter","archived":false,"fork":false,"pushed_at":"2025-08-23T05:36:45.000Z","size":147,"stargazers_count":5,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-24T08:49:09.143Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/labai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-05-15T08:50:42.000Z","updated_at":"2025-08-23T05:36:43.000Z","dependencies_parsed_at":"2024-01-07T07:24:17.388Z","dependency_job_id":"b045a8fd-df8c-4bd8-b25b-9c940362f5c6","html_url":"https://github.com/labai/opa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/labai/opa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labai%2Fopa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labai%2Fopa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labai%2Fopa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labai%2Fopa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/labai","download_url":"https://codeload.github.com/labai/opa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/labai%2Fopa/sbom","scorecard":{"id":576339,"data":{"date":"2025-08-11","repo":{"name":"github.com/labai/opa","commit":"0b08dd5b3c4c8c6e71ac1b4c4a813046a01ca757"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T17:53:49.192Z","repository_id":46280449,"created_at":"2025-08-20T17:53:49.193Z","updated_at":"2025-08-20T17:53:49.193Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-12T08:42:18.727Z","updated_at":"2026-01-12T08:42:20.063Z","avatar_url":"https://github.com/labai.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OPA - Openedge Procedure Adapter\n\n----\n## ABOUT\n\nOPA is adapter for OpenEdge ABL (Progress 4GL) procedure call from Java.\n\n#### Problem to solve\n\nTo call procedures from Java, Progress offers to use ProxyGen. It requires few steps:\n\n1. To have prepared ProxyGen project.\n2. Compile .p code into .r code.\n3. Move these .r code to some place where ProxyGen project will see them.\n4. Generate ugly java classes.\n5. Move these classes to your Java project.\n\nIf procedure parameters (input/output parameters, temp-table) is changed, then it require to repeat all steps again.\n\n#### Solution\n\nOPA offers flexible and easy way to call of OpenEdge procedures with runtime parameter mapping.\n\nOPA uses dedicated class with Java annotations to describe parameters and temp-table fields (Java list of entities). \nWhen need to call OpenEdge ABL procedure, just create instance of that class, assign values to input parameters, fill List (temp-table) and call OpenEdge procedure.\nOPA automatically (on the fly) maps input parameters from Java class to OpenEdge procedure, calls that procedure and fills output parameters with procedure result.\n\n----\n## USAGE\n\n\nIt is required to add dependency in pom.xml, to use OPA:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.labai\u003c/groupId\u003e\n    \u003cartifactId\u003eopa\u003c/artifactId\u003e\n    \u003cversion\u003e1.5.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\nAlso `o4glrt.jar` from OpenEdge install dir must be accessible. \nIt is good idea to add this jar as artifact into maven repository and use as dependency in pom.xml.\n\nFor using with OpenEdge PAS 12.0 see in \n[Opa-on-PAS-v12](docs/wiki/Opa-on-PAS-v12.md) in wiki.\n  \n\n---\n## MORE INFO\n\n- It is free.\n- Is in production since 2014.\n- Supports connection pool.\n- Supports wide range of types, used in Java and Progress.\n- Temp-table can be automatically mapped to List.\n\n----\n## SAMPLES\n\n#### Sample 1: with simple parameters\n```java\npublic class OpaDemo {\n    public static void main(String[] args) throws OpaException {\n        // in real app OpaServer should be as service (single per application)\n        OpaServer server = new OpaServer(\"AppServer://progress.app.server/asprosv\", \"-\", \"-\", SessionModel.STATE_FREE);\n        BankCodeOpp opp = new BankCodeOpp();\n        opp.bankCode = \"112233\";\n        server.runProc(opp);\n        System.out.println(\"name:\" + opp.bankName);\n    }\n\n    @OpaProc(proc=\"get_bank_by_code.p\")\n    private static class BankCodeOpp {\n\n        @OpaParam(io=IN)\n        public String bankCode;\n\n        @OpaParam(io=OUT)\n        public String bankName;\n\n        @OpaParam(io=OUT)\n        public Integer errorCode;\n\n        @OpaParam(io=OUT)\n        public String errorMessage;\n    }\n}\n```\nOpenEdge procedure parameters:\n```\ndefine input  parameter bankCode     as character initial ?.  \ndefine output parameter bankName     as character initial ?.  \ndefine output parameter errorCode    as integer   initial ?.  \ndefine output parameter errorMessage as character initial ?.  \n```\n\n#### Sample 2: with output temp-table\n```java\npublic class OpaDemo2 {\n\n    public static void main(String[] args) throws OpaException {\n        // in real app OpaServer should be as service (single per application)\n        OpaServer server = new OpaServer(\"AppServer://progress.app.server/asprosv\", \"-\", \"-\", SessionModel.STATE_FREE);\n\n        GetCustomerAccountsOpp opp = new GetCustomerAccountsOpp();\n        opp.customerId = \"123456\";\n        server.runProc(opp, \"get_customer_accounts.p\");\n        for (Account ac: opp.accounts) {\n            System.out.println(\"acc: \" + ac.iban + \"-\" + ac.currency);\n        }\n    }\n\n    // Openedge Procedure Parameters definition\n    @OpaProc\n    public static class GetCustomerAccountsOpp {\n\n        @OpaParam\n        public String customerId;\n\n        @OpaParam(table=Account.class, io=IoDir.OUT)\n        public List\u003cAccount\u003e accounts;\n\n        @OpaParam(io=IoDir.OUT)\n        public String errorCode;\n\n        @OpaParam(io=IoDir.OUT)\n        public String errorMessage;\n    }\n\n    // entity (temp-table)\n    @OpaTable\n    public static class Account {\n        @OpaField\n        public String iban;\n        @OpaField\n        public String currency;\n        @OpaField\n        public BigDecimal amount;\n    }\n}\n```\n\nMore samples can be found in OPA tests (https://github.com/labai/opa/tree/master/src/test/java/com/github/labai/opa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabai%2Fopa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabai%2Fopa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabai%2Fopa/lists"}