Results 1 to 3 of 3

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

  1. #1

    Default 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. #2
    Join Date
    Dec 2009
    Posts
    21

    Default

    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

  3. #3

    Default

    yes this is exactly what I needed thanks a lot.

Posting Permissions

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