https://github.com/valiot/temporal-workflows
Temporal Workflows MVP
https://github.com/valiot/temporal-workflows
Last synced: 2 months ago
JSON representation
Temporal Workflows MVP
- Host: GitHub
- URL: https://github.com/valiot/temporal-workflows
- Owner: valiot
- Created: 2023-09-27T23:51:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-20T18:18:29.000Z (4 months ago)
- Last Synced: 2025-03-28T10:54:59.354Z (3 months ago)
- Language: TypeScript
- Size: 168 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DSL Interpreter Workflow
This sample demonstrates how to implement a DSL workflow, based on the [Go equivalent](https://github.com/temporalio/samples-go/tree/main/dsl). In this sample, we provide 2 sample yaml files each defines a custom workflow that can be processed by this DSL workflow sample code.
See also:
- https://github.com/Devessier/temporal-electronic-signature (implementing XState)
- https://martinfowler.com/articles/cant-buy-integration.html### Running this sample
1. `temporal server start-dev` to start [Temporal Server](https://github.com/temporalio/cli/#installation).
1. `npm install` to install dependencies.
1. `npm run start.watch` to start the Worker.
1. In another terminal, `npm run workflow1` or `npm run workflow2` to run the Workflows accordinglyExample output from workflow1:
```
[ '[activity1] arg1: ', '!' ] value1
[ '[activity2] arg: ', '!' ] [result from activity1: value1]
```Example output from workflow2:
```
[ '[activity1] arg1: ', '!' ] value1
[ '[activity2] arg: ', '!' ] [result from activity1: value1]
[ '[activity4] result1: ', '!' ] [result from activity1: value1]
[ '[activity1] arg1: ', '!' ] activity3 received arg2: value2:And received: [result from activity2: [result from activity1: value1]]
```