Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/v2 #12

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a2029f3
feat: new state manager
retro Nov 19, 2023
9c3675f
feat: use new state manager
retro Nov 19, 2023
3edaf31
chore: rename: activate -> fire, complete -> exit
retro Nov 20, 2023
cbd83dc
feat: add support for work items in state manager
retro Nov 20, 2023
f992b99
start implementing support for work items
retro Nov 20, 2023
c1f4063
implement work item builder
retro Nov 22, 2023
e62ba2f
implement initial work item API
retro Nov 23, 2023
9fe60a2
refactor code, so state manager is not the dependency any more
retro Nov 23, 2023
dbdfab7
start fleshing out composite tasks
retro Nov 23, 2023
ab5540b
refactor code to make workflow, task and condition classes stateless
retro Nov 24, 2023
a85ef49
continue work on composite tasks
retro Nov 24, 2023
ca38a83
basic working engine with subworkflows
retro Nov 25, 2023
ccd5b36
first pass of the working engine with most features implemented
retro Nov 26, 2023
6eb5f38
wip
retro Nov 26, 2023
4c1ad28
WIP
retro Nov 27, 2023
2fc3692
partially wire up types from builder to services
retro Nov 28, 2023
98dbc4c
wip
retro Nov 29, 2023
5214388
wip
retro Nov 30, 2023
81fd1d4
wip
retro Nov 30, 2023
abbc26c
wip
retro Nov 30, 2023
32442c9
wip
retro Dec 1, 2023
3dd7b63
wip
retro Dec 1, 2023
4538bcf
wip
retro Dec 1, 2023
e515e5f
wip
retro Dec 1, 2023
48615ce
wip
retro Dec 2, 2023
873ae3a
tests
retro Dec 2, 2023
2c9e7c8
tests
retro Dec 2, 2023
bdc5eb6
wip
retro Dec 3, 2023
37d27a4
rename fire to start and exit to complete
retro Dec 3, 2023
c3c6b2e
tests
retro Dec 3, 2023
06de9bb
tests
retro Dec 3, 2023
3b4942b
tests
retro Dec 3, 2023
6fccd35
tests
retro Dec 3, 2023
9476d46
tests
retro Dec 3, 2023
edcaf03
update gh actions
retro Dec 3, 2023
51055c7
test only src folder
retro Dec 3, 2023
7cfea1c
update readme
retro Dec 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,33 @@
"Coverable",
"degit",
"esbuild",
"ESWI",
"fixedsize",
"Gilleland",
"gjuchault",
"graphviz",
"millis",
"nminusr",
"OCAI",
"OCOI",
"octocat",
"omarking",
"Persistable",
"Postset",
"premarked",
"qname",
"rankdir",
"remeda",
"rimbu",
"rmrf",
"socio",
"tasquencer",
"Unfinalized",
"WAWIT",
"WFOJ",
"wfojnet",
"wsts"
"wsts",
"WWAIT"
],
"flagWords": [],
"ignorePaths": [
Expand Down
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/prefer-return-this-type": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": [
"error", // or "error"
{
Expand Down
17 changes: 9 additions & 8 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@ about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1.
2.
3.

1.
2.
3.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Ubuntu 22.04, macOS 11.4]
- Node version [e.g 16.4.2]
- Code Version [e.g. 1.1.0]
**Desktop (please exit the following information):**

- OS: [e.g. Ubuntu 22.04, macOS 11.4]
- Node version [e.g 16.4.2]
- Code Version [e.g. 1.1.0]

**Additional context**
Add any other context about the problem here.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v1
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- run: npm ci

- name: Dependencies audit
Expand All @@ -34,4 +34,4 @@ jobs:
run: npm run spell:check

- name: Test
run: npm run test
run: npm run test
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ A BPM library for Node based on the concepts from https://yawlfoundation.github.
Example:

```typescript
Builder.workflow<{
const workflowDefinition = Builder.workflow<{
shouldBookFlight: boolean;
shouldBookCar: boolean;
}>('or-split-and-or-join')
}>()
.withName('or-split-join')
.startCondition('start')
.task('register', (t) => t.withSplitType('or'))
.task('book_flight')
.task('book_hotel')
.task('book_car')
.task('pay', (t) => t.withJoinType('or'))
.task('register', Builder.emptyTask().withSplitType('or'))
.task('book_flight', Builder.emptyTask())
.task('book_hotel', Builder.emptyTask())
.task('book_car', Builder.emptyTask())
.task('pay', Builder.emptyTask().withJoinType('or'))
.endCondition('end')
.connectCondition('start', (to) => to.task('register'))
.connectTask('register', (to) =>
Expand Down
103 changes: 50 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"types": "./build/src/index.d.ts",
"license": "MIT",
"engines": {
"node": "^18.16.0",
"npm": "^9.5.1"
"node": "^18.17.1",
"npm": "^9.6.7"
},
"volta": {
"node": "18.16.1",
"npm": "9.5.1"
"node": "18.17.1",
"npm": "9.6.7"
},
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -73,9 +73,9 @@
"vitest": "^0.32.4"
},
"dependencies": {
"@effect/match": "^0.38.0",
"big-integer": "^1.6.51",
"effect": "^2.0.0-next.45",
"mutative": "^0.5.0"
"effect": "^2.0.0-next.54",
"mutative": "^0.7.1",
"nanoid": "^5.0.3",
"type-fest": "^4.8.2"
}
}
Loading