I would like to integrate a javascript dialog into the start of a web flow where the option selected determines if an existing object is added to the flow or a new one is.
<on-entry>
<evaluate expression="appService.checkMembershipStatus(memberId)"/>
// this will check if the state is 'RENEW' and return boolean
// If returns true, then show javascript dialog to say "Renew existing?".
//If they select 'Yes', the existing membership is loaded into the flowScope.
//If they select 'No', then a new membership (object) is loaded into the flowscope
// else
// A new memebership (object) is loaded into the flowscope
</on-entry>
<view-state id="begin">
// continue as normal
</view-state>
Thanks