{"id":20494065,"url":"https://github.com/jaystack/worksharp","last_synced_at":"2025-10-07T14:20:39.769Z","repository":{"id":146253535,"uuid":"134561650","full_name":"jaystack/WorkSharp","owner":"jaystack","description":"Workflow composition library for Task\u003cT\u003e based, non-persisted (in-memory) workflows","archived":false,"fork":false,"pushed_at":"2018-06-04T13:07:10.000Z","size":34,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-16T05:55:55.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/jaystack.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":"2018-05-23T11:48:18.000Z","updated_at":"2018-06-04T13:07:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"84b025c6-4204-4d12-bbc1-c488117f56ff","html_url":"https://github.com/jaystack/WorkSharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2FWorkSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2FWorkSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2FWorkSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaystack%2FWorkSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaystack","download_url":"https://codeload.github.com/jaystack/WorkSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242075649,"owners_count":20068226,"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":"2024-11-15T17:38:06.383Z","updated_at":"2025-10-07T14:20:34.744Z","avatar_url":"https://github.com/jaystack.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿### WorkSharp\r\n\r\nWorkSharp is a task based workflow composition tool. Its main goal is to allow defining complex async process flows via configuration. \r\nThis is done by creating the building blocks in C# and defining the workflow in JSON utilzing CSharp Script to glue to pieces together.\r\n\r\n### Example workflow definitions\r\n\r\n```json\r\n{\r\n  \"_type\": \"Sequence\",\r\n  \"items\": [\r\n    { \"_type\": \"Assign\", \"name\": \"Scope.Url\", \"expression\": \"\\\"https://jsonplaceholder.typicode.com/posts\\\"\" },\r\n    {\r\n      \"_type\": \"HttpGet\",\r\n      \"_resultTo\": \"Scope.ContentList\",\r\n      \"url\": \"Scope.Url\"\r\n    },\r\n    {\r\n      \"_type\": \"Assign\",\r\n      \"name\": \"Scope.SelectedContent\",\r\n      \"expression\": \"Scope.ContentList[0]\"\r\n    },\r\n    {\r\n      \"_type\": \"Delay\",\r\n      \"_resultTo\":  \"Scope.DelayTime\",\r\n      \"duration\": \"1000 * 2 + 42\"\r\n    },\r\n    {\r\n      \"_type\": \"ConsoleWrite\",\r\n      \"message\": \"$\\\"We were also Delayed {Scope.DelayTime} ms before we could see this -\u003e {Scope.SelectedContent.body}\\\"\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n### How to use\r\n\r\n```C#\r\n\tvar jsonText = File.ReadAllText(Directory.GetCurrentDirectory() + \"\\\\wf.json\");\r\n\tExpandoObject json = JsonConvert.DeserializeObject\u003cExpandoObject\u003e(jsonText);\r\n\tvar ws = new WorkSharp.WorkSharp();\r\n\tvar wf = ws.CreateFromJSON(json);\r\n\tvar r = await wf.Invoke(((dynamic)new ExpandoObject()));\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fworksharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaystack%2Fworksharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaystack%2Fworksharp/lists"}