Creating A Simple Flow StructureLast Updated: 12/06/2018 Introduced in Version: 2.0
A simple flow structure creates an entity that is not database-stored and is intended for use in a flow only to temporarily define a piece of data. It is simply a data structure that is not stored. Its limitation is that it can’t perform actions on itself or others. It relies on other components to manipulate it, and other entities to contain it. All you can do with it is create it and use it in the context of a flow. It will not persist beyond the execution of the flow in which it is used.
Begin in the Designer Folder by navigating to Create Datatypes/Integration menu and selecting Flow Structure from its menu.
Next, type in a Structure Type Name. In Decisions version 4.0 type in the name of the Data Member and use the drop down list to specify the data type.
Because in this example we are creating a CorporatePrinter data structure name the first data member Brand. Define its type as Text and select on the next, automatically generated, row to input our next data member. Next add another data member, isOnWarranty, and define its type as Logical because it could be either Yes or No. This completes the Data Structure definition. Select Save and close our Definition window.
To test the Data Structure select Create Flow within the current designer folder. Name the flow and click Create to continue.
In the Flow Designer Quick Add window locate the Create Data step, under All Steps [Catalog] > Data category, and click Add to add it to the work space.
Connect this step to the start and end steps.
With the Create Data step selected, locate the Data Definitions option and select Add New to add a new definition. Create an instance of the Data Structure. So give the Corporate Printer a name.
Search for the Data Type that was created and select it in the type picker. Select Close to save and get back to the Data Definition.
This completes the Data Definition select OK to save it and close Data Definition window. Under the Inputs option view the Printer. In the Mapping dropdown select Constant and select Value to provide the Data Structure with pieces of data. In the Edit Object popup window define the Printer’s brand and check the isOnWarranty checkbox if our Printer is on warranty. Select Ok to save and continue.
This completes the Simple Flow Structure definition.