airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimuthu...@apache.org
Subject [airavata] branch staging updated: Fixing the bug in casting ProcessWorkflowResource
Date Wed, 23 Jan 2019 21:49:55 GMT
This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/staging by this push:
     new a570a57  Fixing the bug in casting ProcessWorkflowResource
a570a57 is described below

commit a570a5790198156a9a32b89787ad1e69c43cf333
Author: Dimuthu Wannipurage <dimuthu.upeksha2@gmail.com>
AuthorDate: Wed Jan 23 16:49:41 2019 -0500

    Fixing the bug in casting ProcessWorkflowResource
---
 .../registry/core/experiment/catalog/resources/ProcessResource.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ProcessResource.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ProcessResource.java
index 227f224..59eab0a 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ProcessResource.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/ProcessResource.java
@@ -552,8 +552,8 @@ public class ProcessResource extends AbstractExpCatResource {
                     if (results.size() != 0) {
                         for (Object result : results) {
                             ProcessWorkflow processWorkflow = (ProcessWorkflow) result;
-                            JobResource jobResource =
-                                    (JobResource) Utils.getResource(ResourceType.PROCESS_WORKFLOW,
processWorkflow);
+                            ProcessWorkflowResource jobResource =
+                                    (ProcessWorkflowResource) Utils.getResource(ResourceType.PROCESS_WORKFLOW,
processWorkflow);
                             resourceList.add(jobResource);
                         }
                     }


Mime
View raw message