Creating A Simple Flow Structure
  • Updated on 09 May 2013
  • 2 minutes to read
  • Print
  • Dark
    Light

Creating A Simple Flow Structure

  • Print
  • Dark
    Light

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.
Example
Begin in the Designer Folder by navigating to Create Datatypes/Integration menu and selecting Flow Structure from its menu.
2017-12-22_111334.png

2017-12-22_111435.png

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. 
2017-12-22_112103.png

Because in this example we are creating aCorporatePrinter 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.
2017-12-22_112927.png

To test the Data Structure select Create Flow within the current designer folder. Name the flow and click Create to continue.
2017-12-22_113152.png

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.
2017-12-22_113345.png

Connect this step to the start and end steps. 
2017-12-22_113530.png

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.
2017-12-22_113557.png

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 .
2017-12-22_114109.png

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.
2017-12-22_114552.png

This completes the  Simple Flow Structure definition.
2017-12-22_114920.png

Was this article helpful?