Skip to content

Commit 20460a3

Browse files
committed
Add workflowTaskId property to ImportRunCommand
1 parent 146984e commit 20460a3

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## version 7.1.0-SNAPSHOT
44
*Released*: TBD
55
* Gradle, Gradle plugins, commonsCodec, HttpClient, HttpCore version updates
6+
* Add workflowTaskId property to `ImportRunCommand`
67

78
## version 7.0.0
89
*Released*: 18 July 2025

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ repositories {
7070

7171
group = "org.labkey.api"
7272

73-
version = "7.0.0-SNAPSHOT"
73+
version = "7.0.0-moveJobs-SNAPSHOT"
7474

7575
dependencies {
7676
api "org.json:json:${jsonObjectVersion}"

src/org/labkey/remoteapi/assay/ImportRunCommand.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class ImportRunCommand extends PostCommand<ImportRunResponse>
4141
private Map<String, Object> _properties;
4242
private Map<String, Object> _batchProperties;
4343
private String _auditUserComment;
44+
private Integer _workflowTaskId;
4445

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

126+
public void setWorkflowTaskId(Integer workflowTaskId)
127+
{
128+
_workflowTaskId = workflowTaskId;
129+
}
130+
125131
@Override
126132
protected ImportRunResponse createResponse(String text, int status, String contentType, JSONObject json)
127133
{
@@ -165,6 +171,8 @@ protected HttpPost createRequest(URI uri)
165171
json.put("plateMetadata", _plateMetadata);
166172
if (_auditUserComment != null)
167173
json.put("auditUserComment", _auditUserComment);
174+
if (_workflowTaskId != null)
175+
json.put("workflowTask", _workflowTaskId);
168176

169177
builder.addTextBody("json", json.toString(), ContentType.APPLICATION_JSON);
170178
}
@@ -179,6 +187,8 @@ protected HttpPost createRequest(URI uri)
179187
builder.addTextBody("comment", _comment);
180188
if (_auditUserComment != null)
181189
builder.addTextBody("auditUserComment", _auditUserComment);
190+
if (_workflowTaskId != null)
191+
builder.addTextBody("workflowTask", String.valueOf(_workflowTaskId));
182192
if (_properties != null)
183193
{
184194
for (Map.Entry<String, Object> entry : _properties.entrySet())

0 commit comments

Comments
 (0)