{"id":41890711,"url":"https://github.com/zone-7/andflow_go","last_synced_at":"2026-01-25T14:06:37.868Z","repository":{"id":64300532,"uuid":"571482185","full_name":"zone-7/andflow_go","owner":"zone-7","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-16T02:51:16.000Z","size":399,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T03:32:27.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zone-7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-28T08:26:10.000Z","updated_at":"2025-01-16T02:51:17.000Z","dependencies_parsed_at":"2024-05-17T04:28:47.105Z","dependency_job_id":"cba1f8ef-7de5-43ba-b911-b0f62cec4bd2","html_url":"https://github.com/zone-7/andflow_go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zone-7/andflow_go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-7%2Fandflow_go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-7%2Fandflow_go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-7%2Fandflow_go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-7%2Fandflow_go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zone-7","download_url":"https://codeload.github.com/zone-7/andflow_go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zone-7%2Fandflow_go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: 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-25T14:06:37.373Z","updated_at":"2026-01-25T14:06:37.850Z","avatar_url":"https://github.com/zone-7.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"这个项目使用golang开发，用于执行andflow的流程设计结果json文件。\n\n\u003cimg src=\"./doc/arch.png\"/\u003e\n\n#### 目前开源版本支持单机执行，需要支持集群并行计算版本请联系作者。\n\u003cimg src=\"./doc/wx.png\"/\u003e\n\n\n## 入门例子\n```\n\nimport (\n\t\"fmt\"\n\t\"io/ioutil\"\n\n\t\"github.com/zone-7/andflow_go/actions\"\n\t\"github.com/zone-7/andflow_go/andflow\"\n)\n\nfunc main() {\n\tfile := \"4执行脚本.json\"\n\n\tandflow.RegistActionRunner(\"common\", \u0026actions.CommonActionRunner{})\n\n\tparam := make(map[string]interface{})\n\n\tdata, _ := ioutil.ReadFile(file)\n\n\tflow, err := andflow.ParseFlow(string(data))\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\truntime := andflow.CreateRuntime(flow, param)\n\n\trunner := andflow.CommonFlowRunner{}\n\tandflow.Execute(runtime, \u0026runner, 10000)\n\n\tfmt.Println(\"time used(ms):\", runtime.Timeused)\n\n}\n\n\n```\n\n## 执行步骤如下：\n```\n    \n    //1. 设置参数\n\tparam := make(map[string]interface{})\n    //读取流程json文件 \n\tdata, _ := ioutil.ReadFile(demo_path + \"/5执行命令.json\")\n    //2. 解析json文件\n\tflow, err := andflow.ParseFlow(string(data))\n\tif err != nil {\n\t\tfmt.Println(err)\n\t}\n \n    //3. 创建一个运行时\n\truntime := andflow.CreateRuntime(flow, param)\n     \n    //4. 执行流程，超时时间是10000毫秒\n\tandflow.Execute(runtime, 10000)\n      \n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzone-7%2Fandflow_go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzone-7%2Fandflow_go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzone-7%2Fandflow_go/lists"}