Results 1 to 2 of 2

Thread: How to make a flow only executable as a sub flow

  1. #1
    Join Date
    Oct 2005
    Location
    Mobile, AL
    Posts
    345

    Default How to make a flow only executable as a sub flow

    I have a flow defined "participantTransaction" that invokes a subflow "selectParticipant". The sub flow works as expected.

    I was wondering if there is a way to keep the flow "selectParticipant" from being directly invoked as the main flow since it will only ever be used as a subflow to another flow?

    Thanks,

    Marty

  2. #2
    Join Date
    May 2008
    Posts
    53

    Default

    You might be able to use the FlowExecutionListener interface to do this. You could implement a sessionStarting method that looks to see if the flowSession has a parent flow and throw an exception if it does not. The listener will fire for all flows so you will some way of indicating that specific flows should not be started directly (perhaps use a flow attribute).

    For inspiration, take a look at the SecurityFlowExecutionListener that is used to handle secured flows.

Posting Permissions

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