Revision 37409
Added by Michele Artini almost 9 years ago
WorkflowRegistry.java | ||
---|---|---|
11 | 11 |
import com.google.common.collect.Maps; |
12 | 12 |
|
13 | 13 |
import eu.dnetlib.enabling.datastructures.MetaWorkflow; |
14 |
import eu.dnetlib.miscutils.DateUtils; |
|
14 | 15 |
|
15 | 16 |
public class WorkflowRegistry { |
16 | 17 |
|
... | ... | |
22 | 23 |
|
23 | 24 |
public ProcessInfo registerProcess(final String wfName, final MetaWorkflow metaWf) { |
24 | 25 |
final String procId = generateProcessId(); |
25 |
final ProcessInfo info = new ProcessInfo(procId, metaWf.getCode(), wfName, metaWf.getFamily(), metaWf.getDatasourceName()); |
|
26 |
final ProcessInfo info = new ProcessInfo(procId, metaWf.getCode(), wfName, metaWf.getFamily(), metaWf.getDatasourceName(), DateUtils.now());
|
|
26 | 27 |
procs.put(procId, info); |
27 | 28 |
return info; |
28 | 29 |
} |
Also available in: Unified diff
WF start and end date