Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BAE6993B for ; Tue, 21 May 2013 14:58:21 +0000 (UTC) Received: (qmail 1647 invoked by uid 500); 21 May 2013 14:58:21 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 1499 invoked by uid 500); 21 May 2013 14:58:21 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 1485 invoked by uid 99); 21 May 2013 14:58:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 14:58:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kamalasini@gmail.com designates 209.85.217.175 as permitted sender) Received: from [209.85.217.175] (HELO mail-lb0-f175.google.com) (209.85.217.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 14:58:15 +0000 Received: by mail-lb0-f175.google.com with SMTP id v10so902992lbd.34 for ; Tue, 21 May 2013 07:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=bPUsAI/cBvl7T611e4dKZYi51ohbd7esCkNiRUI0KFs=; b=F6LBfUKM6l0Rv67Gzpljdznv6K0UsGD0BkcKZyFN+nTRB50nKme3GD4nRFHvOjaX+s gPu72u9XsGVKZ3RdOMEMudDTAarRyX5Kimh+QtoLyYX4+a92RFsXvfyksYzxeSup0YEd Q5RJmEI2553thzbxkqBIPvu1ZXQv/g2HolvsJMyAgY8RcjzAfbBupxTb4sxLy0H8VEOZ 9tHuqVgWMpJpf5l+EYPqImEedSH2XIhjJKKQQzpI3699T/5kdaaRcpL5poQwpFVeSHUT 6CQ798EPVmnOx7fxTENpHFGX3HKbUCMGliwxFwXE8qFSuymACRKsr/CTgBxUYOKYiAAX o4Rw== X-Received: by 10.152.2.233 with SMTP id 9mr1569124lax.34.1369148274354; Tue, 21 May 2013 07:57:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.139.10 with HTTP; Tue, 21 May 2013 07:57:34 -0700 (PDT) In-Reply-To: References: From: Chathuri Wimalasena Date: Tue, 21 May 2013 10:57:34 -0400 Message-ID: Subject: Re: Updates to Airavata API version 0.8 To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=089e0112c51889b18d04dd3bac82 X-Virus-Checked: Checked by ClamAV on apache.org --089e0112c51889b18d04dd3bac82 Content-Type: text/plain; charset=ISO-8859-1 Hi Raman, WorkflowExecutionError method not returning any data issue should be fixed now. Can you get an update and check. Regards, Chathuri On Tue, May 21, 2013 at 10:02 AM, Raminder Singh wrote: > Thank, these are very useful for API users. Only thing i found confusing > for the user is API managers. ProvenanceManager is the one used to get > experiment status. Users will get FINISHED or FAILED status from the data > object. On failure, i was trying to find a method to get the error data but > i was not able to find as those methods exist in ExecutionManager. > According to me, experiment status and in case of failures get error need > to be part of one manager. May be a ExperimentManager? Getting output data > can be left as part of provenance manages as only few client may want to > get the data in few cases. Getting error detail in case of error is obvious > step. > > Other thing can you please explain the difference between > WorkflowExecutionError, ExperimentExecutionError, NodeExecutionError, > GFacExecutionError on a Wiki page for the users. Also add a method to get > JobID as that is required to get GFacExecutionError. > > I tested the WorkflowExecutionError method and its not returning any data. > Can you please test that as well? > > ExperimentData data = > airavataAPI.getProvenanceManager().getExperimentData(experimentID); > List experimentExecutionErrors = > airavataAPI.getExecutionManager().getWorkflowExecutionErrors(experimentID, > experimentID); > > Thanks > Raminder > > > On May 20, 2013, at 5:05 PM, Saminda Wijeratne wrote: > > > Following updates will be present Airavata API from 0.8 release. > > > > > > 1. *Error message from the immediate exception used as the error > message > > for the AiravataAPInvocationException*. Earlier it was just "Error > > invoking API". *This change was made so that the users of the API can > > show the error from the exception without having to dig in to the inner > > exception to get a better error message.* > > 2. *Saving and retrieving experiment execution error details*. Earlier > > we were not persisting any execution error details of the workflow. > Error > > details are only available only if the developers are monitoring > experiment > > at the time of error occurs. *This is not feasible if users would only > > want to go through the error details later without doing monitoring > from > > the beginning. Therefore we are now persisting the error details (not > as > > part of provenance data) of executing workflows (i.e. experiments)* in > > to the registry and also retrieving from registry through Airavata API > > (which calls the Registry API). > > > > For now we have the functions for saving and retrieving errors in the > > ExecutionManager[1]. We need to decide if this is the correct place to > put > > these functions. Your thoughts in this matter are most welcome... > > > > > > Thanks, > > Saminda > > > > 1. > > > https://svn.apache.org/repos/asf/airavata/trunk/modules/airavata-client/src/main/java/org/apache/airavata/client/api/ExecutionManager.java > > --089e0112c51889b18d04dd3bac82--