Get Custom Attributes (Extended Method)

API Type

Web Services

Description

Retrieves all custom attributes for a specified a set of custom IDs.

Syntax

public virtual KeyValue[] GetCustomAttrsEx(string[] customIDs)

Parameters

Name Description

customIDs

Definition:
Multiple work object IDs specified within a process instance.
Type
string
Allowed Values:
An array of valid work object IDs.

Output

An array of KeyValue values. The key is a custom ID, and value is a string of custom attributes in XML format.

Example

IWFWorkflowService svc = GetWorkflowService();

//Array of custom ID
string[] customIDs = …// for example,
	{"InfoPath:011eaf6c46ac4723b25b4db5772d9912", ….};

try
	{
    KeyValue[] keyValues = svc.GetCustomAttrsEx(customIDs);
    foreach (KeyValue kv in keyValues)
        {
        Console.WriteLine("ID:'{0}'", kv.Key);
        Console.WriteLine("Custom Attributes XML: '{0}'", kv.Value);
        WFCustomAttributes attrs = new WFCustomAttributes();
        Attrs.AttrXml = kv.Value;
        }
	}

catch (Exception ex)
	{
    Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
	}

Supported Versions

3.2.0.4 and higher