Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
UpdateWfParametersJobNode.java | ||
---|---|---|
4 | 4 |
import java.util.HashMap; |
5 | 5 |
import java.util.Map; |
6 | 6 |
|
7 |
import javax.annotation.Resource; |
|
8 |
|
|
9 |
import org.apache.commons.lang3.StringEscapeUtils; |
|
10 |
import org.apache.commons.logging.Log; |
|
11 |
import org.apache.commons.logging.LogFactory; |
|
12 |
import org.dom4j.Document; |
|
13 |
import org.dom4j.Element; |
|
14 |
import org.dom4j.Node; |
|
15 |
import org.dom4j.io.SAXReader; |
|
16 |
|
|
17 | 7 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
18 | 8 |
import eu.dnetlib.msro.workflows.graph.Arc; |
19 | 9 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
... | ... | |
22 | 12 |
import eu.dnetlib.rmi.enabling.ISLookUpService; |
23 | 13 |
import eu.dnetlib.rmi.enabling.ISRegistryService; |
24 | 14 |
import eu.dnetlib.rmi.manager.MSROException; |
15 |
import org.apache.commons.lang3.StringEscapeUtils; |
|
16 |
import org.apache.commons.logging.Log; |
|
17 |
import org.apache.commons.logging.LogFactory; |
|
18 |
import org.dom4j.Document; |
|
19 |
import org.dom4j.Element; |
|
20 |
import org.dom4j.Node; |
|
21 |
import org.dom4j.io.SAXReader; |
|
22 |
import org.springframework.beans.factory.annotation.Autowired; |
|
25 | 23 |
|
26 | 24 |
public class UpdateWfParametersJobNode extends SimpleJobNode { |
27 | 25 |
|
26 |
private static final Log log = LogFactory.getLog(UpdateWfParametersJobNode.class); |
|
28 | 27 |
private Map<String, String> envParams; |
29 | 28 |
private Map<String, String> simpleParams; |
30 |
|
|
31 |
@Resource |
|
29 |
@Autowired |
|
32 | 30 |
private UniqueServiceLocator serviceLocator; |
33 | 31 |
|
34 |
private static final Log log = LogFactory.getLog(UpdateWfParametersJobNode.class); |
|
35 |
|
|
36 | 32 |
@Override |
37 | 33 |
protected String execute(final Env env) throws Exception { |
38 | 34 |
|
Also available in: Unified diff
Chnaged Resource to Autowired