Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE>
3
    <HEADER>
4
        <RESOURCE_IDENTIFIER value=""/>
5
        <RESOURCE_TYPE value="WorkflowDSResourceType"/>
6
        <RESOURCE_KIND value="WorkflowDSResources"/>
7
        <RESOURCE_URI value=""/>
8
        <DATE_OF_CREATION value=""/>
9
    </HEADER>
10
    <BODY>
11
        <WORKFLOW_NAME>$name$</WORKFLOW_NAME>
12
        <WORKFLOW_DESCRIPTION>$desc$</WORKFLOW_DESCRIPTION>
13
        <WORKFLOW_INFO />
14
        <WORKFLOW_FAMILY>publishing</WORKFLOW_FAMILY>
15
        <WORKFLOW_PRIORITY>$priority$</WORKFLOW_PRIORITY>
16
        <DATASOURCE id="$dsId$" interface="$interface$" />
17

    
18
        <CONFIGURATION status="WAIT_SYS_SETTINGS" start="MANUAL">
19
            <PARAMETERS>
20
                <PARAM name="indexId"               description="Identifier of the Index"           required="true" managedBy="system"  category="INDEX_ID"/>
21
            	<PARAM name="OAIFormat"             description="OAI Format"                        required="true" managedBy="user"    type="string">CIDOC</PARAM>
22
                <PARAM name="OAILayout"             description="OAI Layout"                        required="true" managedBy="system"  type="string">OAI</PARAM>
23
                <PARAM name="OAIInterpretation"     description="OAI Interpretation"                required="true" managedBy="system"  type="string">transformed</PARAM>
24
                <PARAM name="OAIDBName"             description="OAI Database Name"                 required="true" managedBy="system"  type="string">oaistore_parthenos</PARAM>
25
                <PARAM name="OAIConfiguredOnly"     description="Count only configured OAI sets"    required="true" managedBy="user"    type="boolean">false</PARAM>
26
                <PARAM name="publisherEndpoint"     description="Parthenos Publisher Endpoint"      required="true" managedBy="user"    type="string">http://beta-parthenos.d4science.org:8080/parthenos/unpublish</PARAM>
27
            </PARAMETERS>
28
            <WORKFLOW>
29
            <!-- TODO: not deleteIndex: deleteByQuery. If the node does not exist, create one-->
30
                	<NODE name="deleteIndex" type="DeleteIndex" isStart="true">
31
                		<DESCRIPTION>Delete the index</DESCRIPTION>
32
                		<PARAMETERS>
33
                			<PARAM name="indexId" ref="indexId"/>
34
                		</PARAMETERS>
35
                		<ARCS>
36
                			<ARC to="success"/>
37
                		</ARCS>
38
                	</NODE>
39
                	<NODE name="dropOAI" type="OAIDropStore" isStart="true">
40
                		<DESCRIPTION>Delete from oai</DESCRIPTION>
41
                		<PARAMETERS>
42
                			<PARAM name="oaiDbName" ref="OAIDBName"/>
43
                			<PARAM name="oaiFormat" ref="OAIFormat"/>
44
                			<PARAM name="oaiLayout" ref="OAILayout"/>
45
                			<PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
46
                			<PARAM name="setSpec" ref="dsName" />
47
                		</PARAMETERS>
48
                		<ARCS>
49
                			<ARC to="updateSetsCount"/>
50
                		</ARCS>
51
                	</NODE>
52
                	<NODE name="updateSetsCount" type="OAISetsCountUpdate">
53
                		<DESCRIPTION>Update the OAI sets count</DESCRIPTION>
54
                		<PARAMETERS>
55
                            <PARAM name="oaiDbName" ref="OAIDBName"/>
56
                            <PARAM name="oaiFormat" ref="OAIFormat"/>
57
                            <PARAM name="oaiLayout" ref="OAILayout"/>
58
                            <PARAM name="oaiInterpretation" ref="OAIInterpretation"/>
59
                            <PARAM name="configuredOnly" value="true"/>
60
                		</PARAMETERS>
61
                		<ARCS>
62
                			<ARC to="success"/>
63
                		</ARCS>
64
                	</NODE>
65
                	<NODE name="unpublishVirtuoso" type="UnpublishVirtuoso" isStart="true">
66
                    	<DESCRIPTION>Drop from Virtuoso</DESCRIPTION>
67
                        <PARAMETERS>
68
                            <PARAM name="publisherEndpoint" ref="publisherEndpoint"/>
69
                            <PARAM name="datasourceInterface" value="$interface$" />
70
                        </PARAMETERS>
71
                        <ARCS>
72
                            <ARC to="success"/>
73
                        </ARCS>
74
                    </NODE>
75
           </WORKFLOW>
76
           <DESTROY_WORKFLOW_TEMPLATE id="23ef4bb3-2383-45b4-9661-ab03472fcd52_V29ya2Zsb3dUZW1wbGF0ZURTUmVzb3VyY2VzL1dvcmtmbG93VGVtcGxhdGVEU1Jlc291cmNlVHlwZQ==">
77
               <PARAMETERS/>
78
           </DESTROY_WORKFLOW_TEMPLATE></CONFIGURATION>
79
        <NOTIFICATIONS/>
80
        
81
        <SCHEDULING enabled="false">
82
            <CRON>9 9 9 ? * *</CRON>
83
            <MININTERVAL>10080</MININTERVAL>
84
        </SCHEDULING>
85
        <STATUS/>
86
    </BODY>
87
</RESOURCE_PROFILE>
(2-2/3)