Hello,
Please read this https://apereo.github.io/2016/10/07/webflow-extcfg/ if you
have not read yet. I believe it may help you.
As far as I can see, I can only add new transtions and modifying an
> existing one is not possible.
I am using CAS 5.0.0 and I have this in my web flow configurer:
final Flow flow = super.getLoginFlow();
final TransitionSet ts =
flow.getTransitionableState("handleAuthenticationFailure").getTransitionSet();
final Iterator<Transition> it = ts.iterator();
while (it.hasNext()) {
if
("AccountLockedException".equals(it.next().getMatchingCriteria().toString())) {
it.remove();
}
}
final Transition t = createTransition("AccountLockedException",
"initializeLoginForm");
ts.add(t);
So I removed old default transition and added my custom one.
Regards,
Yauheni
On Friday, December 23, 2016 at 9:47:36 AM UTC+3, Gokhan Mansuroglu wrote:
>
> Hi Ray,
>
> Modifying the weblow.xml does not work since the flow is configured by the
> DefaultWebflowConfigurer. Even the viewGenericLoginSuccess state doesn't
> appear in the xml, it is added programmatically.
>
> Actually I could modify the transitions as below :
>
> private void modifyTransitionDefinition(Flow flow, String stateId,
> String eventId, String targetStateId) {
> TransitionableState state = (TransitionableState) flow.getState(
> stateId);
> if (state != null) ((Transition) state.getTransition(eventId)).
> setTargetStateResolver(new DefaultTargetStateResolver(targetStateId));
> }
>
>
> But this is really complicated because you can't see the complete flow in
> the login-flow.xml. I think this is an important issue. I am trying to
> upgrade my cas version from 3.3.3 to 5.0.0 and in the 3.3.3 I can see the
> overall flow in one xml file, now It seems to be impossible.
>
> I don't know if I am doing something wrong but doesn't anyone have the
> same requirement ?
>
>
> 22 Aralık 2016 Perşembe 19:26:20 UTC+3 tarihinde Ray Bon yazdı:
>>
>> Gokhan,
>>
>> You can, of course, modify the classes for viewGenericLoginSuccess or
>> create your own phase and modify the webflow.xml to point to your classes.
>> @see
>> https://apereo.github.io/cas/4.1.x/installation/Webflow-Customization.html
>> and
>> https://apereo.github.io/cas/5.0.x/installation/Webflow-Customization.html
>>
>> Ray
>>
>> On 2016-12-21 23:41, Gokhan Mansuroglu wrote:
>>
>> Hello,
>>
>> In the following default flow I need to change the
>> viewGenericLoginSuccess transition. As far as I can see, I can only add
>> new transtions and modifying an existing one is not possible. Is there any
>> solution ?
>>
>> Thank you.
>>
>> 2016-12-22 09:36:03,065 DEBUG [DecisionState] - <Entering state
>> 'serviceCheck' of flow 'login'>
>> 2016-12-22 09:36:03,065 DEBUG [Transition] - <Executing [
>> Transition@a6925f on = *, to = viewGenericLoginSuccess]>
>> 2016-12-22 09:36:03,065 DEBUG [Transition] - <Exiting state
>> 'serviceCheck'>
>> 2016-12-22 09:36:03,065 DEBUG [EndState] - <Entering state
>> 'viewGenericLoginSuccess' of flow 'login'>
>>
>>
>>
>> --
>> - CAS gitter chatroom: https://gitter.im/apereo/cas
>> - CAS mailing list guidelines:
>> https://apereo.github.io/cas/Mailing-Lists.html
>> - CAS documentation website: https://apereo.github.io/cas
>> - CAS project website: https://github.com/apereo/cas
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CAS Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/a2f15f9c-3ebe-492d-987e-c9f903ba6103%40apereo.org
>>
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a2f15f9c-3ebe-492d-987e-c9f903ba6103%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
>> Ray Bon
>> Programmer Analyst
>> Development Services, University Systems
>> 2507218831 | CLE C023 | [email protected]
>>
>>
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/01faec41-3e87-45c7-ba06-e4d35c953551%40apereo.org.