Return-Path: X-Original-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-airavata-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5976F94E5 for ; Fri, 13 Jan 2012 19:40:56 +0000 (UTC) Received: (qmail 63544 invoked by uid 500); 13 Jan 2012 19:40:56 -0000 Delivered-To: apmail-incubator-airavata-commits-archive@incubator.apache.org Received: (qmail 63498 invoked by uid 500); 13 Jan 2012 19:40:55 -0000 Mailing-List: contact airavata-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: airavata-dev@incubator.apache.org Delivered-To: mailing list airavata-commits@incubator.apache.org Received: (qmail 63487 invoked by uid 99); 13 Jan 2012 19:40:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 19:40:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2012 19:40:53 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E18E82388900; Fri, 13 Jan 2012 19:40:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1231268 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java Date: Fri, 13 Jan 2012 19:40:31 -0000 To: airavata-commits@incubator.apache.org From: lahiru@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120113194031.E18E82388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lahiru Date: Fri Jan 13 19:40:31 2012 New Revision: 1231268 URL: http://svn.apache.org/viewvc?rev=1231268&view=rev Log: adding workflow status update in to interpreter. Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java?rev=1231268&r1=1231267&r2=1231268&view=diff ============================================================================== --- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java (original) +++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/interpretor/WorkflowInterpreter.java Fri Jan 13 19:40:31 2012 @@ -102,9 +102,12 @@ public class WorkflowInterpreter { private static final int SERVER_MODE = 2; - private static final int MAXIMUM_RETRY_TIME = 2; + private static final int MAXIMUM_RETRY_TIME = 2; - private XBayaEngine engine; + public static final String WORKFLOW_STARTED = "Workflow Started"; + public static final String WORKFLOW_FINISHED = "Workflow Finished"; + + private XBayaEngine engine; private Map retryCounter = new HashMap(); @@ -154,7 +157,6 @@ public class WorkflowInterpreter { public WorkflowInterpreter(XBayaConfiguration configuration, String topic, Workflow workflow, String username, String password) { this.configuration = configuration; - // this.isSubWorkflow = isSubWorkflow; this.username = username; this.password = password; @@ -249,7 +251,7 @@ public class WorkflowInterpreter { } this.getWorkflow().setExecutionState(XBayaExecutionState.RUNNING); - + this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowStatus(this.topic, WORKFLOW_STARTED); ArrayList inputNodes = this.getInputNodesDynamically(); Object[] values = new Object[inputNodes.size()]; String[] keywords = new String[inputNodes.size()]; @@ -510,6 +512,9 @@ public class WorkflowInterpreter { } this.notifier.sendingPartialResults(outputValues.toArray(), outputKeywords.toArray(new String[outputKeywords.size()])); + System.out.println(this.configuration.getJcrComponentRegistry().getRegistry().getWorkflowStatus(this.topic)); + this.configuration.getJcrComponentRegistry().getRegistry().saveWorkflowStatus(this.topic, WORKFLOW_FINISHED); + System.out.println(this.configuration.getJcrComponentRegistry().getRegistry().getWorkflowStatus(this.topic)); } } @@ -1776,4 +1781,7 @@ public class WorkflowInterpreter { return workflow; } + public void setActOnProvenance(boolean actOnProvenance) { + this.actOnProvenance = actOnProvenance; + } } \ No newline at end of file