BookmarkSubscribeRSS Feed

SAS Viya 2021.1.4 (August 2021) and later – Controlling the Execution Order in SAS Studio Flows

Started ‎09-23-2021 by
Modified ‎09-23-2021 by
Views 5,340

The SAS Viya 2021.1.4 stable release (August 2021) introduces the ability to control the execution order of individual flows within a flow file in SAS Studio.  This is done by grouping the individual flows (or nodes) into "swimlanes" and specifying the order in which the "swimlanes" are executed.  

 

Below is an example of a SAS Studio Flow with "swimlanes" to control the execution order. In this blog, I will discuss how the flow was created.

 

1_SwimLane.png

Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.

 

SAS Studio Flow Submission Order

Before the introduction of swimlanes in SAS Studio Flow, if my flow file was divided in the same three chunks, I had to ensure by position that the three sub-flows were positioned just right in order to have them execute in the correct order.

 

2_SwimLane.png

 

If I just slightly move the Terminate CAS Session node, then the flow errors since the CAS session is terminated before it is used in the Promote Table to CAS node.

 

3_SwimLane.png

 

However, now in the SAS Viya 2021.4 stable release (August 2021) I can explicitly control the order of these three sub-flows to ensure they will always run in the proper order.  I can also name the sub-flows to help document the overall flow.

 

4_SwimLane.png

 

To organize my flow into swimlanes, I select: 1_icon_SwimLane.png.

 

5_SwimLane-1.png

 

This opens the Submission Order pop-out window.  Select the slider to Enable submission order and create swimlanes for each of the individual sub-flows.

 

6_SwimLane.png

 

I can enter names each of the created swimlanes.

 

7_SwimLane.png

 

Also, on the Submission Order pop-out window I can refresh the arrangement for the selected swimlane(s), add/delete swimlanes, and rearrange the order of the execution for the swimlanes.

8_SwimLane.png

 

Note: If you disable the submission order feature, any changes you have made to the swimlane names and order are not saved.  

 

My flow is now organized and is guaranteed to run in the proper order.

  

9_SwimLane.png

 

Summary

For more information on this newly available feature to control the submission order in SAS Studio Flows in the 2021.1.4 (August 2021) stable release review its documentation.      

 

Find more articles from SAS Global Enablement and Learning here.

Version history
Last update:
‎09-23-2021 08:29 AM
Updated by:
Contributors

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS AI and Machine Learning Courses

The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.

Get started

Article Tags