WCF Services

K2 Services provide Windows Communication Foundation (WCF) endpoints for a portion of the SourceCode.Workflow.Client APIs.  Developers familiar with using the SourceCode.Workflow.Client APIs as locally referenced resources will be immediately productive accessing these same resources via WCF endpoints.

The SourceCode.Workflow.Client Namespace documentation contains information on the underlying classes, properties, methods and sample code. Reference this namespace when utilizing the WCF endpoints.

Watch a short video on how to use the K2 REST and WCF Services  (Length 13 minutes)

Detailed information on service contracts, data contracts and operation contracts can be found in the endpoint Service Descriptions.

For information on how to configure K2 Services for Claims Authentication support, go to KB001426.

URI – Service Description

{Service Root URI}?wsdl
http://api.denallix.com:81/K2Services/WCF.svc?wsdl

WCF Methods

The following operations are supported by the WCF.svc endpoint.

ICoreService

• WhoAmI() – returns User making the request

IIdentityService

IProcessNavigationService

IWorklistNavigationService

SyncWCF Methods

The following operations are supported by the SyncWCF.svc endpoint.

ICoreService

IIdentityService

ITaskService

Filtering 

WCF Filtering example

WcfK2Services.WorklistNavigationServiceClient client = new WcfK2Services.WorklistNavigationServiceClient();
            WcfK2Services.Criteria criteria = new WcfK2Services.Criteria()
            {
                Filter = new []
                {
                    new WcfK2Services.CriteriaFilter()
                    {
                        Field = WcfK2Services.CriteriaField.ProcessFolio,
                        Comparison = WcfK2Services.CriteriaComparison.Equal,
                        Value = "Approve Customer",
                        ValueType = WcfK2Services.ValueType.String
                    },
                    new WcfK2Services.CriteriaFilter()
                    {
                        Logical = WcfK2Services.CriteriaLogical.And,
                        Field = WcfK2Services.CriteriaField.ProcessData,
                        SubField = "Customer Name",
                        Comparison = WcfK2Services.CriteriaComparison.Like,
                        Value = "*Mary*",
                        ValueType = WcfK2Services.ValueType.String
                    }
                },
                Sort = new []
                {
                    new WcfK2Services.CriteriaSort()
                    {
                        Field = WcfK2Services.CriteriaField.ProcessStartDate,
                        Order = WcfK2Services.CriteriaSortOrder.Ascending
                    }
                }
            };

            WcfK2Services.WorklistItem[] items = client.OpenWorklistFiltered(criteria, false, false, false, false);

K2 blackpearl Developers Reference4.7
Video Links Learn Support
No videos found for this article
K2 on YouTube
No Additional links found for this article
No self-learning content for this article
Try some scenarios...
No relevant support links available for this article