Results 1 to 3 of 3

Thread: Equivalent to "static" variables?

  1. #1
    Join Date
    Mar 2005
    Posts
    144

    Default Equivalent to "static" variables?

    You can declare flow "instance" variables using the <var> element in a flow. These variables are created with the flow is started and belong to an instance of the flow.

    Is there a similar construct to "static" variables? Do I have the ability to define a variable that is a member of the flow itself and not an instance of the flow?

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

    Default

    Is there a similar construct to "static" variables? Do I have the ability to define a variable that is a member of the flow itself and not an instance of the flow?
    What is the problem if you work with Sessions within your flow execution?

    Could you explain what are you trying to resolve?, I mean your requirement
    - 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

  3. #3
    Join Date
    Mar 2005
    Posts
    144

    Default static variables

    What I was thinking about doing is initializing reference data once per flow, not every instance of the flow. If I used any "real" caching mechanism, initializing reference data by getting the information from the cache every time would alleviate the problem.

    We can do this type of thing in Spring MVC, just checking if there is a way to do it here.

Posting Permissions

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