Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Adding Java Durable Entity samples. Creating the PR as a draft PR until the feature is released in the Durable Java SDK.
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
Prerequisites: Docker, Java 11+, Maven, Azure Functions Core Tools v4
Start local services
Test durable-task-sdks/java entities sample (Gradle)
Test durable-functions/java Entities sample (Maven)
Test durable-functions/java HelloCities sample (Maven, verify no regression)
In another terminal:
What to Check
Verify that the following are valid
./gradlew runEntitiesPatternsignals a counter entity directly, then runs 5 orchestrations that each producefinal value: 12SignalCounterreturns 202,GetCounterreturns the correct counter value as JSON,StartCounterOrchestrationcompletes withfinal value: 12SignalCounter?op=getreturns 400 with a message pointing toGetCountermvn clean packagethenmvn azure-functions:runstill works;StartChainingandStartFanOutFanInreturn orchestration resultssamples/durable-functions/java/README.md,HelloCities/README.md, andEntities/README.mdmatch the actual commands neededOther Information
azure-functions-maven-pluginpackagegoal is now bound to the Mavenpackagephase in both Java Functions samples, so the standard two-step flow (mvn clean package+mvn azure-functions:run) works out of the box — matching the Java Durable Functions quickstart.host.jsonstorage provider type was changed fromdurabletask-schedulertoazureManagedin both HelloCities and Entities to match what the local Functions runtime recognizes.durabletask-client:1.9.0anddurabletask-azuremanaged:1.9.0; the Functions sample usesdurabletask-azure-functions:1.9.0.AzureWebJobsStorage=UseDevelopmentStorage=trueinlocal.settings.json.