Skip to content

Commit 932bb84

Browse files
committed
feat(sequences): add support for par(allel) steps
1 parent 4826eb0 commit 932bb84

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

docs/fishbone/docs/sequences.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ attribute | description
7070
--------- | -----------
7171
`name` | Optional: Name of this step. If not provided name of the filter or name of the contained sequence will be used.
7272
`card` | Optional: Cardinality of this step. Defaults to "exactly once/mandatory step" if not provided. Can be any of:<br/>`?`:zero or once, so an optional step,<br/>`*`:any number of times = 0.., so an optional step that can occur not at all or any number of times<br/>`+`:once or multiple times, so a mandatory step that can occur multiple times but at least once
73-
`canCreateNew`| Optional: Determines whether this step can create a new sequence occurrence. Defaults to `true`. Must not be `false` for the first step in a sequence. Set to `false` if this step shall only be checked for a created occurrence from an earlier step. So the `filter`,`sequence` or `alt` will be ignored then.
74-
`filter` | [DLT filter](https://mbehr1.github.io/dlt-logs/docs/filterReference#details) definition. If this filter matches a msg the step is seen as "matching". Either `filter`,`sequence` or `alt` must be provided.
73+
`canCreateNew`| Optional: Determines whether this step can create a new sequence occurrence. Defaults to `true`. Must not be `false` for the first step in a sequence. Set to `false` if this step shall only be checked for a created occurrence from an earlier step. So the `filter`, `sequence`, `alt` or `par` will be ignored then.
74+
`filter` | [DLT filter](https://mbehr1.github.io/dlt-logs/docs/filterReference#details) definition. If this filter matches a msg the step is seen as "matching". Either `filter`, `sequence`, `alt` or `par` must be provided.
7575
`sequence` | A definition of a `sub-sequence`. For this step a full sequence is used. This is useful to either break down a bigger sequence into smaller parts of if this step can be executed multiple times (e.g. with `card:*`) but consists of multiple events/steps. See [example](#example).
7676
`alt`| A definition for a list of alternative steps. The `alt` attribute is an array/list of step definitions. Any `card` or `canCreateNew` attribute will automatically be applied to the alternative steps. For this step to be `ok` exactly one step needs to be `ok`. See [example alt](#example-alternative-steps).
77+
`par`| A definition for a list of parallel steps. The `par` attribute is an array/list of step definitions. Single steps can have their own `card` or `canCreateNew` attribute and the step with `par` as well. For this step to be `ok` all mandatory steps ( `card` not `?,*` ) need to be `ok`. The order in which the parallel steps are fulfilled doesn't matter.
7778
7879
:::important
7980
A step must contain either a filter or a sub-sequence or an alt-list but not more than one!

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
},
144144
"dependencies": {
145145
"@vscode/extension-telemetry": "^0.8.4",
146-
"dlt-logs-utils": "0.8.0",
146+
"dlt-logs-utils": "0.9.0",
147147
"jju": "github:mbehr1/jju#3aa4169df926e99083fdd511d7c20b5bd9ba789f",
148148
"js-yaml": "^4.1.0",
149149
"json5": "2.2.3",

src/webview/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@testing-library/jest-dom": "^5.16.5",
1414
"@testing-library/react": "^13.4.0",
1515
"@testing-library/user-event": "^14.4.3",
16-
"dlt-logs-utils": "0.8.0",
16+
"dlt-logs-utils": "0.9.0",
1717
"dompurify": "^2.4.0",
1818
"jju": "github:mbehr1/jju#3aa4169df926e99083fdd511d7c20b5bd9ba789f",
1919
"js-yaml": "^4.1.0",

src/webview/yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -4259,10 +4259,10 @@ dir-glob@^3.0.1:
42594259
dependencies:
42604260
path-type "^4.0.0"
42614261

4262-
dlt-logs-utils@0.8.0:
4263-
version "0.8.0"
4264-
resolved "https://registry.yarnpkg.com/dlt-logs-utils/-/dlt-logs-utils-0.8.0.tgz#d8f7bc9aa331bbde9462431c3b2f37a464074e73"
4265-
integrity sha512-1bu5EQrnWRUdVn/vYmPzuIv2U1TFWlfiUmkHRe+Kn5uEcsrWx35Hd+xxr003CZyiFYhnQTnL2ElQrjswwrq3Og==
4262+
dlt-logs-utils@0.9.0:
4263+
version "0.9.0"
4264+
resolved "https://registry.yarnpkg.com/dlt-logs-utils/-/dlt-logs-utils-0.9.0.tgz#8a82a6e5b31d50eb8b3ae97ce0e794b76a13e84b"
4265+
integrity sha512-RlkF5qXv4HJRwv2VbHFD9NauwCBBBMkB81u8CuWCuaLxNqBNbQAuy5sE6L38XlC0JkD11YyImNfw8NFXcr5xTw==
42664266

42674267
dlv@^1.1.3:
42684268
version "1.1.3"

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2453,10 +2453,10 @@ dir-glob@^3.0.0, dir-glob@^3.0.1:
24532453
dependencies:
24542454
path-type "^4.0.0"
24552455

2456-
dlt-logs-utils@0.8.0:
2457-
version "0.8.0"
2458-
resolved "https://registry.yarnpkg.com/dlt-logs-utils/-/dlt-logs-utils-0.8.0.tgz#d8f7bc9aa331bbde9462431c3b2f37a464074e73"
2459-
integrity sha512-1bu5EQrnWRUdVn/vYmPzuIv2U1TFWlfiUmkHRe+Kn5uEcsrWx35Hd+xxr003CZyiFYhnQTnL2ElQrjswwrq3Og==
2456+
dlt-logs-utils@0.9.0:
2457+
version "0.9.0"
2458+
resolved "https://registry.yarnpkg.com/dlt-logs-utils/-/dlt-logs-utils-0.9.0.tgz#8a82a6e5b31d50eb8b3ae97ce0e794b76a13e84b"
2459+
integrity sha512-RlkF5qXv4HJRwv2VbHFD9NauwCBBBMkB81u8CuWCuaLxNqBNbQAuy5sE6L38XlC0JkD11YyImNfw8NFXcr5xTw==
24602460

24612461
doctrine@^3.0.0:
24622462
version "3.0.0"

0 commit comments

Comments
 (0)