Distributed Systems, Nodejs, Node, Typescript, JavaScript.
ctx.temporal.workflow.getHandle(orderId).query(getStatusQuery)), It gets a handle to the specific instance of the order function (called a Workflow Execution), sends the getStatusQuery, and returns the result. The getStatusQuery is defined in the order file and handled in the order function: