{"id":24081493,"url":"https://github.com/beh01der/easyflow","last_synced_at":"2025-09-25T15:34:01.711Z","repository":{"id":7980990,"uuid":"9384432","full_name":"Beh01der/EasyFlow","owner":"Beh01der","description":"EasyFlow - Simple and lightweight Finite State Machine for Java","archived":false,"fork":false,"pushed_at":"2023-02-17T10:13:09.000Z","size":79,"stargazers_count":454,"open_issues_count":14,"forks_count":87,"subscribers_count":33,"default_branch":"master","last_synced_at":"2025-07-29T01:41:55.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://datasymphony.com.au/open-source/easyflow","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Beh01der.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}},"created_at":"2013-04-12T02:00:25.000Z","updated_at":"2025-05-21T13:28:47.000Z","dependencies_parsed_at":"2023-10-20T18:21:11.108Z","dependency_job_id":null,"html_url":"https://github.com/Beh01der/EasyFlow","commit_stats":{"total_commits":49,"total_committers":11,"mean_commits":4.454545454545454,"dds":0.5714285714285714,"last_synced_commit":"f2ec91a8872a6ed2756029ee2b1085f3e257baf1"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/Beh01der/EasyFlow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beh01der%2FEasyFlow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beh01der%2FEasyFlow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beh01der%2FEasyFlow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beh01der%2FEasyFlow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Beh01der","download_url":"https://codeload.github.com/Beh01der/EasyFlow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Beh01der%2FEasyFlow/sbom","scorecard":{"id":20842,"data":{"date":"2025-08-11","repo":{"name":"github.com/Beh01der/EasyFlow","commit":"f2ec91a8872a6ed2756029ee2b1085f3e257baf1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":"Code-Review","score":1,"reason":"Found 4/28 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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"}},{"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 6 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"}}]},"last_synced_at":"2025-08-14T16:46:34.779Z","repository_id":7980990,"created_at":"2025-08-14T16:46:34.779Z","updated_at":"2025-08-14T16:46:34.779Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276940935,"owners_count":25732409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-01-09T23:17:03.048Z","updated_at":"2025-09-25T15:34:01.678Z","avatar_url":"https://github.com/Beh01der.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"EasyFlow\n========\n\nEasyFlow 1.3 is out (12 Dec 2013)\n* refactored to use Java **enums** for states and events\n* added new example\n\nEasyFlow is a simple and lightweight Finite State Machine for Java\n\nWith **EasyFlow** you can:\n* implement complex logic but keep your code simple and clean\n* handle asynchronous calls with ease and elegance\n* avoid concurrency by using event-driven programming approach\n* avoid *StackOverflow* error by avoiding recursion\n* simplify design, programming and testing of complex java applications\n\nAll this in less then 30kB and no run-time overhead!\n\nHere is a simple example illustrating how a state machine can be definded and implemented with **EasyFlow**\n\nThis is a State diargam fragment describing a simple ATM workflow\n\nWith **EasyFlow** we can define the above state machine like this\n\n```java\nenum States implements StateEnum {\n    SHOWING_WELCOME, WAITING_FOR_PIN, RETURNING_CARD, SHOWING_WELCOME, ...\n}\n\nenum Events implements EventEnum {\n    cardPresent, pinProvided, cardExtracted, cancel, ...\n}\n...\nEasyFlow\u003cFlowContext\u003e flow =\n\n    from(SHOWING_WELCOME).transit(\n        on(cardPresent).to(WAITING_FOR_PIN).transit(\n            on(pinProvided).to(...).transit(\n                ...\n            ),\n            on(cancel).to(RETURNING_CARD).transit(\n                on(cardExtracted).to(SHOWING_WELCOME)\n            )\n        )\n    );\n```\nthen all what's left to do is to implement our state handlers like so\n```java\nwhenEnter(SHOWING_WELCOME, new ContextHandler\u003cFlowContext\u003e() {\n    @Override\n    public void call(final FlowContext context) throws Exception {\n        ...\n        btnOption1.setOnClickListener(new View.OnClickListener() {\n            @Override\n            public void onClick(View v) {\n                context.trigger(cardPresent);\n            }\n        });\n        ...\n    }\n});\n...\n```\nand start the flow\n```java\nflow.start(new FlowContext());\n```\nSee complete example [ATM emulator - Android application](https://github.com/Beh01der/EasyFlow-example-AtmEmulator/blob/master/src/au/com/ds/ef/ae/AtmEmulator/MainActivity.java)\n\nTo start using EasyFlow on your project, define Maven dependency like so\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eau.com.datasymphony\u003c/groupId\u003e\n    \u003cartifactId\u003eEasyFlow\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## See also\n[EasyFlow for Node.js](https://github.com/Beh01der/node-easy-flow)\n\n\nLicense [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeh01der%2Feasyflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeh01der%2Feasyflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeh01der%2Feasyflow/lists"}