Revision 37026
Added by Marek Horst about 9 years ago
workflow.xml | ||
---|---|---|
772 | 772 |
<decision name="decision-export"> |
773 | 773 |
<switch> |
774 | 774 |
<case to="export">${active_export eq "true"}</case> |
775 |
<default to="end"/>
|
|
775 |
<default to="export_to_json"/>
|
|
776 | 776 |
</switch> |
777 | 777 |
</decision> |
778 | 778 |
|
... | ... | |
935 | 935 |
<error to="fail" /> |
936 | 936 |
</action> |
937 | 937 |
|
938 |
<action name="export_to_json"> |
|
939 |
<sub-workflow> |
|
940 |
<app-path>${wf:appPath()}/mainworkflows_common_export_to_json</app-path> |
|
941 |
<propagate-configuration/> |
|
942 |
<configuration> |
|
943 |
<!-- input ports --> |
|
944 |
<property> |
|
945 |
<name>input_document_metadata</name> |
|
946 |
<value>${workingDir}/transformers_export_documentmetadata/output_metadata</value> |
|
947 |
</property> |
|
948 |
<property> |
|
949 |
<name>input_document_to_project</name> |
|
950 |
<value>${workingDir}/exported/document_to_project</value> |
|
951 |
</property> |
|
952 |
<property> |
|
953 |
<name>input_document_to_project_concepts</name> |
|
954 |
<value>${workingDir}/exported/document_to_project_concepts</value> |
|
955 |
</property> |
|
956 |
<property> |
|
957 |
<name>input_document_to_dataset</name> |
|
958 |
<value>${workingDir}/exported/document_to_dataset</value> |
|
959 |
</property> |
|
960 |
<property> |
|
961 |
<name>input_document_to_mdstore</name> |
|
962 |
<value>${workingDir}/mainworkflows_common_import/dataset_to_mdstore</value> |
|
963 |
</property> |
|
964 |
<property> |
|
965 |
<name>input_document_to_research_initiatives</name> |
|
966 |
<value>${workingDir}/exported/document_to_research_initiatives</value> |
|
967 |
</property> |
|
968 |
<property> |
|
969 |
<name>input_document_to_document_classes</name> |
|
970 |
<value>${workingDir}/exported/document_to_document_classes</value> |
|
971 |
</property> |
|
972 |
<property> |
|
973 |
<name>input_citations</name> |
|
974 |
<value>${workingDir}/exported/citation</value> |
|
975 |
</property> |
|
976 |
<property> |
|
977 |
<name>input_document_similarity</name> |
|
978 |
<value>${workingDir}/exported/document_similarity</value> |
|
979 |
</property> |
|
980 |
<property> |
|
981 |
<name>input_document_statistics</name> |
|
982 |
<value>${workingDir}/exported/document_statistics</value> |
|
983 |
</property> |
|
984 |
<property> |
|
985 |
<name>input_document_websiteusage_similarity</name> |
|
986 |
<value>${workingDir}/websiteusage_analysis/output</value> |
|
987 |
</property> |
|
988 |
<property> |
|
989 |
<name>input_author_statistics</name> |
|
990 |
<value>${workingDir}/exported/author_statistics</value> |
|
991 |
</property> |
|
992 |
<property> |
|
993 |
<name>input_project_statistics</name> |
|
994 |
<value>${workingDir}/exported/project_statistics</value> |
|
995 |
</property> |
|
996 |
<property> |
|
997 |
<name>output_root</name> |
|
998 |
<value>${workingDir}/exported_as_json</value> |
|
999 |
</property> |
|
1000 |
</configuration> |
|
1001 |
</sub-workflow> |
|
1002 |
<ok to="end"/> |
|
1003 |
<error to="fail" /> |
|
1004 |
</action> |
|
1005 |
|
|
938 | 1006 |
<kill name="fail"> |
939 | 1007 |
<message>Unfortunately, the process failed -- error message: |
940 | 1008 |
[${wf:errorMessage(wf:lastErrorNode())}]</message> |
Also available in: Unified diff
#1301 introducing common/export_to_json and utilizing this subworkflow in both primary and preprocessing workflows executing it when active_export=false which means hbase export is disabled