users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] Re: [jsr344-experts] Re: Re: Re: [730-TaskFlows] PROPOSAL

From: Chris Muir <chris.muir_at_oracle.com>
Date: Tue, 27 Mar 2012 18:01:08 -0700 (PDT)

As follow up to the discussion on the "expert" list on the router activity for the task flow proposal.

In addressing the router activity, to assist beginners and general maintenance, it would be good if we could put in the spec if a router EL expression fails with a NPE or similar, JSF clearly report the a) flow name, + b) router name + c) the specific EL expression that failed in the error.

Why?:

a) if the spec ever supports the equivalent of regions - answers which flow failed will be useful?
b) a flow can contain many routers - helps answers which router failed?
c) the same EL expression can be used several times throughout a flow - what was the specific instance of the EL that failed? .... or if this is reported in context of "a" + "b" then maybe an index position of the EL statement in the router that failed

CM.

--
Chris Muir | Senior Principal ADF Product Manager | Oracle APAC
Mobile: +61438286421
----- Original Message -----
From: edward.burns_at_oracle.com
To: jsr344-experts_at_javaserverfaces-spec-public.java.net
Sent: Wednesday, March 28, 2012 12:14:09 AM GMT +08:00 Beijing / Chongqing / Hong Kong / Urumqi
Subject: [jsr344-experts mirror] [jsr344-experts]  Re:  Re: Re: [730-TaskFlows] PROPOSAL
>>>>> On Mon, 26 Mar 2012 20:03:10 -0600, David Schneider <david.schneider_at_oracle.com> said:
DS> Sorry for the late response, I've been a bit under the weather lately.
DS> On 3/16/2012 9:01 AM, Edward Burns wrote:
DS> This flow is used to create/edit some type of data record (e.g. a
DS> customer contact, employee, etc.).  The flow's starting point, its
DS> 'default activity', is indicated with the green halo.
EB> Obviously the router is an embodiment of some logic.  How is the logic
EB> encoded?  A java method invocation?  I don't have "Router Activity"
EB> correctly represented in the proposal [1].  David, can you please say
EB> what I should put for "Router Activity"?
DS> In ADF a router activity is the control flow equivalent of a switch 
DS> statement.  It consists of a sequence of EL value expressions and an 
DS> outcome value to be generated if the EL evaluates to 'true'.  There's 
DS> also a default outcome to be generated if none of the expressions 
DS> evaluate to 'true'.  In theory the same thing can be done with a single 
DS> Java method call but we found in some cases developers preferred being 
DS> able to use metadata instead of code, especially if IDE support is 
DS> available for generating the metadata.
Thanks, I've updated the proposal.
Ed
-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/