Flow steps (simple)

Last Updated: 07/15/2016 Introduced in Verision: 2.0

Summary

You can easily create new steps to be used in Decisions by creating public static methods in a class file project. This article will show you how to accomplish this.
 
Example
Create a new Class Library project is Visual Studio.
 
Add a reference to the DecisionsFramework.dll.
 
Decorate your class with the following attribute: [AutoRegisterMethodsOnClass(true, "Sample Category", "Example Steps from Class File", RegisterForAgents = true)] 
 
Create a public static method in you class that does what you want. This method will become a step in Decisions. The name of your method will be the name of you step. Also the inputs and outputs of your method will become the inputs and outputs of your step. See the following code for two example methods in a class that we will use to create steps inside of Decisions.

 After you have written your methods build your project, follow the steps here: Deploying server side extensions

 
After deploying your code log into the Decisions portal and create a new flow. You will now see the methods from your class in the Toolbox.
 result
 

Additional Resources