Announcement Announcement Module
Collapse
No announcement yet.
loadFormObject not called on executing exposeFormObject Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • loadFormObject not called on executing exposeFormObject

    Greetings!

    I am having a problem where calling setupForm or exposeFormObject only works on the start of each flow or second state down. I know wierd. :?

    I have overriden loadFormObject to retrieve my data from a database, then store that object (form object) within flow scope to be later displayed by my parent flow. However, before that can happen I need to do some pre-processing "stuff" before I can call setupForm or exposeFormObject. Therefore, my subflow starts of with two or more action states, then a call to an action state that calls exposeFormObject (which in turns calls overriden loadFormObject) that loads my form object. However, this doesn't go as planned, the method to exposeFormObject doesn't get executed. When I switch that action state, the action states that makes the call, to the start of the flow ( or second state from start), then it gets executed. Strange huh?

    Initially, I thought perhaps their is some kind of error that is being thrown causing a failure. However, I inserted debug statements and I am 100% sure ' success' is being returned ( and data is inserted in database). The transition is being made to the exposeForm action state, but some strange reason the method does not get executed (I inserted debug statement and there was no output).

    The following is what my subflow looks like:

    Code:
    //determine which method to create CatalogCategory (inline or via template).
    		addActionState (METHOD, method(METHOD, actionRef(CatalogCategoryFormAction.class)),
    				new Transition[] {on (TEMPLATE, CATALOG_CATEGORY_TEMPLATE_SETUP), 
    					on (INLINE, ADD_CATALOG_CATEGORY_INLINE)});
    		
    		
    		addActionState (ADD_CATALOG_CATEGORY_INLINE, method (ADD_CATALOG_CATEGORY_INLINE, actionRef(CatalogCategoryFormAction.class)),
    				new Transition[] {on (success(), EXPOSE_FORM_OBJECT), on (error(), ERROR)});
    		
    		
    		addActionState (EXPOSE_FORM_OBJECT, method (EXPOSE_FORM_OBJECT, actionRef(CatalogCategoryFormAction.class)),
    				new Transition[] {on (success(), FINISH), on (error(), ERROR)});
    I am using Spring preview 5

    Any light you can shed on this is greatly appreciated.

  • #2
    Very strange indeed.
    I take it EXPOSE_FORM_OBJECT == "exposeFormObject"?

    Could you try to put a debugger breakpoint in MultiAction.doExecute() and step through it from that point on. That should give you a bit more information about why the action method never gets called when the flow enters the exposeFormObject action state.

    Erwin

    Comment


    • #3
      Yep, I double checked the spelling of 'exposeFormObject'. I also did as you suggested and debugged MultiAction.doExecute(). I stepped through the execution of the code and everything appears to be working correctly. I have included some debug output below. As you can see everything from the matching criteria to executing exposeFormObject method took place. The only thing that caught my eye, was I had the subflow named correctly in my SWF context file but incorrectly in my Java base flow definition. However, I made the correction and I am still getting the same results.

      Code:
      2005-09-10 19&#58;56&#58;39,440 DEBUG &#91;org.springframework.webflow.ActionState&#93; - <Event 'inline' matched transition to state&#58; 'addCatalogCategoryViaInLine'>
      
      
      2005-09-10 19&#58;56&#58;39,554 DEBUG &#91;org.springframework.webflow.Transition&#93; - <Executing transition '&#91;Transition@9fa12f targetState = 'addCatalogCategoryViaInLine', sourceState = 'checkMethod', matchingCriteria = 'inline', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'checkMethod'>
      .
      .
      .
      .
      2005-09-10 20&#58;04&#58;54,579 DEBUG &#91;org.springframework.webflow.ActionState&#93; - <Event 'success' matched transition to state&#58; 'exposeFormObject'>
      
      <Executing transition '&#91;Transition@14d8a08 targetState = 'exposeFormObject', sourceState = 'addCatalogCategoryViaInLine', matchingCriteria = 'success', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'addCatalogCategoryViaInLine'>
      
      //Incorrect, should be catalogCategory.Add
      <Entering state 'exposeFormObject' in flow 'catalogCategoryRollup.Add'>
      
      <Setting current state of flow session&#58; 'catalogCategoryRollup.Add@d48785' to&#58; 'exposeFormObject'>
      
      <Executing action&#58; &#91;AnnotatedAction@f4c9c4 properties = map&#91;'method' -> 'exposeFormObject'&#93;, action = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@123fab3&#93; in state&#58; 'exposeFormObject'>
      
      <Executing action&#58; com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@123fab3 in state&#58; 'exposeFormObject'>
      
      <Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' beginning execution>
      .
       <No property editor registrar set, no custom editors to register>
      1302628 &#91;resin-tcp-connection-192.168.1.100&#58;8090-15&#93; DEBUG action.CatalogCategoryFormAction  - No property editor registrar set, no custom editors to register
      
      <Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' completed execution; result event is &#91;Event@571688 source = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@123fab3, id = 'success', stateId = &#91;null&#93;, parameters = &#91;null&#93;&#93;>
      
      2005-09-10 20&#58;48&#58;01,585 DEBUG &#91;org.springframework.webflow.ActionState&#93; - <Event 'success' signaled in context&#58; &#91;StateContextImpl@6fe350 sourceEvent = 'addCatalogCategory', lastEvent = 'success', requestScope = map&#91;'action' -> 'update', 'org.springframework.validation.BindException.#formObject' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'row' -> '37', 'org.springframework.validation.BindException.catalogCategoryForm' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'method' -> 'inline'&#93;, executionProperties = empty, flowExecution = &#91;FlowExecutionImpl@1e13ce3 key = '37EDD2D7-486F-5CC8-AB81-09A8A15C291A', activeFlow = 'catalogCategoryRollup.Add', currentState = 'exposeFormObject', rootFlow = 'catalog.Browse', executingFlowSessions = list&#91;&#91;FlowSessionImpl@24d3a flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@89bc2ab5, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@89bc2ab5&#93;&#93;, &#91;FlowSessionImpl@5db088 flow = 'catalogCategoryRollup.Add', currentState = 'exposeFormObject', attributesCount = 4, attributes = map&#91;'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@677c71f6, 'parentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@677c71f6, 'catalogCategory' -> '37'&#93;&#93;&#93;&#93;&#93;>
      
      2005-09-10 20&#58;48&#58;01,857 DEBUG &#91;org.springframework.webflow.ActionState&#93; - <Event 'success' matched transition to state&#58; 'finish'>
      
      <Executing transition '&#91;Transition@14f7121 targetState = 'finish', sourceState = 'exposeFormObject', matchingCriteria = 'success', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'exposeFormObject'>
      
      2005-09-10 20&#58;48&#58;02,102 DEBUG &#91;org.springframework.webflow.EndState&#93; - <Entering state 'finish' in flow 'catalogCategoryRollup.Add'> //Incorrect should be catalogCategory.Add
      
      <Setting current state of flow session&#58; 'catalogCategoryRollup.Add@5db088' to&#58; 'finish'>
      
      <Resuming parent flow 'catalog.Browse' in state 'catalogCategory.Add'>

      Comment


      • #4
        The following is debugging output after making change to flowId:
        Code:
        <Event 'inline' signaled in context&#58; &#91;StateContextImpl@182752b sourceEvent = 'addCatalogCategory', lastEvent = 'addCatalogCategory', requestScope = map&#91;&#91;empty&#93;&#93;, executionProperties = empty, flowExecution = &#91;FlowExecutionImpl@2c3549 key = '6B781476-FD43-BAB7-C2F6-2CD1816FCDE1', activeFlow = 'catalogCategory.Add', currentState = 'checkMethod', rootFlow = 'catalog.Browse', executingFlowSessions = list&#91;&#91;FlowSessionImpl@16c03ee flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@842c2e4c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@31adcf34, com.oim.commerce.domain.product.catalog.CatalogCategory@59590dd4, com.oim.commerce.domain.product.catalog.CatalogCategory@9145592c, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea&#93;&#93;, &#91;FlowSessionImpl@cab3bf flow = 'catalogCategory.Add', currentState = 'checkMethod', attributesCount = 1, attributes = map&#91;'parentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2&#93;&#93;&#93;&#93;&#93;>
        
        <Event 'inline' matched transition to state&#58; 'addCatalogCategoryViaInLine'>
        
        <Executing transition '&#91;Transition@9fa12f targetState = 'addCatalogCategoryViaInLine', sourceState = 'checkMethod', matchingCriteria = 'inline', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'checkMethod'>
        
        <Entering state 'addCatalogCategoryViaInLine' in flow 'catalogCategory.Add'>
        
        <Setting current state of flow session&#58; 'catalogCategory.Add@cab3bf' to&#58; 'addCatalogCategoryViaInLine'>
        
        <Executing action&#58; &#91;AnnotatedAction@60acdc properties = map&#91;'method' -> 'addCatalogCategoryViaInLine'&#93;, action = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448&#93; in state&#58; 'addCatalogCategoryViaInLine'>
        
        <Executing action&#58; com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448 in state&#58; 'addCatalogCategoryViaInLine'>
        
        <Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' beginning execution>
        
        <Service loading category...>
        
        <Added category rollup via inline method. Row number&#58; 41>
        
        Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' completed execution; result event is &#91;Event@191a42 source = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448, id = 'success', stateId = &#91;null&#93;, parameters = &#91;null&#93;&#93;
        
        <Event 'success' signaled in context&#58; &#91;StateContextImpl@182752b sourceEvent = 'addCatalogCategory', lastEvent = 'inline', requestScope = map&#91;'action' -> 'update', 'row' -> '41', 'method' -> 'inline'&#93;, executionProperties = empty, flowExecution = &#91;FlowExecutionImpl@2c3549 key = '6B781476-FD43-BAB7-C2F6-2CD1816FCDE1', activeFlow = 'catalogCategory.Add', currentState = 'addCatalogCategoryViaInLine', rootFlow = 'catalog.Browse', executingFlowSessions = list&#91;&#91;FlowSessionImpl@16c03ee flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@842c2e4c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@31adcf34, com.oim.commerce.domain.product.catalog.CatalogCategory@59590dd4, com.oim.commerce.domain.product.catalog.CatalogCategory@9145592c, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea&#93;&#93;, &#91;FlowSessionImpl@cab3bf flow = 'catalogCategory.Add', currentState = 'addCatalogCategoryViaInLine', attributesCount = 3, attributes = map&#91;'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@8329b8, 'parentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategory' -> '41'&#93;&#93;&#93;&#93;&#93;>
        
        <Event 'success' matched transition to state&#58; 'exposeFormObject'>
        
        <Executing transition '&#91;Transition@14d8a08 targetState = 'exposeFormObject', sourceState = 'addCatalogCategoryViaInLine', matchingCriteria = 'success', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'addCatalogCategoryViaInLine'>
        
        <Entering state 'exposeFormObject' in flow 'catalogCategory.Add'>
        
        <Setting current state of flow session&#58; 'catalogCategory.Add@cab3bf' to&#58; 'exposeFormObject'>
        
        <Executing action&#58; &#91;AnnotatedAction@1bf502d properties = map&#91;'method' -> 'exposeFormObject'&#93;, action = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448&#93; in state&#58; 'exposeFormObject'>
        
        <Executing action&#58; com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448 in state&#58; 'exposeFormObject'>
        
        <Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' beginning execution>
        
        <No property editor registrar set, no custom editors to register>
        
        <Action 'com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction' completed execution; result event is &#91;Event@1e001c8 source = com.oim.commerce.web.spring.flow.action.CatalogCategoryFormAction@1b3d448, id = 'success', stateId = &#91;null&#93;, parameters = &#91;null&#93;&#93;>
        
        <Event 'success' signaled in context&#58; &#91;StateContextImpl@182752b sourceEvent = 'addCatalogCategory', lastEvent = 'success', requestScope = map&#91;'action' -> 'update', 'org.springframework.validation.BindException.#formObject' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'row' -> '41', 'org.springframework.validation.BindException.catalogCategoryForm' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'method' -> 'inline'&#93;, executionProperties = empty, flowExecution = &#91;FlowExecutionImpl@2c3549 key = '6B781476-FD43-BAB7-C2F6-2CD1816FCDE1', activeFlow = 'catalogCategory.Add', currentState = 'exposeFormObject', rootFlow = 'catalog.Browse', executingFlowSessions = list&#91;&#91;FlowSessionImpl@16c03ee flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@842c2e4c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@31adcf34, com.oim.commerce.domain.product.catalog.CatalogCategory@59590dd4, com.oim.commerce.domain.product.catalog.CatalogCategory@9145592c, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea&#93;&#93;, &#91;FlowSessionImpl@cab3bf flow = 'catalogCategory.Add', currentState = 'exposeFormObject', attributesCount = 4, attributes = map&#91;'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@8329b8, 'parentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@8329b8, 'catalogCategory' -> '41'&#93;&#93;&#93;&#93;&#93;>
        
        <Event 'success' matched transition to state&#58; 'finish'>
        
        <Executing transition '&#91;Transition@1bae5f5 targetState = 'finish', sourceState = 'exposeFormObject', matchingCriteria = 'success', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'exposeFormObject'>
        
        <Entering state 'finish' in flow 'catalogCategory.Add'>
        
        <Setting current state of flow session&#58; 'catalogCategory.Add@cab3bf' to&#58; 'finish'>
        
        <Resuming parent flow 'catalog.Browse' in state 'catalogCategory.Add'>
        
        <Messaging the configured attribute mapper to map subflow attributes back up to this resuming flow -- I will have access to attributes passed up by the completed sub flow>
        
        <Ended&#58; &#91;FlowSessionImpl@cab3bf flow = 'catalogCategory.Add', currentState = 'finish', attributesCount = 4, attributes = map&#91;'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@8329b8, 'parentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@8329b8, 'catalogCategory' -> '41'&#93;&#93;>
        
         <Resumed&#58; &#91;FlowSessionImpl@16c03ee flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@842c2e4c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@31adcf34, com.oim.commerce.domain.product.catalog.CatalogCategory@59590dd4, com.oim.commerce.domain.product.catalog.CatalogCategory@9145592c, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea&#93;&#93;>
        
         <Event 'finish' signaled in context&#58; &#91;StateContextImpl@182752b sourceEvent = 'addCatalogCategory', lastEvent = 'success', requestScope = map&#91;'action' -> 'update', 'org.springframework.validation.BindException.#formObject' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'row' -> '41', 'org.springframework.validation.BindException.catalogCategoryForm' -> org.springframework.validation.BindException&#58; BindException&#58; 0 errors, 'method' -> 'inline'&#93;, executionProperties = empty, flowExecution = &#91;FlowExecutionImpl@2c3549 key = '6B781476-FD43-BAB7-C2F6-2CD1816FCDE1', activeFlow = 'catalog.Browse', currentState = 'catalogCategory.Add', rootFlow = 'catalog.Browse', executingFlowSessions = list&#91;&#91;FlowSessionImpl@16c03ee flow = 'catalog.Browse', currentState = 'catalogCategory.Add', attributesCount = 4, attributes = map&#91;'currentCatalog' -> com.oim.commerce.domain.product.catalog.Catalog@166e42a2, 'catalogCategories' -> list&#91;com.oim.commerce.domain.product.catalog.CatalogCategory@240d2a0c, com.oim.commerce.domain.product.catalog.CatalogCategory@a612c1ac, com.oim.commerce.domain.product.catalog.CatalogCategory@2792d474, com.oim.commerce.domain.product.catalog.CatalogCategory@ed475471, com.oim.commerce.domain.product.catalog.CatalogCategory@84882c7c, com.oim.commerce.domain.product.catalog.CatalogCategory@7b34024, com.oim.commerce.domain.product.catalog.CatalogCategory@d0d5e95c, com.oim.commerce.domain.product.catalog.CatalogCategory@49b127dc, com.oim.commerce.domain.product.catalog.CatalogCategory@7ab356e4, com.oim.commerce.domain.product.catalog.CatalogCategory@afc68a84, com.oim.commerce.domain.product.catalog.CatalogCategory@37b2df64, com.oim.commerce.domain.product.catalog.CatalogCategory@9213a70c, com.oim.commerce.domain.product.catalog.CatalogCategory@842c2e4c, com.oim.commerce.domain.product.catalog.CatalogCategory@53c97ebc, com.oim.commerce.domain.product.catalog.CatalogCategory@51e1138c, com.oim.commerce.domain.product.catalog.CatalogCategory@8c67e634, com.oim.commerce.domain.product.catalog.CatalogCategory@d117ecec, com.oim.commerce.domain.product.catalog.CatalogCategory@31adcf34, com.oim.commerce.domain.product.catalog.CatalogCategory@59590dd4, com.oim.commerce.domain.product.catalog.CatalogCategory@9145592c, com.oim.commerce.domain.product.catalog.CatalogCategory@c4590194, com.oim.commerce.domain.product.catalog.CatalogCategory@5d93efe4, com.oim.commerce.domain.product.catalog.CatalogCategory@ce8e38a4, com.oim.commerce.domain.product.catalog.CatalogCategory@89219b7c, com.oim.commerce.domain.product.catalog.CatalogCategory@2072ed8c, com.oim.commerce.domain.product.catalog.CatalogCategory@8243b824, com.oim.commerce.domain.product.catalog.CatalogCategory@664db8cc, com.oim.commerce.domain.product.catalog.CatalogCategory@e39c5dc4, com.oim.commerce.domain.product.catalog.CatalogCategory@93cf0d74, com.oim.commerce.domain.product.catalog.CatalogCategory@4866ea3c, com.oim.commerce.domain.product.catalog.CatalogCategory@b0d91314, com.oim.commerce.domain.product.catalog.CatalogCategory@56ffd0ac, com.oim.commerce.domain.product.catalog.CatalogCategory@bf01ebec, com.oim.commerce.domain.product.catalog.CatalogCategory@7fa4c83c, com.oim.commerce.domain.product.catalog.CatalogCategory@7cc6c5b4&#93;, 'catalogCategoryForm' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea, '#formObject' -> com.oim.commerce.domain.product.catalog.CatalogCategory@2dd9e5ea&#93;&#93;&#93;&#93;&#93;>
        
        <Event 'finish' matched transition to state&#58; 'viewCatalogCategory'>
        
        <Executing transition '&#91;Transition@11d221e targetState = 'viewCatalogCategory', sourceState = 'catalogCategory.Add', matchingCriteria = 'finish', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' out of state 'catalogCategory.Add'>
        
        <Entering state 'viewCatalogCategory' in flow 'catalog.Browse'>
        
        .
        .
        <Setting current state of flow session&#58; 'catalog.Browse@16c03ee' to&#58; 'viewCatalogCategory'>
        .
        .
        .
        2005-09-10 22&#58;12&#58;28,877 DEBUG &#91;org.springframework.webflow.Transition&#93; - <Transition '&#91;Transition@1bae5f5 targetState = 'finish', sourceState = 'exposeFormObject', matchingCriteria = 'success', executionCriteria = *, properties = map&#91;&#91;empty&#93;&#93;&#93;' executed; as a result, the new state is 'viewCatalogCategory' in flow 'catalog.Browse'>

        Comment


        • #5
          Greetings!!

          Just to complete this thread and incase anyone stumble upon a similar problem:

          I have solve my problem. It seems that calling exposeForm at the start of my parent flow and at the start of my subflow cause the subflow exposeForm not to load my form again (call loadFormObject). Anyway, removing it from the start of my parent flow solved the problem. :?

          Cheers,

          _Curtney

          Comment

          Working...
          X