How to get @pdg_input and @pdg_output in Python?

   1866   1   0
User Avatar
Member
692 posts
Joined: Aug. 2019
Offline
In Hscript expressions we could use `@pdg_input` and `@pdg_output` to get a work item's input and output. But how to do this Python? I've tried everything that I can think of:

* attrib("pdg_input")
* inputResultData
* expectedInputResultData
* resultData
* data.allDataMap


None of these works! How could it be so hard to just get the most basic attributes of work items?

Edited by raincole - Jan. 19, 2022 21:17:58

Attachments:
Screenshot 2022-01-20 101415.png (186.1 KB)

User Avatar
Member
27 posts
Joined: Jan. 2018
Offline
for me I used
getOutputFile = str(work_item.inputResultData[0])
to get the @pdg_output and
getInputFile = str(work_item.expectedInputResultData[0])
to get the @pdg_input
  • Quick Links