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 3439711292 for ; Wed, 14 May 2014 16:18:24 +0000 (UTC) Received: (qmail 42028 invoked by uid 500); 14 May 2014 16:18:24 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 41976 invoked by uid 500); 14 May 2014 16:18:24 -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 41947 invoked by uid 99); 14 May 2014 16:18:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 16:18:23 +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 glahiru@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-we0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2014 16:18:18 +0000 Received: by mail-we0-f174.google.com with SMTP id k48so2159060wev.19 for ; Wed, 14 May 2014 09:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=LQdme2+zofvIrdZuv99Xl0KeviGHz3z982Xe4QyuPWE=; b=sLzygCZn8xGdN4STM2PtjEcJ5I1DYyXkecaWLh9Xythp6KzT4QoO2zhvPyzgw+b3a9 aUyF8eNA4bgDey1nvwUL3/Ua64Ul6Q5AeV0ciKegajbYX+/H0Z+1zqboDcO483D9S1U+ 1EGFUNOqLLzMQ6/Mh1NZvY0e0fEq5/Tg8LePMMqzXYR5jTEaqEeb1sx6OjYuRVHOd3Rv KNLD98J4N4lQG5v3EwKTkgpTqrAD6ESpLe/wIS07pJbgsrbdm75oY8+DGV+NM/hnZWqX gjAfJYPMdW/mRMQpgeCS3Hrk7z0A1pXmmo0eIVUGiJ4wRywZR5ifsChN1h/9GDnha/cn HgwA== MIME-Version: 1.0 X-Received: by 10.194.7.232 with SMTP id m8mr3889067wja.47.1400084277186; Wed, 14 May 2014 09:17:57 -0700 (PDT) Received: by 10.216.191.136 with HTTP; Wed, 14 May 2014 09:17:57 -0700 (PDT) Date: Wed, 14 May 2014 12:17:57 -0400 Message-ID: Subject: Validation failures and storing the failures From: Lahiru Gunathilake To: dev Content-Type: multipart/alternative; boundary=047d7b5d327cff554004f95e850f X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d327cff554004f95e850f Content-Type: text/plain; charset=UTF-8 Hi All, We recently added validation logics to orchestrator, so gateway developers can add/configure their validators to be invoked. If they failed they can wrap an error message in their validation logic and return that. Orchestrator needs to take these error messages and store them to a persistent storage so that if the validation failed these errors can be showed to the gateway user to make it correct. Unless we give a proper error message to the end user there is no way to make it correct. Currently in the orchestrator implementation it does not store the error but we have a proper result object which keeps the validation state and a message. Where should I save this information in our data model ? This is an information specific to each invocation and there could be multiple error messages came from multiple validators because we do not return immediately after the first validation failure but rather we invoke all the validators and collect all the errors (currently we just have access to them and simply logging those errors in server side). If there is no placeholder for these validation errors can we add something to the data model to store them and retrieve them from the client code ? I have added FAQ type of a document for Orchestrator[1], please provide your feedback on this. [1] https://docs.google.com/document/d/1FOc0X6HCMZ9E-fTnZQ8aGo7tK20C8lvKlycNouswICI/edit Regards Lahiru -- System Analyst Programmer PTI Lab Indiana University --047d7b5d327cff554004f95e850f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

We recently added validation lo= gics to orchestrator, so gateway developers can add/configure their validat= ors to be invoked. If they failed they can wrap an error message in their v= alidation logic and return that. Orchestrator needs to take these error mes= sages and store them to a persistent storage so that if the validation fail= ed these errors can be showed to the gateway user to make it correct. Unles= s we give a proper error message to the end user there is no way to make it= correct.

Currently in the orchestrator implementation it does no= t store the error but we have a proper result object which keeps the valida= tion state and a message.

Where should I save this= information in our data model ? This is an information specific to each in= vocation and there could be multiple error messages came from multiple vali= dators because we do not return immediately after the first validation fail= ure but rather we invoke all the validators and collect all the errors (cur= rently we just have access to them and simply logging those errors in serve= r side). If there is no placeholder for these validation errors can we add = something to the data model to store them and retrieve them from the client= code ?

I have added FAQ type of a document for Orchestrator[1]= , please provide your feedback on this.


Regards
Lahiru

-- System Analyst Programmer
PTI Lab
Indiana University
--047d7b5d327cff554004f95e850f--