about us      downloads      documentation      contact      home 
 products
 antHR
 workflow studio
 technical toolkits
 content entry
 workflow
 security
 hierarchy
 concepts
 how tos
 reference
 FAQs
previous: Implementing the skeleton  next: Finishing the implementation

How to: Create a new Action in .NET - Adding a property

  Step 1 : Summary
  Step 2 : Design
  Step 3 : Implementing the skeleton
  Step 4 : Adding a property
  Step 5 : Finishing the implementation
  Step 6 : Registering and testing the action

Adding a property to allow custom behaviour at workflow design time - (page 4 of 6)

Level: developer

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;}
    }
        


 

Did you find this article helpful? Comments on this page are welcome and can only help us improve the quality of our documentation.
© Ant Organisation Ltd, 2003