Skip to content

Files

Latest commit

6123449 · May 16, 2025

History

History

dsl-interpreter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 17, 2024
Dec 6, 2021
Apr 20, 2022
Dec 6, 2021
Jul 6, 2022
Dec 3, 2024
Dec 3, 2024
Jan 24, 2023
Jan 24, 2023
Jan 13, 2023
May 16, 2025
Dec 13, 2024
Dec 11, 2021
Dec 11, 2021

README.md

DSL Interpreter Workflow

This sample demonstrates how to implement a DSL workflow, based on the Go equivalent. 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:

Running this sample

  1. temporal server start-dev to start Temporal Server.
  2. npm install to install dependencies.
  3. npm run start.watch to start the Worker.
  4. In another terminal, npm run workflow1 or npm run workflow2 to run the Workflows accordingly

Example 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]]