Back Forum Reply New

how to make a transition programatically ?

Hello, I am a newbie on webflow and i just cant get the way to make programatically a transition like this...

lt;decision-state id=quot;requiresShippingquot;gt; lt;if test=quot;${conversationScope.sale.shipping}quot; then=quot;enterShippingDetailsquot; else=quot;processSalequot;/gt;
lt;/decision-stategt;

I suposse i must use BooleanExpressionTransitionCriteria that is passes an Expression, but i cant use a string like quot;${conversationScope.sale.shipping}quot;

FlowScopeExpression used to have a constructor that was passed in a expressionString, but not anymore.

How can achieve this with 1.0-rc3?

Thanks in advance (sorry for my english)

Are you using a Java-based flow builder extending AbstractFlowBuilder?

on(quot;${conversationScope.sale.shipping}quot;, to(quot;targetStatequot;)) should do the trick... see Phonebook for an example.

Keith
¥
Back Forum Reply New