Skip to content

Commit

Permalink
state transition for cancelling requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Krist committed Dec 16, 2024
1 parent feaf9be commit aec66ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/workflows/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class DefaultWorkflowRequests(WorkflowRequestPolicy):
)
],
transitions=WorkflowTransitions(
submitted="submitted", accepted="published", declined="draft"
submitted="submitted", accepted="published", declined="draft", cancelled="draft"
),
# if the request is not resolved in 21 days, escalate it to the administrator
escalations=[
Expand Down Expand Up @@ -226,7 +226,7 @@ class DefaultWorkflowRequests(WorkflowRequestPolicy):
# the record comes to the state of retracting when the request is submitted. If the request
# is accepted, the record is deleted, if declined, it is published again.
transitions=WorkflowTransitions(
submitted="retracting", declined="published", accepted="deleted"
submitted="retracting", declined="published", accepted="deleted", cancelled="published"
),
# if the request is not resolved in 21 days, escalate it to the administrator
escalations=[
Expand Down

0 comments on commit aec66ed

Please sign in to comment.