durable-task-java

Orchestrate durable Java workflows with the Durable Task Scheduler.

60|28|Updated Mar 13, 2025
One-click install
npx skills add https://github.com/Azure-Samples/Durable-Task-Scheduler --skill durable-task-java
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-task-java
Source: https://github.com/Azure-Samples/Durable-Task-Scheduler/tree/main/.github/skills/durable-task-java
Command: npx skills add https://github.com/Azure-Samples/Durable-Task-Scheduler --skill durable-task-java

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enable Java applications to orchestrate durable, fault-tolerant workflows with the Durable Task Scheduler. The Durable Task Scheduler enables deterministic execution and reliable state management for long-running processes across distributed components.

Core Features & Use Cases

  • Deterministic orchestrations: Guarantee replay consistency when workflows resume after interruptions.
  • Pattern support: Function chaining, fan-out/fan-in, sub-orchestrations, human interaction, monitoring, and eternal orchestrations.
  • Environment flexibility: Run orchestrations in on-premises, cloud, or containerized deployments using the Java SDK and Azure-managed connectors.
  • Use Case: Orchestrate order processing, data pipelines, and long-running business processes with built-in retries and state persistence.

Quick Start

Install the Durable Task Java SDK, implement an orchestration via TaskOrchestrationFactory and TaskActivityFactory, and run against a local DTS emulator or your scheduler endpoint.

Frequently Asked Questions about durable-task-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build deterministic Java workflows for distributed microservices?

Deterministic Java workflows guarantee replay consistency when processes resume after interruptions. You implement them using TaskOrchestrationFactory and TaskActivityFactory with the Durable Task Java SDK, ensuring explicit activity boundaries and external events.

What retry patterns are available for long-running Java business processes?

Long-running Java business processes support built-in retries and state persistence. The Durable Task Scheduler enables pattern-based orchestration, including function chaining, fan-out/fan-in, and sub-orchestrations for reliable execution.

Can I run durable task orchestrations in on-premises or containerized Java environments?

Durable task orchestrations run in on-premises, cloud, or containerized deployments. The Java SDK connects via Azure-managed connectors to your scheduler endpoint or a local DTS emulator for environment flexibility.

How do I handle human interaction and monitoring in Java workflow orchestrations?

Java workflow orchestrations handle human interaction and monitoring through supported orchestration patterns. You implement these patterns via the Durable Task Java SDK, managing external events, timers, and eternal orchestrations.

Why does my Java orchestration fail determinism checks during replay?

Java orchestration determinism requires strict adherence to execution rules. Violations occur when workflows perform non-deterministic operations outside explicit activity boundaries, timers, retries, or external events managed by the Durable Task Scheduler.

Do I need a specific Java runtime to use the Durable Task Scheduler SDK?

You need a standard Java runtime and the Durable Task Java SDK artifacts to use the Durable Task Scheduler. Install the SDK, implement orchestration factories, and run against a local DTS emulator or your scheduler endpoint.