How to get Assigned Item Expression via Workflow?
Version: Windchill 11.2
Use Case: Just trying to read/modify Assigned Item Expression which is assigned to a WTPART, in the workflow and then i'll just assign expression to wtparts via workflow.
Description:
Hi there,
First of all, I need to explain our daily use of Item Expressions. We usually assign an expression to a WTPART using the Assigned Item Expression. When I do this, we first move the WTPART to the Library where the Option Set is defined. We're using "Assign Advanced Expression" to assign the expression to the WTPART.
What I am trying to do is print the Assigned Item Expression assigned to a WTPART in the workflow and then assign the expression to WTPARTs via the workflow. However, since this “Assigned Expression” attribute is a calculated value, we cannot retrieve it directly. We need to print it by capturing the relationship between the Option Set and Choice with the WTPART.
There is a topic about obtaining Usage Expression in the forum, but with usage expression, this expression can be obtained with respect to the parent WTPART.
https://community.ptc.com/t5/Windchill-Customization/Method-to-get-Assigned-Expression/m-p/923615
Also, I'm using Windchill version 11.2, and I couldn’t find the OptionHelper class in the Javadoc. I guess it's not supported in this version, or maybe I had trouble finding the fully qualified name.

