{"@attributes":{"version":"2.0"},"channel":{"title":"Workflow on Dapr Docs","link":"https:\/\/docs.dapr.io\/developing-applications\/sdks\/java\/java-workflow\/","description":"Recent content in Workflow on Dapr Docs","generator":"Hugo","language":"en","item":{"title":"How to: Author and manage Dapr Workflow in the Java SDK","link":"https:\/\/docs.dapr.io\/developing-applications\/sdks\/java\/java-workflow\/java-workflow-howto\/","pubDate":"Mon, 01 Jan 0001 00:00:00 +0000","guid":"https:\/\/docs.dapr.io\/developing-applications\/sdks\/java\/java-workflow\/java-workflow-howto\/","description":"<p>Let&rsquo;s create a Dapr workflow and invoke it using the console. With the <a href=\"https:\/\/github.com\/dapr\/java-sdk\/tree\/master\/examples\/src\/main\/java\/io\/dapr\/examples\/workflows\">provided workflow example<\/a>, you will:<\/p>\n<ul>\n<li>Execute the workflow instance using the <a href=\"https:\/\/github.com\/dapr\/java-sdk\/blob\/master\/examples\/src\/main\/java\/io\/dapr\/examples\/workflows\/DemoWorkflowWorker.java\">Java workflow worker<\/a><\/li>\n<li>Utilize the Java workflow client and API calls to <a href=\"https:\/\/github.com\/dapr\/java-sdk\/blob\/master\/examples\/src\/main\/java\/io\/dapr\/examples\/workflows\/DemoWorkflowClient.java\">start and terminate workflow instances<\/a><\/li>\n<\/ul>\n<p>This example uses the default configuration from <code>dapr init<\/code> in <a href=\"https:\/\/github.com\/dapr\/cli#install-dapr-on-your-local-machine-self-hosted\">self-hosted mode<\/a>.<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.dapr.io\/getting-started\">Dapr CLI and initialized environment<\/a>.<\/li>\n<li>Java JDK 11 (or greater):\n<ul>\n<li><a href=\"https:\/\/www.oracle.com\/java\/technologies\/downloads\">Oracle JDK<\/a>, or<\/li>\n<li>OpenJDK<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/maven.apache.org\/install.html\">Apache Maven<\/a>, version 3.x.<\/li>\n<\/ul>\n<!-- IGNORE_LINKS -->\n<ul>\n<li><a href=\"https:\/\/www.docker.com\/products\/docker-desktop\">Docker Desktop<\/a><\/li>\n<\/ul>\n<!-- END_IGNORE -->\n<ul>\n<li>Verify you&rsquo;re using the latest proto bindings<\/li>\n<\/ul>\n<h2 id=\"set-up-the-environment\">Set up the environment<\/h2>\n<p>Clone the Java SDK repo and navigate into it.<\/p>"}}}