Return-Path: X-Original-To: apmail-isis-users-archive@www.apache.org Delivered-To: apmail-isis-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC02118937 for ; Wed, 4 Nov 2015 22:17:15 +0000 (UTC) Received: (qmail 58328 invoked by uid 500); 4 Nov 2015 22:17:15 -0000 Delivered-To: apmail-isis-users-archive@isis.apache.org Received: (qmail 58293 invoked by uid 500); 4 Nov 2015 22:17:15 -0000 Mailing-List: contact users-help@isis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@isis.apache.org Delivered-To: mailing list users@isis.apache.org Received: (qmail 58281 invoked by uid 99); 4 Nov 2015 22:17:15 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2015 22:17:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 933F31801DA for ; Wed, 4 Nov 2015 22:17:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.1 X-Spam-Level: **** X-Spam-Status: No, score=4.1 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, KAM_COUK=1.1, RCVD_IN_MSPIKE_H2=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=haywood-associates_co_uk.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id O9zVY0TYcKfY for ; Wed, 4 Nov 2015 22:17:01 +0000 (UTC) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4BFD8439C2 for ; Wed, 4 Nov 2015 22:17:01 +0000 (UTC) Received: by ioll68 with SMTP id l68so70962408iol.3 for ; Wed, 04 Nov 2015 14:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=haywood-associates_co_uk.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=vcE8VnS3RzCpxOw+AfB9aJjs63cIuhl5XAVHWvq475E=; b=bb0ixqTAa40zc+UdGNIxPOC25pFKC2CgyAf4f+mB4RUMP9kaCPdwC3ks/Yp0RSI7iC zE4aUVJMq70Z2BrbLdYrVrUC2HAmDITz6SDApLQNM+gcpH17qwlaKT/mwJjOR1C3IfeA Z5aDSn8c0IDMXoRotlUps8jyqgXS5O3ay8AZavNr9nNOgsWwiAn5boxwkEQR0d9WZ4B/ kJ42ywmsYfp5N7cAmTer1YDC0B7hU0bLs1gbd6PyNG7CXhfl04qqzP6Td05xnbAS3mG+ OULIjaKlNM0s/15f5t1Uo3wJQGMGJ1s1L522rAUg38qdFt2j1A0iNDFgQYHjplEx6ZUd 4PNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=vcE8VnS3RzCpxOw+AfB9aJjs63cIuhl5XAVHWvq475E=; b=IK+GboYoSMf8b6ICyJSi4F3jHMVYtKDjMEfKZpihnL4Oj+01v6fs366+mz8StaAKm2 jxdz/tinzLmqvQNLT0Boi+7JnDKkhDWxI94pDMPfj/cogJ6KQC9YGHzlEb6VX9bRmIGp 4VfRmHjuPCOehPcymDNPwe9cPKTqYfsNx9SjtzybLbC5ViMGJ5MeBTomEEa+fRiLjMHc HsnpCP4OToB/YQVqHiFfac0VRbTLB3nUfjY85oJJxS1x07aVRTQAOG95KYw09OQROwmf LqXTDQc3Qujr7d0R1JWabW+SMMyhEZ66ckn3VCL6Uk4d9K+A1l4NUg0S7M042djDzFuZ Ti4g== X-Gm-Message-State: ALoCoQlb2LkWS/ELTq+4Hpg9FIY8HCp4/X6zG06bAv4BFrHuBjSYnlg+T0xi6yy1pR9kOoZvwhUf X-Received: by 10.107.31.66 with SMTP id f63mr112670iof.105.1446675415516; Wed, 04 Nov 2015 14:16:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.23.1 with HTTP; Wed, 4 Nov 2015 14:16:35 -0800 (PST) X-Originating-IP: [82.69.89.226] In-Reply-To: <563a7d98.63e5440a.6e063.fffff465SMTPIN_ADDED_BROKEN@mx.google.com> References: <563a7d98.63e5440a.6e063.fffff465SMTPIN_ADDED_BROKEN@mx.google.com> From: Dan Haywood Date: Wed, 4 Nov 2015 22:16:35 +0000 Message-ID: Subject: Re: Metamodel validation To: users Content-Type: multipart/alternative; boundary=001a1140f8d43f61e50523be5ee6 --001a1140f8d43f61e50523be5ee6 Content-Type: text/plain; charset=UTF-8 In 1.9.0 the disable method must match the parameters of the action. So action: public CustomerOrder assignForDelivery(Deliverer deliverer) should have a disable method of: public String disableAssignForDelivery(Deliverer deliverer). I must admit I am always making this mistake myself, so in 1.10.0-SNAPSHOT the framework will also accept the no-arg version (as you've written it). HTH Dan On 4 November 2015 at 21:50, Cesar Lugo wrote: > Hello, > > > > I have a metamodel validation and I cant find what the issue is. > > > > My code is the following: > > > > //region > assignForDelivery (action) > > @MemberOrder(name="status",sequence = "1") > > @ActionLayout(position = ActionLayout.Position.PANEL_DROPDOWN) > > public CustomerOrder assignForDelivery( > > final @ParameterLayout(named = "Delivered By") Deliverer > deliverer > > ) { > > setDeliveredBy(deliverer); > > setAssignedForDeliveryTime(clockService.nowAsDateTime()); > > setStatus(CustomerOrderStatus.ASSIGNED_FOR_DELIVERY); > > return this; > > } > > > > // disable action dependent on state of object > > public String disableAssignForDelivery() { > > return status.equals(CustomerOrderStatus.ASSIGNED_FOR_DELIVERY) ? > "Customer order is already assigned for delivery" : null; > > } > > //endregion > > > > Then I get the following metamodel validation error: > > > > domainapp.dom.simple.customerorders.CustomerOrder#disableAssignForDelivery: > has prefix disable, is probably a supporting method for a property, > collection or action. If the method is intended to be an action, then > rename and use @ActionLayout(named="...") or ignore completely using > @Programmatic > > > > I have even changed the name of the method and still get the same error. > > > > Cesar. > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > --001a1140f8d43f61e50523be5ee6--