A quick one I think. I have the following "Approver" task in a job, and in my email program I call from the .wft I want to extract the comment in <comments>this</comments> - the one where I have all the ?s.
How do I do it?
I know I can retrieve the task using iwgettaskbyname CLT or its Perl Mod equivalent for "Approver". But then how do I get the comment in <comments>? Or is there a way where I can get it from the Job without having to look up the task?
Haven't been able to find it so far; would be a nice timesaver if someone can tell me.
Cheers
HF
./iwgetwfobj 723785
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<usertask name="Approver" owningworkflow="723783" lock="f" transferonly="f" readonly="t" state="done" active="f" owner="root" unactivatible="f" tryingtolock="f" undoable="f">
<description>Review Task</description>
<areavpath v="/default/main/nlm/WORKAREA/common"/>
<activation>
<pred v="723784"/>
</activation>
<inactivate>
<pred v="723784"/>
</inactivate>
<resets/>
<predecessors>
<predecessor hasactivated="f" id="723784"/>
</predecessors>
<files>
<file path="htdocs/pageHeaderColors.html" deleted="f" objid="0x0000100854d3be0760000f85">
<comments>
<comment date="1439925163" user="johnsonpd" task="723785">1 Errors </comment>
</comments>
</file>
<file path="htdocs/permlevels.html" deleted="f" objid="0x0000100855957c9260043000">
<comments>
<comment date="1439925163" user="johnsonpd" task="723785">3 Errors </comment>
</comments>
</file>
<file path="teamsite-info/validation_errors_201508181512.html" deleted="f" objid="0x0000100855d383ab6009840b">
<comments/>
</file>
</files>
<comments>
<comment date="1439925276" user="johnsonpd" task="723785">This is my approval message; where does it go?????????????????????????????????</comment>
</comments>
<activationtime v="1439925163"/>
<unactivationtime v="1439925276"/>
<variables/>
<successors>
<successorset description="Approve">
<succ v="723787"/>
</successorset>
<successorset description="Reject">
<succ v="723792"/>
</successorset>
</successors>
<transitionmade v="0"/>
</usertask>