Results 1 to 2 of 2

Thread: calling any method fixes a problem - no idea what is happening

  1. #1

    Default calling any method fixes a problem - no idea what is happening

    i've tracked down a problem which i cannot explain at all:

    the problem can be fixed by adding the following action bean entry to a transition:

    <transition on="answerDetails" to="answerdetails.subflow">
    <action bean="serviceAction" method="doNothing" name="clone">
    <attribute name="uri" value="foo"/>
    <attribute name="value" value="bar"/>
    <attribute name="var" value="dummy"/>
    </action>
    </transition>

    what it calls is:

    public Event doNothing(final RequestContext context) {
    return super.success();
    }

    so basically, it does nothing. and yet, if i do call it, i suddenly get another(!) object passed to my subflow. how can this happen?

  2. #2
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,806

    Default

    Hello

    Use code tags the next time.

    I suggest you read SWF 2.3.x documentation , special for Sub Flows
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •