Results 1 to 3 of 3

Thread: Can I get the currently executing flow id from a JSP?

  1. #1

    Default Can I get the currently executing flow id from a JSP?

    Is it possible to easily get hold of information about a flow (other than the flowExecutionKey) from a JSP?

    I am basically trying to enable or disable hyperlinks based on the currently executing flow id - for example:

    <c:if test="${_flowId == 'foo'}">
    <a href="<c:url value='bar.htm'/>">(back)</a>
    </c:if>

    If this is not possible, what would be the best way to approach this. Should I use a flow variable or an attribute?

  2. #2

    Default Trying again

    Let me rephrase the question:

    From the following section of the SWF documentation:

    http://static.springframework.org/sp...tion.html#flow

    "attributes Additional custom attributes about the flow."

    "variables The set of flow variables to create each time an execution of the flow is started."

    - What can attributes and variables be used for?
    - Are there examples available?
    - what are the differences between attributes and variables?

  3. #3
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Quote Originally Posted by ptrthomas
    - What can attributes and variables be used for?
    In our application each flow has a certain number of pre-reqs, user must be logged, the object must locked, a certain permission is required etc.

    We achieve this through:

    Code:
      <flow ....>
        <attribute  name="lockStrategy" value="LockForEdit"/>
        ....
      </flow>
    We then have a number of FlowExecutionListeners that evaluate those attributes and ensure the pre-reqs are met (LockAwareFlowExecutionListener etc.)

Posting Permissions

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