Using a script in a data flow Click Connect > Data Flows. Select the document flow where the script must be added. Drag and drop the Scripting activity into the canvas of the flow modeler. A Script step cannot be the first or last activity in the flow. Click the Scripting activity. On the Properties tab, specify an activity name. Optionally, specify an activity description. Select a script from the list or create a new one. Scripts with both draft and approved status are listed.