File tree Expand file tree Collapse file tree
api/src/org/labkey/api/workflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import org .jetbrains .annotations .NotNull ;
66import org .json .JSONObject ;
77import org .labkey .api .attachments .AttachmentFile ;
8- import org .labkey .api .collections .ArrayListMap ;
9- import org .labkey .api .collections .CaseInsensitiveHashMap ;
108import org .labkey .api .data .Container ;
119import org .labkey .api .data .ContainerManager ;
1210import org .labkey .api .data .CreatedModified ;
13- import org .labkey .api .data .ObjectFactory ;
1411import org .labkey .api .exp .Identifiable ;
1512import org .labkey .api .exp .Lsid ;
1613import org .labkey .api .exp .ObjectProperty ;
@@ -323,10 +320,7 @@ public void setHasMedia(boolean hasMedia)
323320 _hasMedia = hasMedia ;
324321 }
325322
326- public Map <String , Object > toMap ()
327- {
328- return new CaseInsensitiveHashMap <>(ObjectFactory .Registry .getFactory (Job .class ).toMap (this , new ArrayListMap <>()));
329- }
323+ public abstract Map <String , Object > toMap ();
330324
331325 @ JsonIgnore
332326 public List <Task > getSubsequentTasks (long taskId )
Original file line number Diff line number Diff line change 55import com .fasterxml .jackson .annotation .JsonProperty ;
66import org .jetbrains .annotations .NotNull ;
77import org .json .JSONObject ;
8- import org .labkey .api .collections .ArrayListMap ;
9- import org .labkey .api .collections .CaseInsensitiveHashMap ;
108import org .labkey .api .data .Container ;
119import org .labkey .api .data .CreatedModified ;
12- import org .labkey .api .data .ObjectFactory ;
1310import org .labkey .api .util .GUID ;
1411
1512import java .util .Date ;
@@ -203,10 +200,7 @@ public void setJobId(Long jobId)
203200
204201 public abstract Job getJob ();
205202
206- public Map <String , Object > toMap ()
207- {
208- return new CaseInsensitiveHashMap <>(ObjectFactory .Registry .getFactory (Task .class ).toMap (this , new ArrayListMap <>()));
209- }
203+ public abstract Map <String , Object > toMap ();
210204
211205 // Determine if the template task with existing jobs can be updated to the new task definition
212206 // Only entityFilter field is allowed to be changed for a referenced template task
You can’t perform that action at this time.
0 commit comments