Adding a property to allow custom behaviour at workflow design time
- (page 4 of 6)
In order to add a property,
content entry is used. First the action class is marked as being a content entry class by adding a ClassOverview attribute to the class:
[ClassOverview]
public class HowToAction : Action
After this is done, add a property to the class. In this case we will add a new string attribute called "Message", which represents message that will be sent in the email.
To see more about marking up a class for content entry, see
how to mark up classes. This looks like:
private string message;
/// <summary>
/// Message of the email
/// </summary>
[PropertyInformation(typeof(StringConverter), typeof(InputEntry), true, 0)]
[PropertyLanguage(PropertyLanguage.English, "Message",
"This is the message of the email", "You must enter a message")]
public string Message
{
get {return message;}
set {message = value;}
}