You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2014/05/22 20:29:03 UTC
git commit: airavata-1229
Repository: airavata
Updated Branches:
refs/heads/master 693fe5526 -> bf7bd51aa
airavata-1229
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/bf7bd51a
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/bf7bd51a
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/bf7bd51a
Branch: refs/heads/master
Commit: bf7bd51aa01e5c80c74b3897ce2d4d7a6a28d0ae
Parents: 693fe55
Author: lahiru <la...@apache.org>
Authored: Thu May 22 14:28:50 2014 -0400
Committer: lahiru <la...@apache.org>
Committed: Thu May 22 14:28:50 2014 -0400
----------------------------------------------------------------------
.../core/validator/impl/ExperimentStatusValidator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata/blob/bf7bd51a/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/validator/impl/ExperimentStatusValidator.java
----------------------------------------------------------------------
diff --git a/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/validator/impl/ExperimentStatusValidator.java b/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/validator/impl/ExperimentStatusValidator.java
index 357f2e2..276a26f 100644
--- a/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/validator/impl/ExperimentStatusValidator.java
+++ b/modules/orchestrator/orchestrator-core/src/main/java/org/apache/airavata/orchestrator/core/validator/impl/ExperimentStatusValidator.java
@@ -32,7 +32,7 @@ public class ExperimentStatusValidator implements JobMetadataValidator {
public ValidatorResult validate(Experiment experiment, WorkflowNodeDetails workflowNodeDetail, TaskDetails taskID) {
String error = "During the validation step experiment status should be CREATED, But this experiment status is : ";
ValidatorResult validatorResult = new ValidatorResult();
- if (experiment.getExperimentStatus().equals(ExperimentState.CREATED)) {
+ if (!experiment.getExperimentStatus().getExperimentState().equals(ExperimentState.CREATED)) {
error += experiment.getExperimentStatus().getExperimentState().toString();
log.error(error);
validatorResult.setErrorDetails(error);