You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnevents.NewErrorResult("could not find action mapping for patron request: "+pr.ID, mappingErr.Error())
150
+
}
151
+
action:=actionMapping.GetClosingAction(pr)
152
+
ifaction==nil {
153
+
returnevents.NewErrorResult("could not find closing action for patron request state: "+string(pr.State)+" within state model: "+actionMapping.StateModelName, "closing action not found")
assert.Equal(t, "could not find closing action for patron request state: SHIPPED within state model: CrossLink Returnables State Model", result.EventError.Message)
364
+
assert.Equal(t, "closing action not found", result.EventError.Cause)
Copy file name to clipboardExpand all lines: misc/state-model.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,10 @@
99
99
"type": "string",
100
100
"description": "Indicates the primary action for the state, i.e., the most common or recommended action to be performed when in the state. The value must match the name of one of the actions defined for the state."
101
101
},
102
+
"closingAction": {
103
+
"type": "string",
104
+
"description": "Indicates the closing action for the state, i.e., the action to be performed when closing the state. The value must match the name of one of the actions defined for the state."
105
+
},
102
106
"editable": {
103
107
"type": "boolean",
104
108
"description": "Indicates that a patron request can be updated"
0 commit comments