Skip to content
Open
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
4 changes: 4 additions & 0 deletions api/src/org/labkey/api/query/AbstractQueryUpdateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
import org.labkey.api.util.URIUtil;
import org.labkey.api.view.NotFoundException;
import org.labkey.api.view.UnauthorizedException;
import org.labkey.api.workflow.WorkflowService;
import org.labkey.api.writer.VirtualFile;
import org.labkey.vfs.FileLike;
import org.springframework.web.multipart.MultipartFile;
Expand Down Expand Up @@ -896,6 +897,9 @@ public List<Map<String, Object>> updateRows(User user, Container container, List
throw errors;

addAuditEvent(user, container, QueryService.AuditAction.UPDATE, configParameters, result, oldRows, providedValues);
WorkflowService service = WorkflowService.get();
if (service != null && configParameters != null && configParameters.containsKey(WorkflowService.WorkflowConfigs.ActionId))
service.onActionComplete(container, user, (Long) configParameters.get(WorkflowService.WorkflowConfigs.ActionId));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will likely handle some of the future cases for actions yet to be implemented as well right? basically any update rows call that passes an actionId conig param, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Don't know how many there will be for updateRows (without data iterators), but we'll see.


return result;
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/org/labkey/api/workflow/WorkflowService.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ enum ActionType
AliquotSamples("aliquot sample type parameters", "Aliquot samples"),
PoolSamples("pooling sample type parameters", "Pooled samples"),
AddToStorage("input parameters", "Added samples to storage"),
MoveInStorage("input parameters", "Moved samples to storage"),
MoveInStorage("input parameters", "Moved samples in storage"),
CheckOut("input parameters", "Checked out samples"),
CheckIn("input parameters", "Checked in samples"),
RemoveFromStorage("sample status value", "Removed samples from storage");
Expand Down
Loading