@@ -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