Rules and restrictions
When we model a transition certain rules and restrictions apply.
The following are descriptions of the rules:
- The entire set of dialogs, together with all their transitions, needs to be deterministic. To achieve this condition, the UX Screen Flow Manager must always be able to unambiguously determine the transition to be triggered. This determination is based on the transition endpoint that emits an event and the name (QName) of the event. For example, the definition of two dialogs as shown in code sample 24 is not valid, as it is not deterministic: The UX Screen Flow Manager might not decide whether to trigger the first or the second transition after portlet1 emits event e1.
Code sample 24:
01 <transition> 02 <source> 03 <transition-endpoint nameref="portlet1"> 04 <event qname="e1"/> 05 </transition-endpoint> 06 </source> 07 <target> 08 <transition-endpoint nameref="portlet2"> 09 <event qname="e2"/> 10 </transition-endpoint> 11 </target> 12 </transition> 13 <transition> 14 <source> 15 <transition-endpoint nameref="portlet1"> 16 <event qname="e1"/> 17 </transition-endpoint> 18 </source> 19 <target> 20 <transition-endpoint nameref="portlet3"> 21 <event qname="e3"/> 22 </transition-endpoint> 23 </target> 24 </transition>
- A source cannot reference more than one single transition endpoint.
- A target can reference one of the following portal resources:
- A single portlet that can receive one or multiple events.
- Multiple target portlets. All these portlets must be found on the same page. Each single portlet can receive one or multiple events.
- A single target page. Each single portlet on that page can receive the same event or multiple events sent to the page. This action is also called broadcasting.
- One target page and one or multiple target portlets. All these portlets must be found on the target page. Each single portlet on that page can receive the following types of events:
- The same event or multiple events sent to the page
- One or multiple dedicated events sent to the portlet itself.
Parent Transitions