Package org.openwms.common.location.api
Interface TargetApi
@FeignClient(name="common-service",
dismiss404=true,
qualifiers="targetApi")
public interface TargetApi
A TargetApi offers operations on Targets (i.e. resources), like locking and releasing a resource.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeState
(String targetBK, LockType type, LockMode mode) Change the currentmode
aTarget
, identified bytargetBK
operates in.void
Lock theTarget
identified bytargetBK
.void
Unlock or release theTarget
identified bytargetBK
.
-
Method Details
-
changeState
@PostMapping(value="/v1/targets/{targetBK}", params={"type","mode","op=change-state"}) void changeState(@PathVariable("targetBK") String targetBK, @RequestParam("type") LockType type, @RequestParam("mode") LockMode mode) Change the currentmode
aTarget
, identified bytargetBK
operates in.- Parameters:
targetBK
- The business key of the Target, can be aLocationPK
in String format or a LocationGroup nametype
- The type of lock to apply to the Targetmode
- The mode to apply to the Targets lock
-
lock
@PostMapping(value="/v1/targets/{targetBK}", params="op=lock") void lock(@PathVariable("targetBK") String targetBK, @RequestParam("reallocation") Boolean reallocation) Lock theTarget
identified bytargetBK
.- Parameters:
targetBK
- The business key of the Target, can be aLocationPK
in String format or a LocationGroup namereallocation
- If true open outfeed orders will be re-allocated
-
release
@PostMapping(value="/v1/targets/{targetBK}", params="op=unlock") void release(@PathVariable("targetBK") String targetBK) Unlock or release theTarget
identified bytargetBK
.- Parameters:
targetBK
- The business key of the Target, can be aLocationPK
in String format or a LocationGroup name
-