diff --git a/.gitignore b/.gitignore
index 9a2a6fa2..eb3b41fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,98 @@ portal/src/main/webapp/lib/plupload
portal/src/main/webapp/lib/extjs
bin
*.iml
+# Created by https://www.toptal.com/developers/gitignore/api/maven
+# Edit at https://www.toptal.com/developers/gitignore?templates=maven
+
+### Maven ###
+target/
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+.mvn/timing.properties
+# https://github.com/takari/maven-wrapper#usage-without-binary-jar
+.mvn/wrapper/maven-wrapper.jar
+
+# Eclipse m2e generated files
+# Eclipse Core
+.project
+# JDT-specific (Eclipse Java Development Tools)
+.classpath
+
+# End of https://www.toptal.com/developers/gitignore/api/maven
+
+# Created by https://www.toptal.com/developers/gitignore/api/eclipse
+# Edit at https://www.toptal.com/developers/gitignore?templates=eclipse
+
+### Eclipse ###
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.settings/
+.loadpath
+.recommenders
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# PyDev specific (Python IDE for Eclipse)
+*.pydevproject
+
+# CDT-specific (C/C++ Development Tooling)
+.cproject
+
+# CDT- autotools
+.autotools
+
+# Java annotation processor (APT)
+.factorypath
+
+# PDT-specific (PHP Development Tools)
+.buildpath
+
+# sbteclipse plugin
+.target
+
+# Tern plugin
+.tern-project
+
+# TeXlipse plugin
+.texlipse
+
+# STS (Spring Tool Suite)
+.springBeans
+
+# Code Recommenders
+.recommenders/
+
+# Annotation Processing
+.apt_generated/
+.apt_generated_test/
+
+# Scala IDE specific (Scala & Java development for Eclipse)
+.cache-main
+.scala_dependencies
+.worksheet
+
+# Uncomment this line if you wish to ignore the project description file.
+# Typically, this file would be tracked if it contains build/dependency configurations:
+#.project
+
+### Eclipse Patch ###
+# Spring Boot Tooling
+.sts4-cache/
+
+# End of https://www.toptal.com/developers/gitignore/api/eclipse
+
diff --git a/core/pom.xml.versionsBackup b/core/pom.xml.versionsBackup
deleted file mode 100644
index 13ca4ff6..00000000
--- a/core/pom.xml.versionsBackup
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
- 4.0.0
- edu.isi.wings
- wings-core
- 4.2.6
- Wings Core
- pom
- Wings project for the IKCAP group
- http://www.wings-workflows.org
-
- USC/Information Sciences Institute
- http://www.isi.edu
-
-
-
- 4.2.5
- 1.8
- 1.8
-
-
-
-
- varunr
- Varun Ratnakar
- varunr@isi.edu
- http://www.isi.edu/~varunr
- ISI
- http://www.isi.edu
-
- Researcher
- Developer
-
- 0
-
-
- dgarijo
- Daniel Garijo
- dgarijo@fi.upm.es
- UPM
- http://mayor2.dia.fi.upm.es/oeg-upm/
-
- Researcher
- Developer
-
- 1
-
-
- moody
- Joshua Moody
- moody@isi.edu
- ISI
- http://www.isi.edu
-
- Researcher
- Developer
-
- -8
-
-
- cfritz
- Christian Fritz
- cfritz@isi.edu
- http://www.cs.toronto.edu/~fritz/
- ISI
- http://www.isi.edu
-
- Post Doc
- Researcher
- Developer
-
- -8
-
-
- jihie
- Jihie Kim
- jihie@isi.edu
- http://www.isi.edu/~jihie/
- ISI
- http://www.isi.edu
-
- Professor Computer Science
- Researcher
- Developer
-
- -8
-
-
-
-
-
- github
- GitHub OWNER Apache Maven Packages
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/wings
-
-
-
-
diff --git a/planner/.classpath b/planner/.classpath
index 16d4af0d..94fadc55 100644
--- a/planner/.classpath
+++ b/planner/.classpath
@@ -9,8 +9,9 @@
-
+
+
@@ -28,7 +29,29 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/planner/.settings/org.eclipse.jdt.core.prefs b/planner/.settings/org.eclipse.jdt.core.prefs
index cac0df4d..26aef1a5 100644
--- a/planner/.settings/org.eclipse.jdt.core.prefs
+++ b/planner/.settings/org.eclipse.jdt.core.prefs
@@ -7,5 +7,6 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
diff --git a/planner/pom.xml b/planner/pom.xml
index cdafd6ea..d2337291 100644
--- a/planner/pom.xml
+++ b/planner/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
wings-planner
Wings Planner
@@ -55,15 +56,6 @@
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/ontapi
-
-
-
-
diff --git a/planner/pom.xml.versionsBackup b/planner/pom.xml.versionsBackup
deleted file mode 100644
index 18eea3bc..00000000
--- a/planner/pom.xml.versionsBackup
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
- 4.0.0
- wings-planner
- Wings Planner
- jar
- Wings project for the IKCAP group
-
-
- edu.isi.wings
- wings-core
- 4.2.6
- ../core/pom.xml
-
-
-
- 0.1.53
- 1.2.4
- 0.8.11
- 2.2.4
- 4.5
- 1.7.25
- 2.3.0
- 10.10.1.1
- 2.4
- 1.0.9
- 1.10
-
- UTF-8
- UTF-8
- 1.8
- 1.8
-
-
-
-
-
- src/main/resources
-
-
- src/test/resources
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
- 2.16
-
- false
- 1
-
-
-
-
-
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/ontapi
-
-
-
-
-
-
-
-
- junit
- junit
- ${junit.version}
- test
-
-
-
-
- org.slf4j
- slf4j-log4j12
- ${slf4j-log4j.version}
-
-
-
-
- javax.xml.bind
- jaxb-api
- ${jaxb.version}
-
-
-
-
- edu.isi.kcap
- ontapi
- 1.2.4
-
-
-
-
- com.google.code.gson
- gson
- ${gson.version}
-
-
-
-
-
-
-
- org.gridkit.lab
- nanocloud
- ${nanocloud.version}
-
-
-
-
- urbanophile
- java-getopt
- ${java-getopt.version}
-
-
-
-
- commons-configuration
- commons-configuration
- ${commons-configuration.version}
-
-
-
-
- commons-io
- commons-io
- ${commons-io.version}
-
-
-
-
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index ade41583..0f924f1c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,5 @@
-
4.0.0
@@ -14,7 +15,7 @@
5.4.2
core/pom.xml
-
+
UTF-8
@@ -25,15 +26,7 @@
GitHub OWNER Apache Maven Packages
https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/wings
-
-
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/ontapi
-
-
+
core
@@ -43,4 +36,4 @@
-
+
\ No newline at end of file
diff --git a/pom.xml.versionsBackup b/pom.xml.versionsBackup
deleted file mode 100644
index 1b867eb9..00000000
--- a/pom.xml.versionsBackup
+++ /dev/null
@@ -1,46 +0,0 @@
-
- 4.0.0
-
- wings
- Wings
- http://www.wings-workflows.org
- Wings project for the IKCAP group
- pom
-
-
- edu.isi.wings
- wings-core
- 4.2.6
- core/pom.xml
-
-
-
- UTF-8
-
-
-
-
- github
- GitHub OWNER Apache Maven Packages
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/wings
-
-
-
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/ontapi
-
-
-
-
- core
- planner
- portal
-
-
-
-
-
diff --git a/portal/.classpath b/portal/.classpath
index e4f3f86f..6330fa28 100644
--- a/portal/.classpath
+++ b/portal/.classpath
@@ -9,6 +9,7 @@
+
@@ -21,12 +22,35 @@
-
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/portal/.settings/org.eclipse.jdt.core.prefs b/portal/.settings/org.eclipse.jdt.core.prefs
index 67cf5a8f..7fdcd9c8 100644
--- a/portal/.settings/org.eclipse.jdt.core.prefs
+++ b/portal/.settings/org.eclipse.jdt.core.prefs
@@ -4,9 +4,9 @@ org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nul
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=11
+org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -19,5 +19,6 @@ org.eclipse.jdt.core.compiler.problem.nullReference=warning
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
-org.eclipse.jdt.core.compiler.release=enabled
-org.eclipse.jdt.core.compiler.source=11
+org.eclipse.jdt.core.compiler.processAnnotations=enabled
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/portal/pom.xml b/portal/pom.xml
index d73d40e1..b9c6ad16 100644
--- a/portal/pom.xml
+++ b/portal/pom.xml
@@ -1,6 +1,7 @@
-
+
4.0.0
wings-portal
Wings Portal
@@ -22,17 +23,9 @@
2.27
2.8.6
1.1.0.Final
- 1.3.3
+ 1.3.3
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/WINGS-OPMW-Mapper
-
-
-
@@ -63,7 +56,7 @@
- edu.isi.wings
+ edu.isi.kcap.wings
wings-opmm
${wings-opmm.version}
@@ -175,9 +168,9 @@
- org.apache.maven.plugins
- maven-war-plugin
- 3.3.1
+ org.apache.maven.plugins
+ maven-war-plugin
+ 3.3.1
diff --git a/portal/pom.xml.versionsBackup b/portal/pom.xml.versionsBackup
deleted file mode 100644
index 9d921cd5..00000000
--- a/portal/pom.xml.versionsBackup
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
- 4.0.0
- wings-portal
- Wings Portal
- war
- Wings portal web application
-
-
- edu.isi.wings
- wings-core
- 4.2.6
- ../core/pom.xml
-
-
-
-
- 1.2.4
- 2.5
- 4.5.2
- 2.27
- 2.8.6
- 1.1.0.Final
- 1.3.3
-
-
-
-
- github
- Github
- https://maven.pkg.github.com/KnowledgeCaptureAndDiscovery/WINGS-OPMW-Mapper
-
-
-
-
-
-
- edu.isi.wings
- wings-planner
- ${project.parent.version}
-
-
-
-
-
-
-
-
-
-
- edu.isi.wings
- wings-opmm
- ${wings-opmm.version}
-
-
-
-
- commons-fileupload
- commons-fileupload
- ${commons-fileupload.version}
-
-
-
-
- org.glassfish.jersey.containers
- jersey-container-servlet
- ${jersey.version}
-
-
- org.glassfish.jersey.inject
- jersey-hk2
- ${jersey.version}
-
-
- javax.activation
- activation
- 1.1.1
-
-
-
- javax.validation
- validation-api
- ${javax.validation.version}
-
-
-
- org.glassfish.jersey.media
- jersey-media-multipart
- ${jersey.version}
-
-
-
-
- org.glassfish.jersey.media
- jersey-media-json-jackson
- ${jersey.version}
-
-
- com.fasterxml.jackson.jaxrs
- jackson-jaxrs-json-provider
- ${jackson.version}
-
-
-
-
-
-
-
- org.apache.tika
- tika-core
- 1.22
-
-
-
-
- javax.servlet
- servlet-api
- ${servlet-api.version}
- provided
-
-
- org.apache.tomcat
- tomcat-catalina
- 7.0.55
- provided
-
-
-
-
- org.apache.httpcomponents
- httpclient
- ${httpclient.version}
-
-
- org.apache.httpcomponents
- httpmime
- ${httpclient.version}
-
-
- org.asynchttpclient
- async-http-client
- 2.7.0
-
-
-
-
-
-
-
- org.codehaus.mojo
- tomcat-maven-plugin
- 1.1
-
- 9090
- /wings-portal
-
-
-
-
- org.apache.maven.plugins
- maven-antrun-plugin
- 1.7
-
-
- generate-sources
- generate-sources
-
-
-
-
-
-
- run
-
-
-
- clean
- clean
-
-
-
-
-
-
- run
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/portal/src/main/java/edu/isi/wings/portal/controllers/RunController.java b/portal/src/main/java/edu/isi/wings/portal/controllers/RunController.java
index 4067455d..142c5eb7 100644
--- a/portal/src/main/java/edu/isi/wings/portal/controllers/RunController.java
+++ b/portal/src/main/java/edu/isi/wings/portal/controllers/RunController.java
@@ -17,7 +17,6 @@
package edu.isi.wings.portal.controllers;
-
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
@@ -30,7 +29,7 @@
import javax.servlet.ServletContext;
import javax.ws.rs.core.Response;
-import edu.isi.wings.opmm.Catalog;
+import edu.isi.kcap.wings.opmm.Catalog;
import edu.isi.wings.portal.classes.config.Publisher;
import edu.isi.wings.portal.classes.config.ServerDetails;
import edu.isi.wings.portal.classes.util.ComponentExecutingThread;
@@ -47,8 +46,8 @@
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
-import edu.isi.wings.opmm.WorkflowExecutionExport;
-import edu.isi.wings.opmm.WorkflowTemplateExport;
+import edu.isi.kcap.wings.opmm.WorkflowExecutionExport;
+import edu.isi.kcap.wings.opmm.WorkflowTemplateExport;
import edu.isi.kcap.ontapi.KBTriple;
import edu.isi.wings.catalog.component.ComponentFactory;
import edu.isi.wings.catalog.data.DataFactory;
@@ -97,23 +96,25 @@ public RunController(Config config) {
this.props = config.getProperties();
this.dataUrl = config.getUserDomainUrl() + "/data";
this.templateUrl = config.getUserDomainUrl() + "/workflows";
-
+
if (executor == null) {
- //System.out.println("Parallel:" + config.getPlannerConfig().getParallelism());
+ // System.out.println("Parallel:" + config.getPlannerConfig().getParallelism());
executor = Executors.newFixedThreadPool(config.getPlannerConfig().getParallelism());
}
}
-
+
public void end() {
}
/**
* Get the run list json.
+ *
* @param pattern optional, a pattern to filter
- * @param status optional, a pattern to filter complete runs
- * @param start optional, start offset (for paging) (set to -1 to ignore)
- * @param limit optional, number of runs to return (for paging) (set to -1 to ignore)
+ * @param status optional, a pattern to filter complete runs
+ * @param start optional, start offset (for paging) (set to -1 to ignore)
+ * @param limit optional, number of runs to return (for paging) (set to -1 to
+ * ignore)
* @return
*/
public String getRunListJSON(String pattern, String status, int start, int limit) {
@@ -122,12 +123,11 @@ public String getRunListJSON(String pattern, String status, int start, int limit
boolean fasterQuery = numberOfRuns > 1000;
result.put("success", true);
result.put("results", numberOfRuns);
- result.put("rows", this.getRunList(pattern, status, start, limit, fasterQuery));
+ result.put("rows", this.getRunList(pattern, status, start, limit, fasterQuery));
return json.toJson(result);
}
-
- public String getRunListSimpleJSON(String pattern, String status, int start, int limit, Date started_after) {
+ public String getRunListSimpleJSON(String pattern, String status, int start, int limit, Date started_after) {
HashMap result = new HashMap();
result.put("success", true);
result.put("results", this.getNumberOfRuns(pattern, status, started_after));
@@ -135,7 +135,7 @@ public String getRunListSimpleJSON(String pattern, String status, int start, in
return json.toJson(result);
}
- public ArrayList> getRunListSimple(String pattern, String status,
+ public ArrayList> getRunListSimple(String pattern, String status,
int start, int limit, Date started_after) {
ExecutionMonitorAPI monitor = config.getDomainExecutionMonitor();
ArrayList> list = new ArrayList>();
@@ -149,18 +149,17 @@ public ArrayList> getRunListSimple(String pattern, Strin
return list;
}
-
- public ArrayList> getRunList(String pattern, String status, int start, int limit,
+ public ArrayList> getRunList(String pattern, String status, int start, int limit,
boolean fasterQuery) {
ExecutionMonitorAPI monitor = config.getDomainExecutionMonitor();
ArrayList> list = new ArrayList>();
for (RuntimePlan exe : monitor.getRunList(pattern, status, start, limit, fasterQuery)) {
HashMap map = new HashMap();
-
+
map.put("runtimeInfo", exe.getRuntimeInfo());
map.put("template_id", exe.getOriginalTemplateID());
map.put("id", exe.getID());
-
+
if (exe.getQueue() != null) {
int numtotal = exe.getQueue().getAllSteps().size();
int numdone = exe.getQueue().getFinishedSteps().size();
@@ -178,7 +177,7 @@ public ArrayList> getRunList(String pattern, String stat
}
return list;
}
-
+
public int getNumberOfRuns(String pattern, String status, Date started_after) {
ExecutionMonitorAPI monitor = config.getDomainExecutionMonitor();
return monitor.getNumberOfRuns(pattern, status, started_after);
@@ -222,7 +221,7 @@ public String getRunJSON(String runid) {
return json.toJson(returnmap);
}
-
+
public String getRunPlanJSON(String runid) {
ExecutionMonitorAPI monitor = config.getDomainExecutionMonitor();
RuntimePlan planexe = monitor.getRunDetails(runid);
@@ -231,35 +230,36 @@ public String getRunPlanJSON(String runid) {
private String getPublishedURL(String runid) {
Publisher publisher = config.getPublisher();
- if(publisher == null)
+ if (publisher == null)
return null;
/* TODO: Return already published url for the run id if possible */
/*
- Mapper opmm = new Mapper();
- String tstoreurl = publisher.getTstorePublishUrl();
- String puburl = publisher.getUrl();
- opmm.setPublishExportPrefix(puburl);
-
- String rname = runid.substring(runid.indexOf('#') + 1);
- String runurl = opmm.getRunUrl(rname);
-
- // Check if run already published
- if (graphExists(tstoreurl, runurl))
- return runurl;*/
+ * Mapper opmm = new Mapper();
+ * String tstoreurl = publisher.getTstorePublishUrl();
+ * String puburl = publisher.getUrl();
+ * opmm.setPublishExportPrefix(puburl);
+ *
+ * String rname = runid.substring(runid.indexOf('#') + 1);
+ * String runurl = opmm.getRunUrl(rname);
+ *
+ * // Check if run already published
+ * if (graphExists(tstoreurl, runurl))
+ * return runurl;
+ */
return null;
}
private Map getShortConstraints(Template tpl) {
Map varbindings = new HashMap();
- for(Variable v : tpl.getVariables()) {
+ for (Variable v : tpl.getVariables()) {
List