-
Notifications
You must be signed in to change notification settings - Fork 2
Samples
This Temporal workflow sample is taken practically without any changes from this .NET project template sample created by the Temporal team.
MoneyTransferWorker project implements the actual workflow and the worker initialization routine.
The only changes to the original code are:
- Minor workflow definition changes to accommodate workflow graph nodes, which have no direct equivalent in Temporal (e.g.decisions).
- Project post-build event that emits a workflow definition file during Release build.
This is a deliberately minimalist static page with no runtime dependencies except the Mermaid rendering library. This sample demonstrates how to integrate Mermaid diagrams in the HTML content and implement interactive behavior (e.g. clickable nodes)
This page is a great way to verify the accuracy of the graph generated with Temporalio.Graphs. See the live interactive demo).
Samples/MoneyTransfer.Graph.Client
This sample is a .NET Web application that demonstrates how to:
- Retrieve from the Temporal server information about:
- Initiated workflows (e.g. pending, in-progress, completed)
- Specific workflow details and event history
- Start a new workflow
- Start a special type of workflow that mocks all activities and returns Mermaid graph definition
- Start/Stop the local Temporal server or workflow worker
- Integrate the workflow graph:
- Render the workflow graph diagram from the Mermaid definition produced by the Samples/MoneyTransferWorker sample during the Release build.
- Show the current workflow step
- Handle user interactions with graph nodes
Limitations: This sample is deliberately designed to have no dependencies on any web frameworks/libraries and not to adhere to proper coding standards. It is a quick-and-dirty pure proof of concept exercise that helps developers to show "how-to" but does not provide any solution of a production strength.
Below is the screenshot of the working application:
