Revision 55146
Added by Enrico Ottonello about 5 years ago
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/CollectHadoopJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import org.apache.commons.logging.Log; |
|
4 |
import org.apache.commons.logging.LogFactory; |
|
5 |
import org.springframework.beans.factory.annotation.Required; |
|
6 |
|
|
7 |
import com.googlecode.sarasvati.Arc; |
|
8 |
import com.googlecode.sarasvati.NodeToken; |
|
9 |
|
|
10 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
11 |
|
|
12 |
public class CollectHadoopJobNode extends SimpleJobNode { |
|
13 |
|
|
14 |
private static final Log log = LogFactory.getLog(CollectHadoopJobNode.class); |
|
15 |
|
|
16 |
/* Spring managed params */ |
|
17 |
private String mdStoreManagerUrl; |
|
18 |
|
|
19 |
@Override |
|
20 |
protected String execute(final NodeToken token) throws Exception { |
|
21 |
|
|
22 |
log.info("sleep ... "); |
|
23 |
Thread.sleep(5000); |
|
24 |
log.info("awake."); |
|
25 |
|
|
26 |
if (1 > 0) { |
|
27 |
token.getEnv().setAttribute("mdStoreSize", 1024); |
|
28 |
return Arc.DEFAULT_ARC; |
|
29 |
} else { |
|
30 |
return "abort"; |
|
31 |
} |
|
32 |
} |
|
33 |
|
|
34 |
public String getMdStoreManagerUrl() { |
|
35 |
return mdStoreManagerUrl; |
|
36 |
} |
|
37 |
|
|
38 |
@Required |
|
39 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
40 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
41 |
} |
|
42 |
|
|
43 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/PrepareMDStoreVersionJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.HashMap; |
|
5 |
import java.util.Map; |
|
6 |
|
|
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
9 |
import org.springframework.beans.factory.annotation.Required; |
|
10 |
import org.springframework.web.client.RestTemplate; |
|
11 |
import org.springframework.web.util.UriComponentsBuilder; |
|
12 |
|
|
13 |
import com.googlecode.sarasvati.Arc; |
|
14 |
import com.googlecode.sarasvati.NodeToken; |
|
15 |
|
|
16 |
import eu.dnetlib.data.mdstore.manager.common.model.MDStoreVersion; |
|
17 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
18 |
|
|
19 |
public class PrepareMDStoreVersionJobNode extends SimpleJobNode { |
|
20 |
|
|
21 |
private static final Log log = LogFactory.getLog(PrepareMDStoreVersionJobNode.class); |
|
22 |
|
|
23 |
private String mdId; |
|
24 |
|
|
25 |
/* Spring managed params */ |
|
26 |
private String mdStoreManagerUrl; |
|
27 |
|
|
28 |
@Override |
|
29 |
protected String execute(final NodeToken token) throws Exception { |
|
30 |
final String url = getMdStoreManagerUrl() + "/mdstore/{mdId}/newVersion"; |
|
31 |
|
|
32 |
final Map<String, Object> params = new HashMap<>(); |
|
33 |
params.put("mdId", getMdId()); |
|
34 |
|
|
35 |
final URI uri = UriComponentsBuilder.fromUriString(url) |
|
36 |
.buildAndExpand(params) |
|
37 |
.toUri(); |
|
38 |
|
|
39 |
final RestTemplate restTemplate = new RestTemplate(); |
|
40 |
final MDStoreVersion version = restTemplate.getForObject(uri, MDStoreVersion.class); |
|
41 |
|
|
42 |
log.info("mdstore version prepared " + version.getId()); |
|
43 |
|
|
44 |
token.getEnv().setAttribute(mdId, mdId); |
|
45 |
token.getEnv().setAttribute("versionId", version.getId()); |
|
46 |
|
|
47 |
return Arc.DEFAULT_ARC; |
|
48 |
} |
|
49 |
|
|
50 |
public String getMdStoreManagerUrl() { |
|
51 |
return mdStoreManagerUrl; |
|
52 |
} |
|
53 |
|
|
54 |
@Required |
|
55 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
56 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
57 |
} |
|
58 |
|
|
59 |
public String getMdId() { |
|
60 |
return mdId; |
|
61 |
} |
|
62 |
|
|
63 |
public void setMdId(final String mdId) { |
|
64 |
this.mdId = mdId; |
|
65 |
} |
|
66 |
|
|
67 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/AbortMDStoreVersionJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.HashMap; |
|
5 |
import java.util.Map; |
|
6 |
|
|
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
9 |
import org.springframework.beans.factory.annotation.Required; |
|
10 |
import org.springframework.web.client.RestTemplate; |
|
11 |
import org.springframework.web.util.UriComponentsBuilder; |
|
12 |
|
|
13 |
import com.googlecode.sarasvati.Arc; |
|
14 |
import com.googlecode.sarasvati.NodeToken; |
|
15 |
|
|
16 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
17 |
|
|
18 |
public class AbortMDStoreVersionJobNode extends SimpleJobNode { |
|
19 |
|
|
20 |
private static final Log log = LogFactory.getLog(AbortMDStoreVersionJobNode.class); |
|
21 |
|
|
22 |
/* Spring managed params */ |
|
23 |
private String mdStoreManagerUrl; |
|
24 |
|
|
25 |
@Override |
|
26 |
protected String execute(final NodeToken token) throws Exception { |
|
27 |
final String url = getMdStoreManagerUrl() + "/version/{versionId}?force=true"; |
|
28 |
|
|
29 |
final Map<String, Object> params = new HashMap<>(); |
|
30 |
params.put("versionId", token.getEnv().getAttribute("versionId")); |
|
31 |
|
|
32 |
final URI uri = UriComponentsBuilder.fromUriString(url) |
|
33 |
.buildAndExpand(params) |
|
34 |
.toUri(); |
|
35 |
|
|
36 |
final RestTemplate restTemplate = new RestTemplate(); |
|
37 |
restTemplate.delete(uri); |
|
38 |
|
|
39 |
log.info("mdstore version deleted "); |
|
40 |
return Arc.DEFAULT_ARC; |
|
41 |
} |
|
42 |
|
|
43 |
public String getMdStoreManagerUrl() { |
|
44 |
return mdStoreManagerUrl; |
|
45 |
} |
|
46 |
|
|
47 |
@Required |
|
48 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
49 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
50 |
} |
|
51 |
|
|
52 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/DeleteMDStoreHadoopJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.HashMap; |
|
5 |
import java.util.Map; |
|
6 |
|
|
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
9 |
import org.springframework.beans.factory.annotation.Required; |
|
10 |
import org.springframework.web.client.RestTemplate; |
|
11 |
import org.springframework.web.util.UriComponentsBuilder; |
|
12 |
|
|
13 |
import com.googlecode.sarasvati.Arc; |
|
14 |
import com.googlecode.sarasvati.NodeToken; |
|
15 |
|
|
16 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
17 |
|
|
18 |
public class DeleteMDStoreHadoopJobNode extends SimpleJobNode { |
|
19 |
|
|
20 |
private static final Log log = LogFactory.getLog(DeleteMDStoreHadoopJobNode.class); |
|
21 |
|
|
22 |
private String mdId; |
|
23 |
|
|
24 |
/* Spring managed params */ |
|
25 |
private String mdStoreManagerUrl; |
|
26 |
|
|
27 |
@Override |
|
28 |
protected String execute(final NodeToken token) throws Exception { |
|
29 |
final String url = getMdStoreManagerUrl() + "/mdstore/{mdId}"; |
|
30 |
|
|
31 |
final Map<String, Object> params = new HashMap<>(); |
|
32 |
params.put("mdId", getMdId()); |
|
33 |
|
|
34 |
final URI uri = UriComponentsBuilder.fromUriString(url) |
|
35 |
.buildAndExpand(params) |
|
36 |
.toUri(); |
|
37 |
|
|
38 |
final RestTemplate restTemplate = new RestTemplate(); |
|
39 |
restTemplate.delete(uri); |
|
40 |
|
|
41 |
log.info("mdstor deleted: " + mdId); |
|
42 |
|
|
43 |
return Arc.DEFAULT_ARC; |
|
44 |
} |
|
45 |
|
|
46 |
public String getMdStoreManagerUrl() { |
|
47 |
return mdStoreManagerUrl; |
|
48 |
} |
|
49 |
|
|
50 |
@Required |
|
51 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
52 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
53 |
} |
|
54 |
|
|
55 |
public String getMdId() { |
|
56 |
return mdId; |
|
57 |
} |
|
58 |
|
|
59 |
public void setMdId(final String mdId) { |
|
60 |
this.mdId = mdId; |
|
61 |
} |
|
62 |
|
|
63 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/CreateMDStoreHadoopJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.HashMap; |
|
5 |
import java.util.Map; |
|
6 |
|
|
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
9 |
import org.springframework.beans.factory.annotation.Required; |
|
10 |
import org.springframework.web.client.RestTemplate; |
|
11 |
import org.springframework.web.util.UriComponentsBuilder; |
|
12 |
|
|
13 |
import com.googlecode.sarasvati.Arc; |
|
14 |
import com.googlecode.sarasvati.NodeToken; |
|
15 |
|
|
16 |
import eu.dnetlib.data.mdstore.manager.common.model.MDStoreWithInfo; |
|
17 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
18 |
import eu.dnetlib.msro.workflows.util.WorkflowsConstants; |
|
19 |
|
|
20 |
public class CreateMDStoreHadoopJobNode extends SimpleJobNode { |
|
21 |
|
|
22 |
private static final Log log = LogFactory.getLog(CreateMDStoreHadoopJobNode.class); |
|
23 |
|
|
24 |
/* Workflow params */ |
|
25 |
private String format; |
|
26 |
private String layout; |
|
27 |
private String interpretation; |
|
28 |
private String outputPrefix = "mdstore"; |
|
29 |
|
|
30 |
/* Spring managed params */ |
|
31 |
private String mdStoreManagerUrl; |
|
32 |
|
|
33 |
@Override |
|
34 |
protected String execute(final NodeToken token) throws Exception { |
|
35 |
final String url = getMdStoreManagerUrl() + "/mdstores/new/{format}/{layout}/{interpretation}"; |
|
36 |
|
|
37 |
final Map<String, Object> params = new HashMap<>(); |
|
38 |
params.put("format", getFormat()); |
|
39 |
params.put("layout", getLayout()); |
|
40 |
params.put("interpretation", getInterpretation()); |
|
41 |
|
|
42 |
final URI uri = UriComponentsBuilder.fromUriString(url) |
|
43 |
.queryParam("dsName", token.getEnv().getAttribute(WorkflowsConstants.DATAPROVIDER_NAME)) |
|
44 |
.queryParam("dsId", token.getEnv().getAttribute(WorkflowsConstants.DATAPROVIDER_ID)) |
|
45 |
.queryParam("apiId", token.getEnv().getAttribute(WorkflowsConstants.DATAPROVIDER_INTERFACE)) |
|
46 |
.buildAndExpand(params) |
|
47 |
.toUri(); |
|
48 |
|
|
49 |
final RestTemplate restTemplate = new RestTemplate(); |
|
50 |
final MDStoreWithInfo result = restTemplate.getForObject(uri, MDStoreWithInfo.class); |
|
51 |
|
|
52 |
log.info("mdstore created " + result.toString()); |
|
53 |
|
|
54 |
token.getEnv().setAttribute(getOutputPrefix() + "format", format); |
|
55 |
token.getEnv().setAttribute(getOutputPrefix() + "layout", layout); |
|
56 |
token.getEnv().setAttribute(getOutputPrefix() + "interpretation", interpretation); |
|
57 |
token.getEnv().setAttribute(getOutputPrefix() + "id", result.getId()); |
|
58 |
|
|
59 |
return Arc.DEFAULT_ARC; |
|
60 |
} |
|
61 |
|
|
62 |
public String getFormat() { |
|
63 |
return format; |
|
64 |
} |
|
65 |
|
|
66 |
public void setFormat(final String format) { |
|
67 |
this.format = format; |
|
68 |
} |
|
69 |
|
|
70 |
public String getLayout() { |
|
71 |
return layout; |
|
72 |
} |
|
73 |
|
|
74 |
public void setLayout(final String layout) { |
|
75 |
this.layout = layout; |
|
76 |
} |
|
77 |
|
|
78 |
public String getInterpretation() { |
|
79 |
return interpretation; |
|
80 |
} |
|
81 |
|
|
82 |
public void setInterpretation(final String interpretation) { |
|
83 |
this.interpretation = interpretation; |
|
84 |
} |
|
85 |
|
|
86 |
public String getOutputPrefix() { |
|
87 |
return outputPrefix; |
|
88 |
} |
|
89 |
|
|
90 |
public void setOutputPrefix(final String outputPrefix) { |
|
91 |
this.outputPrefix = outputPrefix; |
|
92 |
} |
|
93 |
|
|
94 |
public String getMdStoreManagerUrl() { |
|
95 |
return mdStoreManagerUrl; |
|
96 |
} |
|
97 |
|
|
98 |
@Required |
|
99 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
100 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
101 |
} |
|
102 |
|
|
103 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/hadoop/CommitMDStoreVersionJobNode.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.hadoop; |
|
2 |
|
|
3 |
import java.net.URI; |
|
4 |
import java.util.HashMap; |
|
5 |
import java.util.Map; |
|
6 |
|
|
7 |
import org.apache.commons.logging.Log; |
|
8 |
import org.apache.commons.logging.LogFactory; |
|
9 |
import org.springframework.beans.factory.annotation.Required; |
|
10 |
import org.springframework.web.client.RestTemplate; |
|
11 |
import org.springframework.web.util.UriComponentsBuilder; |
|
12 |
|
|
13 |
import com.googlecode.sarasvati.Arc; |
|
14 |
import com.googlecode.sarasvati.NodeToken; |
|
15 |
|
|
16 |
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode; |
|
17 |
|
|
18 |
public class CommitMDStoreVersionJobNode extends SimpleJobNode { |
|
19 |
|
|
20 |
private static final Log log = LogFactory.getLog(CommitMDStoreVersionJobNode.class); |
|
21 |
|
|
22 |
/* Spring managed params */ |
|
23 |
private String mdStoreManagerUrl; |
|
24 |
|
|
25 |
@Override |
|
26 |
protected String execute(final NodeToken token) throws Exception { |
|
27 |
final String url = getMdStoreManagerUrl() + "/version/{versionId}/commit/{size}"; |
|
28 |
|
|
29 |
final Map<String, Object> params = new HashMap<>(); |
|
30 |
params.put("versionId", token.getEnv().getAttribute("versionId")); |
|
31 |
params.put("size", token.getEnv().getAttribute("mdStoreSize")); |
|
32 |
|
|
33 |
final URI uri = UriComponentsBuilder.fromUriString(url) |
|
34 |
.buildAndExpand(params) |
|
35 |
.toUri(); |
|
36 |
|
|
37 |
final RestTemplate restTemplate = new RestTemplate(); |
|
38 |
restTemplate.getForObject(uri, Void.class); |
|
39 |
|
|
40 |
log.info("mdstore version committed "); |
|
41 |
return Arc.DEFAULT_ARC; |
|
42 |
} |
|
43 |
|
|
44 |
public String getMdStoreManagerUrl() { |
|
45 |
return mdStoreManagerUrl; |
|
46 |
} |
|
47 |
|
|
48 |
@Required |
|
49 |
public void setMdStoreManagerUrl(final String mdStoreManagerUrl) { |
|
50 |
this.mdStoreManagerUrl = mdStoreManagerUrl; |
|
51 |
} |
|
52 |
} |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/test/profiles/openaireplus/workflows/repo-hi/Aggregate_Metadata_from_PubsRepository_Hadoop.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<RESOURCE_PROFILE> |
|
3 |
<HEADER> |
|
4 |
<RESOURCE_IDENTIFIER |
|
5 |
value="925424a9-81e5-4dec-bb9d-d858c2390c64_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/> |
|
6 |
<RESOURCE_TYPE value="WorkflowDSResourceType"/> |
|
7 |
<RESOURCE_KIND value="WorkflowDSResources"/> |
|
8 |
<RESOURCE_URI value="value3"/> |
|
9 |
<DATE_OF_CREATION value="2015-12-11T15:36:51.0Z"/> |
|
10 |
</HEADER> |
|
11 |
<BODY> |
|
12 |
<WORKFLOW_NAME>Aggregate Metadata (publications) from PubsRepository [Hadoop]</WORKFLOW_NAME> |
|
13 |
<WORKFLOW_INFO> |
|
14 |
<FIELD name="Action">Aggregate Metadata</FIELD> |
|
15 |
<FIELD name="Consequence IS">Support</FIELD> |
|
16 |
<FIELD name="Datasource class">PubsRepository</FIELD> |
|
17 |
<FIELD name="Content">publications</FIELD> |
|
18 |
</WORKFLOW_INFO> |
|
19 |
<WORKFLOW_TYPE>REPO_HI</WORKFLOW_TYPE> |
|
20 |
<WORKFLOW_PRIORITY>20</WORKFLOW_PRIORITY> |
|
21 |
<CONFIGURATION start="manual"> |
|
22 |
<NODE name="VerifyDatasource" type="VerifyDatasource" isStart="true"> |
|
23 |
<DESCRIPTION>Verify if DS is pending</DESCRIPTION> |
|
24 |
<PARAMETERS> |
|
25 |
<PARAM name="expectedInterfaceTypologyPrefixes" managedBy="system" required="false" type="string">pubsrepository</PARAM> |
|
26 |
<PARAM name="expectedCompliancePrefixes" managedBy="system" required="false" type="string"></PARAM> |
|
27 |
</PARAMETERS> |
|
28 |
<ARCS> |
|
29 |
<ARC to="createMetaWf"/> |
|
30 |
<ARC to="validateDs" name="validateDs"/> |
|
31 |
</ARCS> |
|
32 |
</NODE> |
|
33 |
|
|
34 |
<NODE name="validateDs" type="ValidateDatasource"> |
|
35 |
<DESCRIPTION>Validate DS</DESCRIPTION> |
|
36 |
<PARAMETERS/> |
|
37 |
<ARCS> |
|
38 |
<ARC to="createMetaWf"/> |
|
39 |
</ARCS> |
|
40 |
</NODE> |
|
41 |
|
|
42 |
<NODE name="createMetaWf" type="RegisterMetaWf"> |
|
43 |
<DESCRIPTION>Create MetaWorkflow</DESCRIPTION> |
|
44 |
<PARAMETERS> |
|
45 |
<PARAM name="wfName" managedBy="system" required="true" |
|
46 |
type="string">Aggregate Metadata (publications) from PubsRepository [Support] |
|
47 |
</PARAM> |
|
48 |
</PARAMETERS> |
|
49 |
<ARCS> |
|
50 |
<ARC to="createDc"/> |
|
51 |
<ARC to="createOaf"/> |
|
52 |
</ARCS> |
|
53 |
</NODE> |
|
54 |
|
|
55 |
<NODE name="createDc" type="CreateMDStoreHadoop"> |
|
56 |
<DESCRIPTION>Create oai_dc store</DESCRIPTION> |
|
57 |
<PARAMETERS> |
|
58 |
<PARAM name="format" managedBy="system" required="true" type="string">oai_dc</PARAM> |
|
59 |
<PARAM name="interpretation" managedBy="system" required="true" type="string">native</PARAM> |
|
60 |
<PARAM name="layout" managedBy="system" required="true" type="string">store</PARAM> |
|
61 |
<PARAM name="outputPrefix" managedBy="system" required="true" type="string">harv_</PARAM> |
|
62 |
</PARAMETERS> |
|
63 |
<ARCS> |
|
64 |
<ARC to="updateMetaWf"/> |
|
65 |
</ARCS> |
|
66 |
</NODE> |
|
67 |
<NODE name="createOaf" type="CreateMDStoreHadoop"> |
|
68 |
<DESCRIPTION>Create OAF store</DESCRIPTION> |
|
69 |
<PARAMETERS> |
|
70 |
<PARAM name="format" managedBy="system" required="true" type="string">OAF</PARAM> |
|
71 |
<PARAM name="interpretation" managedBy="system" required="true" type="string">cleaned</PARAM> |
|
72 |
<PARAM name="layout" managedBy="system" required="true" type="string">store</PARAM> |
|
73 |
<PARAM name="outputPrefix" managedBy="system" required="true" type="string">tran_</PARAM> |
|
74 |
</PARAMETERS> |
|
75 |
<ARCS> |
|
76 |
<ARC to="updateMetaWf"/> |
|
77 |
</ARCS> |
|
78 |
</NODE> |
|
79 |
|
|
80 |
<NODE name="updateMetaWf" type="UpdateMetaWf" isJoin="true"> |
|
81 |
<DESCRIPTION>Create MetaWorkflow</DESCRIPTION> |
|
82 |
<PARAMETERS> |
|
83 |
<PARAM name="beanName" managedBy="system" required="true" type="string">metaWfPubsRepositoryHadoop</PARAM> |
|
84 |
</PARAMETERS> |
|
85 |
<ARCS> |
|
86 |
<ARC to="updateMetaWfStatus"/> |
|
87 |
</ARCS> |
|
88 |
</NODE> |
|
89 |
|
|
90 |
<NODE name="updateMetaWfStatus" type="UpdateOpenaireMetaWfStatus"> |
|
91 |
<DESCRIPTION>Update MetaWorkflow Status</DESCRIPTION> |
|
92 |
<PARAMETERS/> |
|
93 |
<ARCS> |
|
94 |
<ARC to="success"/> |
|
95 |
</ARCS> |
|
96 |
</NODE> |
|
97 |
</CONFIGURATION> |
|
98 |
|
|
99 |
<STATUS/> |
|
100 |
</BODY> |
|
101 |
</RESOURCE_PROFILE> |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/applicationContext-msro-openaireplus.properties | ||
---|---|---|
63 | 63 |
</zenodocommunity>}\ |
64 | 64 |
</zenodocommunities> \ |
65 | 65 |
</community> |
66 |
dnet.openaire.index.api.cacheEvictUrl = http://localhost:8980/provision/api/admin/evictCache |
|
66 |
dnet.openaire.index.api.cacheEvictUrl = http://localhost:8980/provision/api/admin/evictCache |
|
67 |
|
|
68 |
dhp.mdstore.manager.url=http://localhost:8080/mdstores |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/applicationContext-repohi.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | 3 |
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 |
xmlns:p="http://www.springframework.org/schema/p" xmlns="http://www.springframework.org/schema/beans" |
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
4 |
xmlns:p="http://www.springframework.org/schema/p" |
|
5 |
xmlns="http://www.springframework.org/schema/beans" |
|
6 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
|
6 | 7 |
|
7 | 8 |
|
8 |
<bean id="metaWfAggregatorDataRepository" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
9 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/repoBye.wf.st" |
|
10 |
scope="prototype"> |
|
11 |
<property name="tree"> |
|
12 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
13 |
p:name="collection" |
|
14 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/collection.wf.st"> |
|
15 |
<property name="children"> |
|
16 |
<list> |
|
17 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
18 |
p:name="transform" |
|
19 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/transform.wf.st"> |
|
20 |
</bean> |
|
21 |
</list> |
|
22 |
</property> |
|
23 |
</bean> |
|
24 |
</property> |
|
25 |
</bean> |
|
9 |
<bean id="metaWfAggregatorDataRepository" |
|
10 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
11 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/repoBye.wf.st" |
|
12 |
scope="prototype"> |
|
13 |
<property name="tree"> |
|
14 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
15 |
p:name="collection" |
|
16 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/collection.wf.st"> |
|
17 |
<property name="children"> |
|
18 |
<list> |
|
19 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
20 |
p:name="transform" |
|
21 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorDataRepository/transform.wf.st"> |
|
22 |
</bean> |
|
23 |
</list> |
|
24 |
</property> |
|
25 |
</bean> |
|
26 |
</property> |
|
27 |
</bean> |
|
26 | 28 |
|
27 |
<!-- Aggregate Metadata (publications) from Aggregator::PubsRepository [Ingestion] --> |
|
28 |
<bean id="metaWfAggregatorPubsRepositoryIngestion" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
29 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/repoBye.wf.st" |
|
30 |
scope="prototype"> |
|
31 |
<property name="tree"> |
|
32 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
33 |
p:name="collection" |
|
34 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/collection.wf.st"> |
|
35 |
<property name="children"> |
|
36 |
<list> |
|
37 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
38 |
p:name="validate" |
|
39 |
p:template="classpath:eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
40 |
<property name="children"> |
|
41 |
<list> |
|
42 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
43 |
p:name="transform" |
|
44 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/transform.wf.st"> |
|
45 |
</bean> |
|
46 |
</list> |
|
47 |
</property> |
|
48 |
</bean> |
|
49 |
</list> |
|
50 |
</property> |
|
51 |
</bean> |
|
52 |
</property> |
|
53 |
</bean> |
|
29 |
<!-- Aggregate Metadata (publications) from Aggregator::PubsRepository [Ingestion] --> |
|
30 |
<bean id="metaWfAggregatorPubsRepositoryIngestion" |
|
31 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
32 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/repoBye.wf.st" |
|
33 |
scope="prototype"> |
|
34 |
<property name="tree"> |
|
35 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
36 |
p:name="collection" |
|
37 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/collection.wf.st"> |
|
38 |
<property name="children"> |
|
39 |
<list> |
|
40 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
41 |
p:name="validate" |
|
42 |
p:template="classpath:eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
43 |
<property name="children"> |
|
44 |
<list> |
|
45 |
<bean |
|
46 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
47 |
p:name="transform" |
|
48 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggregatorPubsRepository/transform.wf.st"> |
|
49 |
</bean> |
|
50 |
</list> |
|
51 |
</property> |
|
52 |
</bean> |
|
53 |
</list> |
|
54 |
</property> |
|
55 |
</bean> |
|
56 |
</property> |
|
57 |
</bean> |
|
54 | 58 |
|
55 | 59 |
|
56 |
<bean id="metaWfDataRepository" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
57 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/repoBye.wf.st" |
|
58 |
scope="prototype"> |
|
59 |
<property name="tree"> |
|
60 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
61 |
p:name="collection" |
|
62 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/collection.wf.st"> |
|
63 |
<property name="children"> |
|
64 |
<list> |
|
65 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
66 |
p:name="validate" |
|
67 |
p:template="classpath:eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
68 |
<property name="children"> |
|
69 |
<list> |
|
70 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
71 |
p:name="transform" |
|
72 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/transform.wf.st"> |
|
73 |
</bean> |
|
74 |
</list> |
|
75 |
</property> |
|
76 |
</bean> |
|
60 |
<bean id="metaWfDataRepository" |
|
61 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
62 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/repoBye.wf.st" |
|
63 |
scope="prototype"> |
|
64 |
<property name="tree"> |
|
65 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
66 |
p:name="collection" |
|
67 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/collection.wf.st"> |
|
68 |
<property name="children"> |
|
69 |
<list> |
|
70 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
71 |
p:name="validate" |
|
72 |
p:template="classpath:eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
73 |
<property name="children"> |
|
74 |
<list> |
|
75 |
<bean |
|
76 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
77 |
p:name="transform" |
|
78 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepository/transform.wf.st"> |
|
79 |
</bean> |
|
80 |
</list> |
|
81 |
</property> |
|
82 |
</bean> |
|
77 | 83 |
|
78 |
</list>
|
|
79 |
</property>
|
|
80 |
</bean>
|
|
81 |
</property>
|
|
82 |
</bean>
|
|
84 |
</list>
|
|
85 |
</property>
|
|
86 |
</bean>
|
|
87 |
</property>
|
|
88 |
</bean>
|
|
83 | 89 |
|
84 |
<bean id="metaWfH2020Projects" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
85 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
86 |
scope="prototype"> |
|
87 |
<property name="tree"> |
|
88 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
89 |
p:name="collection" |
|
90 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
91 |
<property name="children"> |
|
92 |
<list> |
|
93 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
94 |
p:name="Create Contexts" |
|
95 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"> |
|
96 |
<property name="children"> |
|
97 |
<list> |
|
98 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
99 |
p:name="transform" |
|
100 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
101 |
<property name="children"> |
|
102 |
<list> |
|
103 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
104 |
p:name="Create FET Context" |
|
105 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/generateFETContext.wf.st"> |
|
106 |
</bean> |
|
107 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
108 |
p:name="updateDb" |
|
109 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st"/> |
|
110 |
</list> |
|
111 |
</property> |
|
112 |
</bean> |
|
113 |
</list> |
|
114 |
</property> |
|
115 |
</bean> |
|
116 |
</list> |
|
117 |
</property> |
|
118 |
</bean> |
|
119 |
</property> |
|
120 |
</bean> |
|
90 |
<bean id="metaWfH2020Projects" |
|
91 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
92 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
93 |
scope="prototype"> |
|
94 |
<property name="tree"> |
|
95 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
96 |
p:name="collection" |
|
97 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
98 |
<property name="children"> |
|
99 |
<list> |
|
100 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
101 |
p:name="Create Contexts" |
|
102 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"> |
|
103 |
<property name="children"> |
|
104 |
<list> |
|
105 |
<bean |
|
106 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
107 |
p:name="transform" |
|
108 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
109 |
<property name="children"> |
|
110 |
<list> |
|
111 |
<bean |
|
112 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
113 |
p:name="Create FET Context" |
|
114 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/generateFETContext.wf.st"> |
|
115 |
</bean> |
|
116 |
<bean |
|
117 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
118 |
p:name="updateDb" |
|
119 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st" /> |
|
120 |
</list> |
|
121 |
</property> |
|
122 |
</bean> |
|
123 |
</list> |
|
124 |
</property> |
|
125 |
</bean> |
|
126 |
</list> |
|
127 |
</property> |
|
128 |
</bean> |
|
129 |
</property> |
|
130 |
</bean> |
|
121 | 131 |
|
122 |
<bean id="metaWfEntityRegProjects" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
123 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
124 |
scope="prototype"> |
|
125 |
<property name="tree"> |
|
126 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
127 |
p:name="collection" |
|
128 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
129 |
<property name="children"> |
|
130 |
<list> |
|
131 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
132 |
p:name="Create Contexts" |
|
133 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"> |
|
134 |
<property name="children"> |
|
135 |
<list> |
|
136 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
137 |
p:name="transform" |
|
138 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
139 |
<property name="children"> |
|
140 |
<list> |
|
141 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
142 |
p:name="updateDb" |
|
143 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st"/> |
|
144 |
</list> |
|
145 |
</property> |
|
146 |
</bean> |
|
147 |
</list> |
|
148 |
</property> |
|
149 |
</bean> |
|
150 |
</list> |
|
151 |
</property> |
|
152 |
</bean> |
|
153 |
</property> |
|
154 |
</bean> |
|
132 |
<bean id="metaWfEntityRegProjects" |
|
133 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
134 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
135 |
scope="prototype"> |
|
136 |
<property name="tree"> |
|
137 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
138 |
p:name="collection" |
|
139 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
140 |
<property name="children"> |
|
141 |
<list> |
|
142 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
143 |
p:name="Create Contexts" |
|
144 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"> |
|
145 |
<property name="children"> |
|
146 |
<list> |
|
147 |
<bean |
|
148 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
149 |
p:name="transform" |
|
150 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
151 |
<property name="children"> |
|
152 |
<list> |
|
153 |
<bean |
|
154 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
155 |
p:name="updateDb" |
|
156 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st" /> |
|
157 |
</list> |
|
158 |
</property> |
|
159 |
</bean> |
|
160 |
</list> |
|
161 |
</property> |
|
162 |
</bean> |
|
163 |
</list> |
|
164 |
</property> |
|
165 |
</bean> |
|
166 |
</property> |
|
167 |
</bean> |
|
155 | 168 |
|
156 |
<bean id="metaWfEntityRegDatasource" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
157 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
158 |
scope="prototype"> |
|
159 |
<property name="tree"> |
|
160 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
161 |
p:name="collection" |
|
162 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
163 |
<property name="children"> |
|
164 |
<list> |
|
165 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
166 |
p:name="transform" |
|
167 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
168 |
<property name="children"> |
|
169 |
<list> |
|
170 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
171 |
p:name="updateDb" |
|
172 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st"/> |
|
173 |
</list> |
|
174 |
</property> |
|
175 |
</bean> |
|
176 |
</list> |
|
177 |
</property> |
|
178 |
</bean> |
|
179 |
</property> |
|
180 |
</bean> |
|
169 |
<bean id="metaWfEntityRegDatasource" |
|
170 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
171 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/repoBye.wf.st" |
|
172 |
scope="prototype"> |
|
173 |
<property name="tree"> |
|
174 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
175 |
p:name="collection" |
|
176 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/collection.wf.st"> |
|
177 |
<property name="children"> |
|
178 |
<list> |
|
179 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
180 |
p:name="transform" |
|
181 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/transformWithTDS.wf.st"> |
|
182 |
<property name="children"> |
|
183 |
<list> |
|
184 |
<bean |
|
185 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
186 |
p:name="updateDb" |
|
187 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg/updateDb.wf.st" /> |
|
188 |
</list> |
|
189 |
</property> |
|
190 |
</bean> |
|
191 |
</list> |
|
192 |
</property> |
|
193 |
</bean> |
|
194 |
</property> |
|
195 |
</bean> |
|
181 | 196 |
|
182 |
<!-- DEPRECATED --> |
|
183 |
<!-- |
|
184 |
<bean id="metaWfContextsEntityReg" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
185 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/repoBye.wf.st" |
|
186 |
scope="prototype"> |
|
187 |
<property name="tree"> |
|
188 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
189 |
p:name="Create Contexts" |
|
190 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"/> |
|
191 |
</property> |
|
192 |
</bean> |
|
193 |
--> |
|
197 |
<!-- DEPRECATED --> |
|
198 |
<!-- <bean id="metaWfContextsEntityReg" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
199 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/repoBye.wf.st" |
|
200 |
scope="prototype"> <property name="tree"> <bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
201 |
p:name="Create Contexts" p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/findContextsFromMDStore.wf.st"/> |
|
202 |
</property> </bean> --> |
|
194 | 203 |
|
195 |
<bean id="metaWfHostedByMapJournal" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
196 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/repoBye.wf.st" |
|
197 |
scope="prototype"> |
|
198 |
<property name="tree"> |
|
199 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
200 |
p:name="Update HostedBy Map" |
|
201 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/update.db.patch.wf.st"> |
|
202 |
</bean> |
|
203 |
</property> |
|
204 |
</bean> |
|
204 |
<bean id="metaWfHostedByMapJournal" |
|
205 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
206 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/repoBye.wf.st" |
|
207 |
scope="prototype"> |
|
208 |
<property name="tree"> |
|
209 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
210 |
p:name="Update HostedBy Map" |
|
211 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/fillhostedByDoaj/update.db.patch.wf.st"> |
|
212 |
</bean> |
|
213 |
</property> |
|
214 |
</bean> |
|
205 | 215 |
|
206 |
<!-- Fill hostedBy-Map (ISSNs in DOAJ) from PANGAEA [Context] --> |
|
207 |
<bean id="metaWfHostedByMapJournalIntersection" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
208 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/repoBye.wf.st" |
|
209 |
scope="prototype"> |
|
210 |
<property name="tree"> |
|
211 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
212 |
p:name="Update HostedBy Map" |
|
213 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/update.db.patch.wf.st"> |
|
214 |
</bean> |
|
215 |
</property> |
|
216 |
</bean> |
|
216 |
<!-- Fill hostedBy-Map (ISSNs in DOAJ) from PANGAEA [Context] --> |
|
217 |
<bean id="metaWfHostedByMapJournalIntersection" |
|
218 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
219 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/repoBye.wf.st" |
|
220 |
scope="prototype"> |
|
221 |
<property name="tree"> |
|
222 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
223 |
p:name="Update HostedBy Map" |
|
224 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/update.db.patch.wf.st"> |
|
225 |
</bean> |
|
226 |
</property> |
|
227 |
</bean> |
|
217 | 228 |
|
218 |
<bean id="metaWfPubsRepository" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
219 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/repoBye.wf.st" |
|
220 |
scope="prototype"> |
|
221 |
<property name="tree"> |
|
222 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
223 |
p:name="collection" |
|
224 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/collection.wf.st"> |
|
225 |
<property name="children"> |
|
226 |
<list> |
|
227 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
228 |
p:name="validate" |
|
229 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
230 |
<property name="children"> |
|
231 |
<list> |
|
232 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
233 |
p:name="transform" |
|
234 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/transform.wf.st"> |
|
235 |
</bean> |
|
236 |
</list> |
|
237 |
</property> |
|
238 |
</bean> |
|
229 |
<bean id="metaWfPubsRepository" |
|
230 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
231 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/repoBye.wf.st" |
|
232 |
scope="prototype"> |
|
233 |
<property name="tree"> |
|
234 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
235 |
p:name="collection" |
|
236 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/collection.wf.st"> |
|
237 |
<property name="children"> |
|
238 |
<list> |
|
239 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
240 |
p:name="validate" |
|
241 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/validate-nostore-openaire.wf.st"> |
|
242 |
<property name="children"> |
|
243 |
<list> |
|
244 |
<bean |
|
245 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
246 |
p:name="transform" |
|
247 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepository/transform.wf.st"> |
|
248 |
</bean> |
|
249 |
</list> |
|
250 |
</property> |
|
251 |
</bean> |
|
239 | 252 |
|
240 |
</list>
|
|
241 |
</property>
|
|
242 |
</bean>
|
|
243 |
</property>
|
|
244 |
</bean>
|
|
253 |
</list>
|
|
254 |
</property>
|
|
255 |
</bean>
|
|
256 |
</property>
|
|
257 |
</bean>
|
|
245 | 258 |
|
246 |
<bean id="metaWfClaimedMdRecords" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
247 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/repoBye.wf.st" |
|
248 |
scope="prototype"> |
|
249 |
<property name="tree"> |
|
250 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
251 |
p:name="collection" |
|
252 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/collection.wf.st"> |
|
253 |
<property name="children"> |
|
254 |
<list> |
|
255 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
256 |
p:name="transform" |
|
257 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/transform.wf.st"> |
|
258 |
</bean> |
|
259 |
</list> |
|
260 |
</property> |
|
261 |
</bean> |
|
262 |
</property> |
|
263 |
</bean> |
|
259 |
<bean id="metaWfClaimedMdRecords" |
|
260 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
261 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/repoBye.wf.st" |
|
262 |
scope="prototype"> |
|
263 |
<property name="tree"> |
|
264 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
265 |
p:name="collection" |
|
266 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/collection.wf.st"> |
|
267 |
<property name="children"> |
|
268 |
<list> |
|
269 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
270 |
p:name="transform" |
|
271 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/claim/transform.wf.st"> |
|
272 |
</bean> |
|
273 |
</list> |
|
274 |
</property> |
|
275 |
</bean> |
|
276 |
</property> |
|
277 |
</bean> |
|
264 | 278 |
|
265 |
<!-- Aggregate Metadata (datasets and publications by project) from PANGAEA [Ingestion] --> |
|
279 |
<!-- Aggregate Metadata (datasets and publications by project) from PANGAEA |
|
280 |
[Ingestion] --> |
|
266 | 281 |
|
267 |
<bean id="metaWfDatasetbyProjectsOpenaireMdRecords" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
268 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/repoBye.wf.st" |
|
269 |
scope="prototype"> |
|
270 |
<property name="tree"> |
|
271 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
272 |
p:name="collection" |
|
273 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/collection.wf.st"> |
|
274 |
<property name="children"> |
|
275 |
<list> |
|
276 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
277 |
p:name="transformPublications" |
|
278 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformPublications.wf.st"> |
|
279 |
</bean> |
|
280 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
281 |
p:name="transformDatasets" |
|
282 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformDatasets.wf.st"> |
|
283 |
</bean> |
|
284 |
</list> |
|
285 |
</property> |
|
286 |
</bean> |
|
287 |
</property> |
|
288 |
</bean> |
|
282 |
<bean id="metaWfDatasetbyProjectsOpenaireMdRecords" |
|
283 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
284 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/repoBye.wf.st" |
|
285 |
scope="prototype"> |
|
286 |
<property name="tree"> |
|
287 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
288 |
p:name="collection" |
|
289 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/collection.wf.st"> |
|
290 |
<property name="children"> |
|
291 |
<list> |
|
292 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
293 |
p:name="transformPublications" |
|
294 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformPublications.wf.st"> |
|
295 |
</bean> |
|
296 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
297 |
p:name="transformDatasets" |
|
298 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByProject/transformDatasets.wf.st"> |
|
299 |
</bean> |
|
300 |
</list> |
|
301 |
</property> |
|
302 |
</bean> |
|
303 |
</property> |
|
304 |
</bean> |
|
289 | 305 |
|
290 | 306 |
|
291 |
<!-- Aggregate Metadata (datasets and publications by journal) from DataRepository [Ingestion] Example : pangaea, dryad --> |
|
307 |
<!-- Aggregate Metadata (datasets and publications by journal) from DataRepository |
|
308 |
[Ingestion] Example : pangaea, dryad --> |
|
292 | 309 |
|
293 |
<bean id="metaWfDatasetbyJournalsOpenaireMdRecords" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
294 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/repoBye.wf.st" |
|
295 |
scope="prototype"> |
|
296 |
<property name="tree"> |
|
297 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
298 |
p:name="collection" |
|
299 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/collection.wf.st"> |
|
300 |
<property name="children"> |
|
301 |
<list> |
|
302 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
303 |
p:name="transformPublications" |
|
304 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformPublications.wf.st"> |
|
305 |
</bean> |
|
306 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
307 |
p:name="transformDatasets" |
|
308 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformDatasets.wf.st"> |
|
309 |
</bean> |
|
310 |
</list> |
|
311 |
</property> |
|
312 |
</bean> |
|
313 |
</property> |
|
314 |
</bean> |
|
310 |
<bean id="metaWfDatasetbyJournalsOpenaireMdRecords" |
|
311 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
312 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/repoBye.wf.st" |
|
313 |
scope="prototype"> |
|
314 |
<property name="tree"> |
|
315 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
316 |
p:name="collection" |
|
317 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/collection.wf.st"> |
|
318 |
<property name="children"> |
|
319 |
<list> |
|
320 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
321 |
p:name="transformPublications" |
|
322 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformPublications.wf.st"> |
|
323 |
</bean> |
|
324 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
325 |
p:name="transformDatasets" |
|
326 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/dataRepositoryByJournal/transformDatasets.wf.st"> |
|
327 |
</bean> |
|
328 |
</list> |
|
329 |
</property> |
|
330 |
</bean> |
|
331 |
</property> |
|
332 |
</bean> |
|
315 | 333 |
|
316 | 334 |
|
317 |
<!--Copy Metadata as Files (publications) from PubsRepository [Inference] --> |
|
318 |
<bean id="metaWfCopyFiles" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
319 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/repoBye_files.wf.st" |
|
320 |
scope="prototype"> |
|
321 |
<property name="tree"> |
|
322 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
323 |
p:name="feedObjectStore" |
|
324 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/feedObjectStore.st"> |
|
325 |
</bean> |
|
326 |
</property> |
|
327 |
</bean> |
|
335 |
<!--Copy Metadata as Files (publications) from PubsRepository [Inference] --> |
|
336 |
<bean id="metaWfCopyFiles" |
|
337 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
338 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/repoBye_files.wf.st" |
|
339 |
scope="prototype"> |
|
340 |
<property name="tree"> |
|
341 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
342 |
p:name="feedObjectStore" |
|
343 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/wos/feedObjectStore.st"> |
|
344 |
</bean> |
|
345 |
</property> |
|
346 |
</bean> |
|
328 | 347 |
|
329 |
<!-- Download Files (files) from PubsRepository [Inference] --> |
|
330 |
<bean id="metaWfPubRepositoryFiles" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
331 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/downloadFilesFromPubsRepository/repoBye.wf.st" |
|
332 |
scope="prototype"> |
|
333 |
<property name="tree"> |
|
334 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
335 |
p:name="downloadFiles" |
|
336 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/downloadFilesFromPubsRepository/download.st"> |
|
337 |
</bean> |
|
338 |
</property> |
|
339 |
</bean> |
|
348 |
<!-- Download Files (files) from PubsRepository [Inference] --> |
|
349 |
<bean id="metaWfPubRepositoryFiles" |
|
350 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
351 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/downloadFilesFromPubsRepository/repoBye.wf.st" |
|
352 |
scope="prototype"> |
|
353 |
<property name="tree"> |
|
354 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
355 |
p:name="downloadFiles" |
|
356 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/downloadFilesFromPubsRepository/download.st"> |
|
357 |
</bean> |
|
358 |
</property> |
|
359 |
</bean> |
|
340 | 360 |
|
341 |
<!-- Fill hostedBy-Map (OAI-PMH sets in DataRepositories) from DataCite [Context] --> |
|
342 |
<bean id="metaWfAggrDatarepoOaiSets" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
343 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/repoBye.wf.st" |
|
344 |
scope="prototype"> |
|
345 |
<property name="tree"> |
|
346 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
347 |
p:name="collection" |
|
348 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/collection.wf.st"> |
|
349 |
<property name="children"> |
|
350 |
<list> |
|
351 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
352 |
p:name="transform" |
|
353 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/transform.wf.st"> |
|
354 |
<property name="children"> |
|
355 |
<list> |
|
356 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
357 |
p:name="updateDb" |
|
358 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/updateDb.wf.st"/> |
|
359 |
</list> |
|
360 |
</property> |
|
361 |
</bean> |
|
362 |
</list> |
|
363 |
</property> |
|
364 |
</bean> |
|
365 |
</property> |
|
366 |
</bean> |
|
361 |
<!-- Fill hostedBy-Map (OAI-PMH sets in DataRepositories) from DataCite |
|
362 |
[Context] --> |
|
363 |
<bean id="metaWfAggrDatarepoOaiSets" |
|
364 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
365 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/repoBye.wf.st" |
|
366 |
scope="prototype"> |
|
367 |
<property name="tree"> |
|
368 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
369 |
p:name="collection" |
|
370 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/collection.wf.st"> |
|
371 |
<property name="children"> |
|
372 |
<list> |
|
373 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
374 |
p:name="transform" |
|
375 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/transform.wf.st"> |
|
376 |
<property name="children"> |
|
377 |
<list> |
|
378 |
<bean |
|
379 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
380 |
p:name="updateDb" |
|
381 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/updateDb.wf.st" /> |
|
382 |
</list> |
|
383 |
</property> |
|
384 |
</bean> |
|
385 |
</list> |
|
386 |
</property> |
|
387 |
</bean> |
|
388 |
</property> |
|
389 |
</bean> |
|
367 | 390 |
|
368 | 391 |
|
369 |
<!-- Fill Generic hostedBy-Map --> |
|
370 |
<bean id="metaWfGenericHostedByMap" class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
371 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/repoBye.wf.st" |
|
372 |
scope="prototype"> |
|
373 |
<property name="tree"> |
|
374 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
375 |
p:name="collection" |
|
376 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/collection.wf.st"> |
|
377 |
<property name="children"> |
|
378 |
<list> |
|
379 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
380 |
p:name="transform" |
|
381 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/transform.wf.st"> |
|
382 |
<property name="children"> |
|
383 |
<list> |
|
384 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
385 |
p:name="updateDb" |
|
386 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/updateDb.wf.st"/> |
|
387 |
</list> |
|
388 |
</property> |
|
389 |
</bean> |
|
390 |
</list> |
|
391 |
</property> |
|
392 |
</bean> |
|
393 |
</property> |
|
394 |
</bean> |
|
392 |
<!-- Fill Generic hostedBy-Map --> |
|
393 |
<bean id="metaWfGenericHostedByMap" |
|
394 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
395 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/aggrDatarepoOaiSets/repoBye.wf.st" |
|
396 |
scope="prototype"> |
|
397 |
<property name="tree"> |
|
398 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
399 |
p:name="collection" |
|
400 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/collection.wf.st"> |
|
401 |
<property name="children"> |
|
402 |
<list> |
|
403 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
404 |
p:name="transform" |
|
405 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/transform.wf.st"> |
|
406 |
<property name="children"> |
|
407 |
<list> |
|
408 |
<bean |
|
409 |
class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
410 |
p:name="updateDb" |
|
411 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/hostedbyMapJournalIntersection/updateDb.wf.st" /> |
|
412 |
</list> |
|
413 |
</property> |
|
414 |
</bean> |
|
415 |
</list> |
|
416 |
</property> |
|
417 |
</bean> |
|
418 |
</property> |
|
419 |
</bean> |
|
420 |
|
|
421 |
|
|
422 |
<!-- Aggregate Metadata (publications) from PubsRepository [Hadoop] --> |
|
423 |
<bean id="metaWfPubsRepositoryHadoop" |
|
424 |
class="eu.dnetlib.msro.workflows.metawf.DatasourceMetaWorkflow" |
|
425 |
p:destroyWorkflowTemplate="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/repoBye.wf.st" |
|
426 |
scope="prototype"> |
|
427 |
<property name="tree"> |
|
428 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
429 |
p:name="collection" |
|
430 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/collection.wf.st"> |
|
431 |
<property name="children"> |
|
432 |
<list> |
|
433 |
<bean class="eu.dnetlib.msro.workflows.metawf.WorkflowTree" |
|
434 |
p:name="transform" |
|
435 |
p:template="classpath:/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/transform.wf.st" /> |
|
436 |
</list> |
|
437 |
</property> |
|
438 |
</bean> |
|
439 |
</property> |
|
440 |
</bean> |
|
395 | 441 |
</beans> |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/repoBye.wf.st | ||
---|---|---|
1 |
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo"> |
|
2 |
<DESCRIPTION>Set information about current provider</DESCRIPTION> |
|
3 |
<PARAMETERS> |
|
4 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
5 |
<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM> |
|
6 |
<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
7 |
</PARAMETERS> |
|
8 |
<ARCS> |
|
9 |
<ARC to="DeleteMetaWorkflow"/> |
|
10 |
</ARCS> |
|
11 |
</NODE> |
|
12 |
|
|
13 |
<NODE name="DeleteMetaWorkflow" type="DeleteOpenaireMetaWf"> |
|
14 |
<DESCRIPTION>Delete the MetaWorkflow</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM required="true" type="string" name="metaWfId" managedBy="system">$params.("META_WORKFLOW_ID")$</PARAM> |
|
17 |
</PARAMETERS> |
|
18 |
<ARCS> |
|
19 |
<ARC to="DeleteMDStoreDC"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
<NODE name="DeleteMDStoreDC" type="DeleteMDStoreHadoop"> |
|
24 |
<DESCRIPTION>Delete the oai_dc mdstore</DESCRIPTION> |
|
25 |
<PARAMETERS> |
|
26 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM> |
|
27 |
</PARAMETERS> |
|
28 |
<ARCS> |
|
29 |
<ARC to="DeleteMDStoreOAF"/> |
|
30 |
</ARCS> |
|
31 |
</NODE> |
|
32 |
|
|
33 |
<NODE name="DeleteMDStoreOAF" type="DeleteMDStoreHadoop"> |
|
34 |
<DESCRIPTION>Delete the OAF mdstore</DESCRIPTION> |
|
35 |
<PARAMETERS> |
|
36 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("tran_id")$</PARAM> |
|
37 |
</PARAMETERS> |
|
38 |
<ARCS> |
|
39 |
<ARC to="RemoveApiExtraFields"/> |
|
40 |
</ARCS> |
|
41 |
</NODE> |
|
42 |
|
|
43 |
<NODE name="RemoveApiExtraFields" type="RemoveApiExtraFields"> |
|
44 |
<DESCRIPTION>Reset the extrafields of the api</DESCRIPTION> |
|
45 |
<PARAMETERS> |
|
46 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
47 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
48 |
<PARAM required="true" type="string" name="fields" managedBy="system">last_collection_total, last_collection_date, last_collection_mdId, last_aggregation_total, last_aggregation_date, last_aggregation_mdId</PARAM> |
|
49 |
</PARAMETERS> |
|
50 |
<ARCS> |
|
51 |
<ARC to="success"/> |
|
52 |
</ARCS> |
|
53 |
</NODE> |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/collection.wf.st | ||
---|---|---|
1 |
<NODE name="SET_INFO" isStart="true" type="SetProviderInfo"> |
|
2 |
<DESCRIPTION>Set information about current provider</DESCRIPTION> |
|
3 |
<PARAMETERS> |
|
4 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
5 |
<PARAM required="true" type="string" name="providerName" managedBy="system">$params.("dataprovider:name")$</PARAM> |
|
6 |
<PARAM required="true" type="string" name="api" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
7 |
</PARAMETERS> |
|
8 |
<ARCS> |
|
9 |
<ARC to="obtainParams"/> |
|
10 |
</ARCS> |
|
11 |
</NODE> |
|
12 |
|
|
13 |
<NODE name="obtainParams" type="ObtainOpenaireDataSourceParams"> |
|
14 |
<DESCRIPTION>Obtain data source params</DESCRIPTION> |
|
15 |
<PARAMETERS> |
|
16 |
<PARAM required="true" type="string" name="providerId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
17 |
</PARAMETERS> |
|
18 |
<ARCS> |
|
19 |
<ARC to="PREPARE_STORE_VERSION"/> |
|
20 |
</ARCS> |
|
21 |
</NODE> |
|
22 |
|
|
23 |
<NODE name="PREPARE_STORE_VERSION" type="PrepareMdStoreVersion"> |
|
24 |
<DESCRIPTION>Prepare a new MdStore Version</DESCRIPTION> |
|
25 |
<PARAMETERS> |
|
26 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM> |
|
27 |
</PARAMETERS> |
|
28 |
<ARCS> |
|
29 |
<ARC to="COLLECT_HADOOP"/> |
|
30 |
</ARCS> |
|
31 |
</NODE> |
|
32 |
|
|
33 |
<NODE name="COLLECT_HADOOP" type="CollectHadoop"> |
|
34 |
<DESCRIPTION>Start the Hadoop Job</DESCRIPTION> |
|
35 |
<PARAMETERS/> |
|
36 |
<ARCS> |
|
37 |
<ARC to="COMMIT_VERSION"/> |
|
38 |
<ARC to="ABORT_VERSION" name="abort" /> |
|
39 |
</ARCS> |
|
40 |
</NODE> |
|
41 |
|
|
42 |
<NODE name="COMMIT_VERSION" type="CommitMDStoreVersion"> |
|
43 |
<DESCRIPTION>Commit the mdstore version</DESCRIPTION> |
|
44 |
<PARAMETERS/> |
|
45 |
<ARCS> |
|
46 |
<ARC to="UPDATE_INFO"/> |
|
47 |
</ARCS> |
|
48 |
</NODE> |
|
49 |
|
|
50 |
<NODE name="ABORT_VERSION" type="AbortMDStoreVersion"> |
|
51 |
<DESCRIPTION>Abort the mdstore version</DESCRIPTION> |
|
52 |
<PARAMETERS/> |
|
53 |
<ARCS> |
|
54 |
<ARC to="failure"/> |
|
55 |
</ARCS> |
|
56 |
</NODE> |
|
57 |
|
|
58 |
<NODE name="UPDATE_INFO" type="MDStoreToApiExtraField"> |
|
59 |
<DESCRIPTION>Update datasouce API extra fields</DESCRIPTION> |
|
60 |
<PARAMETERS> |
|
61 |
<PARAM required="true" type="string" name="mdId" managedBy="system">$params.("harv_id")$</PARAM> |
|
62 |
<PARAM required="true" type="string" name="datasourceId" managedBy="system">$params.("dataprovider:id")$</PARAM> |
|
63 |
<PARAM required="true" type="string" name="datasourceInterface" managedBy="system">$params.("dataprovider:interface")$</PARAM> |
|
64 |
<PARAM required="true" type="string" name="extraFieldForTotal" managedBy="system">last_collection_total</PARAM> |
|
65 |
<PARAM required="true" type="string" name="extraFieldForDate" managedBy="system">last_collection_date</PARAM> |
|
66 |
<PARAM required="true" type="string" name="extraFieldForMdId" managedBy="system">last_collection_mdId</PARAM> |
|
67 |
</PARAMETERS> |
|
68 |
<ARCS> |
|
69 |
<ARC to="success"/> |
|
70 |
</ARCS> |
|
71 |
</NODE> |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/repo-hi/pubsRepositoryHadoop/transform.wf.st | ||
---|---|---|
1 |
<NODE name="TODO" isStart="true"> |
|
2 |
<DESCRIPTION>TODO</DESCRIPTION> |
|
3 |
<PARAMETERS /> |
|
4 |
<ARCS> |
|
5 |
<ARC to="success"/> |
|
6 |
</ARCS> |
|
7 |
</NODE> |
modules/dnet-openaireplus-workflows/branches/dnet-hodoop/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/applicationContext-msro-openaire-nodes.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 |
xmlns:p="http://www.springframework.org/schema/p"
|
|
4 |
xmlns="http://www.springframework.org/schema/beans"
|
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
3 |
xmlns:p="http://www.springframework.org/schema/p"
|
|
4 |
xmlns="http://www.springframework.org/schema/beans"
|
|
5 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
6 | 6 |
|
7 |
<bean id="wfNodeUpdateActionSets" |
Also available in: Unified diff