Skip to content

Commit ffb5b40

Browse files
Add workflowTaskId property to ImportRunCommand (#85)
1 parent 146984e commit ffb5b40

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# The LabKey Remote API Library for Java - Change Log
22

3-
## version 7.1.0-SNAPSHOT
3+
## version 7.2.0-SNAPSHOT
44
*Released*: TBD
5+
*
6+
7+
## version 7.1.0
8+
*Released*: 22 December 2025
59
* Gradle, Gradle plugins, commonsCodec, HttpClient, HttpCore version updates
10+
* Add workflowTaskId property to `ImportRunCommand`
611

712
## version 7.0.0
813
*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.2.0-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)