Skip to content

Commit

Permalink
Change url to results + set JobID
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPontius committed Apr 7, 2020
1 parent 54e9b0e commit a05ac64
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public StatusInfo serialize(org.n52.shetland.ogc.wps.StatusInfo statusInfo, Stri

StatusInfo serializedStatusInfo = new StatusInfo();

serializedStatusInfo.setJobID(jobId);

serializedStatusInfo.setStatus(createStatusEnum(statusInfo.getStatus()));

statusInfo.getPercentCompleted().map(Integer::valueOf).ifPresent(serializedStatusInfo::setProgress);
Expand Down Expand Up @@ -70,7 +72,7 @@ private Link createSelfLink(String processId, String jobId) {
private Link createResultLink(String processId, String jobId) {
Link resultLink = new Link();
resultLink.setHref(createResultHref(processId, jobId));
resultLink.setRel("result");
resultLink.setRel("results");
resultLink.setType(MediaTypes.APPLICATION_JSON);
resultLink.setTitle("Job result");
return resultLink;
Expand Down

0 comments on commit a05ac64

Please sign in to comment.