Announcement Announcement Module
Collapse
No announcement yet.
Calling a subflow inside a parent flow using expression instead of string literal Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling a subflow inside a parent flow using expression instead of string literal

    Dear All,

    I'm calling a subflow inside a parent flow, this is done using string literal

    example:

    Code:
    <subflow-state id="executeValidatePersonWF"  subflow="validateperson">
    what I want to do is using an expression <validation.person> instead of a string literal

    example:
    Code:
    <subflow-state id="executeValidatePersonWF"  subflow="validation.person">
    validation.person should be evaluated to "validateperson".

    I have been looking around the springWF source and I found this class SubflowExpression, as I can see from the code it does evaluate the expression before Locating the flow.

    my question is How to specify that the name of the flow is an expression not a string literal?

    Regards,
    Amgad

  • #2
    you forgot the syntax for expression language:
    ${form.getCrudForm(requestParameters.element_name, elt, flowRequestContext).getSubflowId()}

    I use something like this...

    form is a variable in the flowscope in this case

    Comment


    • #3
      yes this is exactly what I needed thanks a lot.

      Comment

      Working...
      X