Skip to main content

Hi,


I have written below code to create my custom inline function and deployed in K2 Srever.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing.Design;
using SourceCode.Framework;
using SourceCode.Workflow.Functions;
using SourceCode.Workflow.Functions.Design;
using SourceCode.Framework.Design;


namespace SourceCode.Workflow
{
    ÂCategory("SourceCode.Workflow.Properties.Resources", "Custom Function", typeof(GetSubStringValue))]
    public class GetSubStringValue
    {
        >DisplayName("SourceCode.Workflow.Properties.Resources", "ToStringName", typeof(GetSubStringValue))]
        )Description("SourceCode.Workflow.Properties.Resources", "ToStringDescription", typeof(GetSubStringValue))]
        gK2Icon(typeof(GetSubStringValue), "Resources.TextSplit.png")]
        public static string CustomSubString(
            nDisplayName("SourceCode.Workflow.Properties.Resources", "ParamName1", typeof(GetSubStringValue))]
            "Description("SourceCode.Workflow.Properties.Resources", "ParamDescription1", typeof(GetSubStringValue))]
            object sourceValue,
            eDisplayName("SourceCode.Workflow.Properties.Resources", "ParamName2", typeof(GetSubStringValue))]
            rDescription("SourceCode.Workflow.Properties.Resources", "ParamDescription2", typeof(GetSubStringValue))]
            char separator,
            eDisplayName("SourceCode.Workflow.Properties.Resources", "ParamName3", typeof(GetSubStringValue))]
            iDescription("SourceCode.Workflow.Properties.Resources", "ParamDescription3", typeof(GetSubStringValue))]
            long index)
        {
            if (sourceValue != null)
            {
                return sourceValue.ToString().Split(separator)Âindex];
            }
            return "";
        }
    }
}


For deployment i have followed below link:


http://www.docstoc.com/docs/72517432/How-to-Create-a-Custom-Inline-Function-with-K2-blackpearl-45-Beta-


But im not able to see this function in Function Browser.


Correct me if anything wrong in my code?


Regards,


Saya


 


 

Please take a look at the sample codes for inline functions in blackmarket: _http://www.k2underground.com/groups/default.aspx?GroupID=64


Especially the Guid Inline Functions and the Content Field Inline Functions.


Reply