Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this process flow, you can see that two input streams are passed to the File_the File Target. The desirable execution sequence is that first File_Source will first File Source will be executed then File_Target and then File Target and thereafter the Gateway. Now, if the condition specified at the Gateway is satisfied, the process flow will be finished. If the condition specified at Gateway is not satisfied, the control will be passed to the FTP _Source and further to File_the FTP Source and further to File Target. Practically, when this process flow will be executed, the File_the File Target activity will get confused whether to take input from File_Source or from FTP_Sourcefrom File Source or from FTP Source. Thus, this process flow will fail.

To avoid such situation, Stream Selector is used. Streams from File_Source and FTP_Source are from File Source and FTP Source are passed to the Stream Selector and then from the Stream Selector to the File_the File Target.

Stream Selector takes input from the activity that has just executed. If the File_Source has the File Source has executed before the execution of the Stream Selector, it will take input from the File_the File Source. If the FTP_Source has the FTP Source has just executed, it will take input from the FTP_the FTP Source.

To use Stream Selector:

  1. In Web Process Designer, click Repository View icon. All the items in the Activities list are displayed.
  2. Expand Selector.

  3. Click Stream Selector Service and drag it to the Canvas area. 



  4. Connect the required activities with the Stream Selector Service.