microsoft / durabletask-java

Java SDK for Durable Functions and the Durable Task Framework
MIT License
13 stars 7 forks source link

Support for function chaining in Java SDK #121

Closed kanupriya15025 closed 1 year ago

kanupriya15025 commented 1 year ago

According to the document here https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-sequence?tabs=python, function chaining doesn't have examples on Java. So is it correct to assume it's not supported yet?

My use case here is to call my app like this : http://localhost:7071/api/orchestrators/EternalOrchestrator

There are 2 functions here:

  1. HTTP Starter Function
  2. Eternal Orchestrator Function

I should be able to route my request directly to Eternal Orchestrator from HTTP Starter. Like this example here : https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-sequence?tabs=csharp#run-the-sample

kanupriya15025 commented 1 year ago

Looks like it is supported. Just needed to change from "Route" to "route" from C# to Java.

However, it'll be great if the documentation could be updated :)

cgillum commented 1 year ago

FYI @lilyjma

lilyjma commented 1 year ago

@cgillum - looks like it's documented under the overview page of Durable functions, but not in the tutorials. Let me find out how we can add them to the tutorials.