Created
November 6, 2012 19:52
-
-
Save vgrem/4027062 to your computer and use it in GitHub Desktop.
Nintex Context DataItem for All Approvers in Xml format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Context DataItem for All Approvers in Xml format | |
/// </summary> | |
public class AllApproverCommentsXml : ContextDataItemBase | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="ctx"></param> | |
/// <returns></returns> | |
public override object GetValueObject(NWWorkflowContext ctx) | |
{ | |
return GetLastApproverCommentsAsXml(ctx); | |
} | |
internal string GetLastApproverCommentsAsXml(NWWorkflowContext ctx) | |
{ | |
return new NintexTaskCollection(ctx.InstanceID, ctx.Web).GetAllApprovalTaskCommentsAsXml(); | |
} | |
/// <summary> | |
/// Internal Name | |
/// </summary> | |
public override string InternalName | |
{ | |
get { return "AllApproverCommentsXml"; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment