Methods / Methods for Custom Attributes |
Name | Type | Description |
---|---|---|
customID | string | A work object ID as identified in the process instance. This method allows only one custom ID (work object ID). |
name | string | A string that contains the name of an item, such as a property or attribute. |
val | object | An object that contains the value of the custom attribute. |
IWFWorkflowService svc = GetWorkflowService(); string customID = ..// for example, "InfoPath:011eaf6c46ac4723b25b4db5772d9912" string attributeName = ...// for example, "//pd:purchaseOrder/pd:secondApproval" bool attributeValue = true; try { svc.SetCustomAttr(customID, attributeName, attributeValue); } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }