{"id":24370346,"url":"https://github.com/bitlap/kflow","last_synced_at":"2025-06-16T19:38:05.780Z","repository":{"id":37263668,"uuid":"149567586","full_name":"bitlap/kflow","owner":"bitlap","description":"Kotlin DSL for DAG-Flow execute engine.","archived":false,"fork":false,"pushed_at":"2022-06-20T22:41:07.000Z","size":40,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T18:04:08.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/bitlap.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}},"created_at":"2018-09-20T07:13:43.000Z","updated_at":"2021-08-26T02:14:34.000Z","dependencies_parsed_at":"2022-08-24T15:24:36.104Z","dependency_job_id":null,"html_url":"https://github.com/bitlap/kflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitlap/kflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitlap%2Fkflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitlap%2Fkflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitlap%2Fkflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitlap%2Fkflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitlap","download_url":"https://codeload.github.com/bitlap/kflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitlap%2Fkflow/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260224606,"owners_count":22977432,"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","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-19T04:24:15.002Z","updated_at":"2025-06-16T19:38:05.748Z","avatar_url":"https://github.com/bitlap.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KFlow\n\nKotlin DSL for DAG-Flow execute engine.\n\n## 1. Examples\n\n* Quick start\n\n```kotlin\n// start ---\u003e node1 ---\u003e node2 ---\u003e end\nval flow = flow {\n    // flow lines\n    start to \"node1\" to \"node2\" to end\n\n    // node handler\n    \"node1\" {\n        handler { flowData -\u003e\n            flowData[\"node1\"] = \"node1Data\"\n            println(\"${Thread.currentThread().name} -\u003e node1 handle\")\n        }\n    }\n\n    \"node2\" {\n        handler { flowData -\u003e\n            println(\"${Thread.currentThread().name} -\u003e node2 handle, get node1 data ${flowData[\"node1\"]}\")\n        }\n    }\n}\nflow.execute()\n```\n\n* ForkJoin example\n\n```kotlin\n/**\n * start ---\u003e node1 ------\u003e node2 ---\u003e node3 ----\u003e end\n *              |                                  ↑\n *              |       |-----\u003e f_node1 ---        |\n *              |---\u003e f_node              |---\u003e j_node\n *                      |-----\u003e f_node2 ---\n */\n```\n\nYou can reference to test cases.\n\n## 2. TODO\n\n* [ ] `Execute context` other build-in features.\n* [ ] Interrupt waiting/sleeping threads when throwing exception.\n* [ ] TODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitlap%2Fkflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitlap%2Fkflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitlap%2Fkflow/lists"}