Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
# The LabKey Remote API Library for Java - Change Log

## version 7.1.0-SNAPSHOT
## version 7.2.0-SNAPSHOT
*Released*: TBD
*

## version 7.1.0
*Released*: 22 December 2025
* Gradle, Gradle plugins, commonsCodec, HttpClient, HttpCore version updates
* Add workflowTaskId property to `ImportRunCommand`

## version 7.0.0
*Released*: 18 July 2025
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ repositories {

group = "org.labkey.api"

version = "7.0.0-SNAPSHOT"
version = "7.2.0-SNAPSHOT"

dependencies {
api "org.json:json:${jsonObjectVersion}"
Expand Down
10 changes: 10 additions & 0 deletions src/org/labkey/remoteapi/assay/ImportRunCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class ImportRunCommand extends PostCommand<ImportRunResponse>
private Map<String, Object> _properties;
private Map<String, Object> _batchProperties;
private String _auditUserComment;
private Integer _workflowTaskId;

// Only one of the follow is allowed
private List<Map<String, Object>> _dataRows;
Expand Down Expand Up @@ -122,6 +123,11 @@ public void setAuditUserComment(String auditUserComment)
_auditUserComment = auditUserComment;
}

public void setWorkflowTaskId(Integer workflowTaskId)
{
_workflowTaskId = workflowTaskId;
}

@Override
protected ImportRunResponse createResponse(String text, int status, String contentType, JSONObject json)
{
Expand Down Expand Up @@ -165,6 +171,8 @@ protected HttpPost createRequest(URI uri)
json.put("plateMetadata", _plateMetadata);
if (_auditUserComment != null)
json.put("auditUserComment", _auditUserComment);
if (_workflowTaskId != null)
json.put("workflowTask", _workflowTaskId);

builder.addTextBody("json", json.toString(), ContentType.APPLICATION_JSON);
}
Expand All @@ -179,6 +187,8 @@ protected HttpPost createRequest(URI uri)
builder.addTextBody("comment", _comment);
if (_auditUserComment != null)
builder.addTextBody("auditUserComment", _auditUserComment);
if (_workflowTaskId != null)
builder.addTextBody("workflowTask", String.valueOf(_workflowTaskId));
if (_properties != null)
{
for (Map.Entry<String, Object> entry : _properties.entrySet())
Expand Down