| Methods / Methods for Process Instances | |
Web Services
Retrieves a single attribute for a specified process instance.
public virtual KeyValue GetProcInstAttr(string processInstanceID, string attributeName)
| Name | Description | 
|---|---|
processInstanceID  | 
        
          
  | 
        
      
attributeName  | 
        
          
  | 
        
      
Returns the KeyValue for the attribute associated with the process instance as a name-value" pair.
//This is console application sample
IWFWorkflowService svc = GetWorkflowService();
string processInstanceID = …// for example,
"1e3d514d43d3465cae6ec3bbbd409168";
string attributeName = "DefName";
try
    {
    //Returns attribute associated with the Process Instance as 
    "Name-Value" pair.
    KeyValue processInstanceAttribute =
    svc.GetProcInstAttr(processInstanceID, attributeName);
    Console.WriteLine("{0}={1}", processInstanceAttribute.Name,+
    processInstanceAttribute.Value);
    }
catch (Exception ex)
    {
    Console.WriteLine(ShUtil.GetSoapMessage(ex));
    }
                
            
3.2.0.4 and higher