diff --git a/broker/patron_request/service/statemodels/returnables.json b/broker/patron_request/service/statemodels/returnables.json index bb60c057..179df8d4 100644 --- a/broker/patron_request/service/statemodels/returnables.json +++ b/broker/patron_request/service/statemodels/returnables.json @@ -67,6 +67,11 @@ "name": "unfilled", "desc": "Supplier cannot supply (ISO18626 Unfilled)", "transition": "UNFILLED" + }, + { + "name": "accept-retry", + "desc": "Supplier accepts retry with new metadata", + "transition": "NEW" } ] }, @@ -338,6 +343,13 @@ "transitions": { "success": "CONDITION_PENDING" } + }, + { + "name": "ask-retry", + "desc": "Ask requester to retry with new ISO18626 metadata", + "transitions": { + "success": "RETRY_REQUESTED" + } } ], "events": [ @@ -547,6 +559,13 @@ "desc": "After manual cannot-supply or automatically if auto-responder is on", "side": "SUPPLIER", "terminal": true + }, + { + "name": "RETRY_REQUESTED", + "display": "Retry Requested", + "desc": "After manual retry request", + "side": "SUPPLIER", + "terminal": true } ] } diff --git a/misc/returnables.yaml b/misc/returnables.yaml index 606d0fd9..072ed1e9 100644 --- a/misc/returnables.yaml +++ b/misc/returnables.yaml @@ -48,6 +48,9 @@ states: - name: unfilled desc: Supplier cannot supply (ISO18626 Unfilled) transition: UNFILLED + - name: accept-retry + desc: Supplier accepts retry with new metadata + transition: NEW - name: SUPPLIER_LOCATED display: Supplier Located @@ -232,6 +235,10 @@ states: desc: Indicate will supply with conditions and send ISO18626 WillSupply transitions: success: CONDITION_PENDING + - name: ask-retry + desc: Ask requester to retry with new ISO18626 metadata + transitions: + success: RETRY_REQUESTED events: - name: cancel-request desc: Requester sent ISO18626 Cancel @@ -369,3 +376,9 @@ states: desc: After manual cannot-supply or automatically if auto-responder is on side: SUPPLIER terminal: true + + - name: RETRY_REQUESTED + display: Retry Requested + desc: After manual retry request + side: SUPPLIER + terminal: true