Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
d4369a3
start java
kraftp Oct 2, 2025
430e737
lifecycle
kraftp Oct 2, 2025
5a5ae12
file
kraftp Oct 2, 2025
154e2f6
update
kraftp Oct 2, 2025
edde7c2
more
kraftp Oct 2, 2025
ed5cce7
more
kraftp Oct 2, 2025
ad1b8c8
update
kraftp Oct 2, 2025
41a6903
programming guide
kraftp Oct 3, 2025
10c98d5
more
kraftp Oct 3, 2025
898d9a9
nit
kraftp Oct 3, 2025
29057a8
update
kraftp Oct 3, 2025
11e384f
queue
kraftp Oct 3, 2025
98ce4cc
config
kraftp Oct 3, 2025
302ba5b
formatting
kraftp Oct 3, 2025
ab1d95f
formatting
kraftp Oct 3, 2025
1b479ed
example syntax
kraftp Oct 3, 2025
d22e6a5
example
kraftp Oct 3, 2025
df8e10c
nit
kraftp Oct 3, 2025
d292a79
methods
kraftp Oct 3, 2025
3c3cf79
handle
kraftp Oct 3, 2025
1a1e611
Merge branch 'main' into java
kraftp Oct 6, 2025
dccae61
workflow status
kraftp Oct 6, 2025
542071f
lsit workflows
kraftp Oct 6, 2025
5a9ca85
managemetn
kraftp Oct 6, 2025
9326b22
managemetn
kraftp Oct 6, 2025
6255a3a
scheduled
kraftp Oct 6, 2025
67bd0ae
queue
kraftp Oct 6, 2025
0c33a8c
client
kraftp Oct 6, 2025
21e8328
client
kraftp Oct 6, 2025
7e2355d
tutorials
kraftp Oct 6, 2025
d3b5c3b
workflow tutorial
kraftp Oct 6, 2025
9437c19
nit
kraftp Oct 6, 2025
5239e49
steps
kraftp Oct 6, 2025
e9ec0fe
queues
kraftp Oct 6, 2025
0043222
Merge branch 'main' into java
kraftp Oct 7, 2025
9e8bbd9
workflow comm
kraftp Oct 7, 2025
e128c7c
workflow management
kraftp Oct 7, 2025
8940658
integration
kraftp Oct 7, 2025
2044261
example
kraftp Oct 7, 2025
0907d2e
update
kraftp Oct 7, 2025
4a46af3
cleanup
kraftp Oct 7, 2025
23a844c
cleanup
kraftp Oct 7, 2025
0fdbb48
update
kraftp Oct 7, 2025
509f648
nit
kraftp Oct 7, 2025
e4bff80
nit
kraftp Oct 7, 2025
88ed8d6
build
kraftp Oct 7, 2025
f0945c8
nit
kraftp Oct 7, 2025
e46b543
Merge branch 'main' into java
kraftp Oct 13, 2025
d71154e
simplify
kraftp Oct 13, 2025
fda6d59
nit
kraftp Oct 13, 2025
b0ed321
integrating
kraftp Oct 13, 2025
922171b
lifecycle
kraftp Oct 13, 2025
bb36bb1
Merge branch 'main' into java
kraftp Oct 13, 2025
f26ad8a
workflows steps
kraftp Oct 13, 2025
775b32b
nits
kraftp Oct 13, 2025
afbce07
new
kraftp Oct 13, 2025
a59526a
update
kraftp Oct 13, 2025
bb5554b
update
kraftp Oct 13, 2025
6773787
nit
kraftp Oct 13, 2025
6600cd6
workflow
kraftp Oct 13, 2025
8ec6f6a
step
kraftp Oct 13, 2025
a458843
update
kraftp Oct 13, 2025
e5313fc
update
kraftp Oct 13, 2025
5a5a5f9
nits
kraftp Oct 13, 2025
a89e99e
nits
kraftp Oct 13, 2025
99aca26
nit
kraftp Oct 13, 2025
efbace9
nit
kraftp Oct 13, 2025
8552d01
nit"
kraftp Oct 13, 2025
4218e31
nit
kraftp Oct 13, 2025
174a9ed
nit
kraftp Oct 13, 2025
425eb56
nit
kraftp Oct 13, 2025
2c42815
nit
kraftp Oct 13, 2025
fbc72e0
nit
kraftp Oct 13, 2025
a8e281a
nit
kraftp Oct 13, 2025
7169297
Fix broken anchors
chuck-dbos Oct 14, 2025
45db0bd
Usually inferred
chuck-dbos Oct 14, 2025
6a825a0
Simplifications
chuck-dbos Oct 14, 2025
3a83b38
Duration
chuck-dbos Oct 14, 2025
b6a7b66
Corrections/clarifications
chuck-dbos Oct 14, 2025
4caa92b
Corrections for Duration; clarify
chuck-dbos Oct 14, 2025
b522a06
Merge remote-tracking branch 'origin/main' into java
chuck-dbos Oct 23, 2025
0005a44
Java doc updates
chuck-dbos Oct 24, 2025
6d9aa42
getWorkflowId->workflowId
chuck-dbos Oct 24, 2025
cc4adf3
Add Scheduled tutorial
chuck-dbos Oct 27, 2025
3c85b74
Merge branch 'main' into java
kraftp Oct 27, 2025
0fdd9a0
update
kraftp Oct 27, 2025
59b5a2f
update
kraftp Oct 27, 2025
bd3532b
nit
kraftp Oct 27, 2025
c517ba7
nit
kraftp Oct 27, 2025
1b1a37f
fix
kraftp Oct 27, 2025
deff94d
fix
kraftp Oct 27, 2025
b2aaeee
updates
kraftp Oct 27, 2025
25a0400
nit
kraftp Oct 27, 2025
74ac5de
nits
kraftp Oct 27, 2025
e725262
update
kraftp Oct 27, 2025
3c5c5f9
updates
kraftp Oct 27, 2025
6054de1
cleanup
kraftp Oct 27, 2025
f64e42c
cleanup
kraftp Oct 27, 2025
f8a6ef4
cleanup
kraftp Oct 27, 2025
65e1ed0
cleanup
kraftp Oct 27, 2025
4f7eaef
java quickstart
kraftp Oct 27, 2025
5e6b6d0
img
kraftp Oct 27, 2025
2f77e50
widget store java
kraftp Oct 27, 2025
8b48dad
Allow language to be set
chuck-dbos Oct 28, 2025
8aea10c
All link to each other
chuck-dbos Oct 28, 2025
7e5e11d
Java logo
chuck-dbos Oct 28, 2025
e05fad8
Fix up the mult-language index cards
chuck-dbos Oct 28, 2025
dd82f89
Small touchups based on trying it
chuck-dbos Oct 29, 2025
02e1225
OAOO send
chuck-dbos Oct 29, 2025
67074a9
udpate
kraftp Oct 29, 2025
7990b82
update
kraftp Oct 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
workflow management
  • Loading branch information
kraftp committed Oct 7, 2025
commit e128c7c262b620a734f2249e8ac5809d43c89edf
49 changes: 49 additions & 0 deletions docs/java/tutorials/workflow-management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
sidebar_position: 60
title: Workflow Management
---

You can view and manage your durable workflow executions via a web UI ([self-hosted](../../production/self-hosting/workflow-management.md), [DBOS Cloud](../../production/dbos-cloud/workflow-management.md)) or programmatically.

## Listing Workflows

You can list your application's workflows programmatically via [`dbos.listWorkflows`](../reference/methods.md#listworkflows) or using the [`DBOSClient`](../reference/client.md#listworkflows).

You can also view a searchable and expandable list of your application's workflows from its page on the DBOS Console (either [self-hosted](../../production/self-hosting/workflow-management.md) or on [DBOS Cloud](../../production/dbos-cloud/workflow-management.md)).

<img src={require('@site/static/img/workflow-management/workflow-list.png').default} alt="Workflow List" width="800" className="custom-img"/>

## Listing Workflow Steps

You can list the steps of a workflow programmatically via [`dbos.listWorkflowSteps`](../reference/methods.md#listworkflowsteps) or using the [`DBOSClient`](../reference/client.md#listworkflowsteps).

You can also visualize a workflow's execution graph (including the workflow, its steps, and its child workflows and their steps) from its page on the DBOS Console (either [self-hosted](../../production/self-hosting/workflow-management.md) or on [DBOS Cloud](../../production/dbos-cloud/workflow-management.md)).
For example, here is the graph of a workflow that processes multiple tasks concurrently by enqueueing child workflows:

<img src={require('@site/static/img/workflow-management/workflow-steps.png').default} alt="Workflow List" width="800" className="custom-img"/>

## Cancelling Workflows

You can cancel the execution of a workflow from the web UI, programmatically via [`dbos.cancelWorkflow`](../reference/methods.md#cancelworkflow), or using the [`DBOSClient`](../reference/client.md#cancelworkflow).

If the workflow is currently executing, cancelling it preempts its execution (interrupting it at the beginning of its next step).
If the workflow is enqueued, cancelling removes it from the queue.

## Resuming Workflows

You can resume a workflow from its last completed step from the web UI, programmatically via [`dbos.resumeWorkflow`](../reference/methods.md#resumeworkflow), or using the [`DBOSClient`](../reference/client.md#resumeworkflow).

You can use this to resume workflows that are cancelled or that have exceeded their maximum recovery attempts.
You can also use this to start an enqueued workflow immediately, bypassing its queue.

## Forking Workflows

You can start a new execution of a workflow by **forking** it from a specific step.
When you fork a workflow, DBOS generates a new workflow with a new workflow ID, copies to that workflow the original workflow's inputs and all its steps up to the selected step, then begins executing the new workflow from the selected step.

Forking a workflow is useful for recovering from outages in downstream services (by forking from the step that failed after the outage is resolved) or for "patching" workflows that failed due to a bug in a previous application version (by forking from the bugged step to an application version on which the bug is fixed).

You can fork a workflow programmatically using [`dbos.forkWorkflow`](../reference/methods.md#forkworkflow) or using the [`DBOSClient`](../reference/client.md#forkworkflow).
You can also fork a workflow from a step from the web UI by clicking on that step in the workflow's graph visualization:

<img src={require('@site/static/img/workflow-management/workflow-fork.png').default} alt="Workflow List" width="800" className="custom-img"/>