|
1 | 1 | package org.labkey.api.workflow; |
2 | 2 |
|
| 3 | +import jakarta.servlet.http.HttpServletRequest; |
3 | 4 | import org.jetbrains.annotations.NotNull; |
4 | | -import org.labkey.api.data.Container;import org.labkey.api.security.User;import org.labkey.api.services.ServiceRegistry; |
| 5 | +import org.labkey.api.data.Container; |
| 6 | +import org.labkey.api.dataiterator.DataIteratorBuilder; |
| 7 | +import org.labkey.api.query.ValidationException; |
| 8 | +import org.labkey.api.security.User; |
| 9 | +import org.labkey.api.services.ServiceRegistry; |
| 10 | + |
| 11 | +import java.util.Map; |
5 | 12 |
|
6 | 13 | public interface WorkflowService |
7 | 14 | { |
| 15 | + enum WorkflowConfigs |
| 16 | + { |
| 17 | + ActionId, |
| 18 | + JobId, |
| 19 | + } |
| 20 | + |
8 | 21 | enum ActionType |
9 | 22 | { |
10 | | - AssayImport("assay types", "Imported assay data"); |
| 23 | + AssayImport("assay types", "Imported assay data"), |
| 24 | + DeriveSamples("derivation sample type parameters", "Derived samples"), |
| 25 | + AliquotSamples("aliquot sample type parameters", "Aliquot samples"), |
| 26 | + PoolSamples("pooling sample type parameters", "Pooled samples"); |
11 | 27 |
|
12 | 28 | private final String _inputDescription; |
13 | 29 | private final String _auditMessage; |
@@ -39,6 +55,14 @@ static WorkflowService get() |
39 | 55 | return ServiceRegistry.get().getService(WorkflowService.class); |
40 | 56 | } |
41 | 57 |
|
| 58 | + void populateConfigParams(Map<String, Object> provided, Map<Enum, Object> configParameters) throws ValidationException; |
| 59 | + |
| 60 | + void populateConfigParams(HttpServletRequest request, Map<Enum, Object> configParameters) throws ValidationException; |
| 61 | + Map<String, Object> getConfigParameters(HttpServletRequest request) throws ValidationException; |
42 | 62 | void onActionComplete(@NotNull Container container, @NotNull User user, @NotNull Long actionId); |
43 | 63 | void onActionComplete(@NotNull Container container, @NotNull User user, @NotNull Long taskId, @NotNull ActionType actionType); |
| 64 | + |
| 65 | + DataIteratorBuilder getSampleCreationDataIteratorBuilder(DataIteratorBuilder data, Container container, User user); |
| 66 | + |
| 67 | + DataIteratorBuilder getActionAuditDataIteratorBuilder(DataIteratorBuilder data, Container container, User user); |
44 | 68 | } |
0 commit comments