Temporal Workflow simple example
This example demonstrates a minimal Temporal workflow where a workflow interface defines a greeting method and an implementation class returns the greeting string. The code shows how a worker registers the workflow implementation with a task queue and starts polling, while a separate starter creates a workflow client, specifies workflow options like task queue and workflow ID, and invokes the method. Using Temporal’s `WorkflowClient`, `WorkerFactory`, and `Worker` APIs, the example illustrates the separation between workflow definition, worker execution, and client-side invocation, with the workflow result printed after execution. The source is a gist by Abhay-Joshi-Git.