Defining Interfaces
  • 25 Feb 2020
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Defining Interfaces

  • Dark
    Light

Article summary

Overview

Interfaces provide a template for inputs and outputs on Flows and Rules within a Designer Folder.

Example

Begin in a Designer Folder, in the bottom action panel select All > Define Interface.

2019-07-23_093752.PNG

The Define Interface dialog opens. Define the Interface Name, in the example leave the Category as User Defined. Give the Interface a color and image.

Under Setup > Input Definition select Add New.
In the Add Input Definition, name the Data Definition and select the Type. In this example, the Data Definition is named Account and the Type is Account [DecisionsFramework.ServiceLayer.Services.Accounts]. Select Ok to save.

Next under Output Definition, select Add New.
In the Add Output Definition, name the Data Definition and select the Type. In this example, the Data Definition is named Email and the Type is String.

2019-07-23_094132.PNG

In the Designer Folder select Create Flow. On the left-hand side select User Defined [Flow], then choose Test, select Create. Name the flow then select Create.

2019-07-23_094206.PNG

In the Flow Designer expand the Data Explorer tab on the left side, notice the pre-set Input, Account, is available.

2019-07-23_094317.PNG

Next, on the End step, notice the pre-set output, Email, is available.

2019-07-23_094359.PNG

Back in the Designer Folder select Create Rule. On the left-hand side select User Defined [Rule], then choose Test, select Create. Name the rule then select Create.

2019-07-23_094505.PNG

Notice in Given Inputs, Account, is already available and Email is already set in the Result/Else statement.

2019-07-23_094542.PNG


Was this article helpful?

What's Next