Question
Morgan Stanley
IN
Last activity: 4 Oct 2018 13:54 EDT
DSM: How to execute a Data Flow
We have two ways of calling a data flow from an activity:
1. call Data-Decision-DDF-RunOptions.pxRunSingleCaseDDF
2. DataFlow-Execute
Is there any difference (technically) between the above two methods of calling data flow
***Updated by moderator: Lochan to update Categories***
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Hi haria,
Just for completeness, there's one more way of executing data flows: Data-Decision-DDF-RunOptions.pxStartRun.
pxStartRun and pxRunSingleCaseDDF are activities for two specific use cases, the first one is used to trigger a batch run and the second one allows the user to submit a page for processing via data flow and extract the result at the end of the run. Technically the first one is an async run of a data flow with defined sources and destinations while the second one is a sync execution to be used with a data flow with Abstract source and destination so the input can be provided and the output can be extracted.
DataFlow-Execute is a friendlier way of executing runs. It takes into consideration the type of data flow that needs to be executed and exposes the possible operations to be executed like Browse, Save, Process and etc. (Please, refer to the help section for more details on this)
I recommend you use DataFlow-Execute to trigger a run as it supports all possible operations on data flows and is simpler to use.
Let me know if you need more details on it.
Regards,
Henrique