Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hi @DA_11031933
Can you describe your issue? The described method works so where is your trouble?
Send a screenshot from your task where the dropdown attribute is not working.
PS> if you create a dropdown list of users, you have to use the string ID {what ever you use} to find the participant in the system.
then you have to write code to resolve the participant from the user's choice and set the activity responsible role before the activity starts.
PetrH
Hello @HelesicPetr , thanks for the quick response,
The article I referred to explains how to create an enumerated list within the workflow activity task page. I followed all the outlined steps—successfully compiling MySize.java and the associated .rbinfo file. However, I couldn't locate the .ser file, which is typically generated after compiling the resource bundle. Consequently, the MySize.class isn't recognized on the variable creation page.
Additionally, I aim to implement a dropdown list of roles using the same approach. My plan is to create a resource bundle similar to the existing one in Windchill, "ActorRoleRB.RB," but tailored to include the required number of roles.
Hi @DA_11031933
The ser file is generated after ant compilation
If the workflow editor can not find your class then you did not place the class to a correct place.
PetrH
The ser file is not generated after ant compilation
The attached image is the .rbinfo and the class file location.
"I followed the suggested solutions but still haven't made any progress. The problem appears to be related to the _MySize class, which is being extended. Unfortunately, there is no available documentation or instructions detailing the contents of this class. Additionally, the resource bundle is being compiled and generating the .ser file, as advised to place the bundle in the src directory during compilation."
Additionally, the article explaining how to implement the dropdown is unclear and insufficient for achieving the desired functionality.
Hi @DA_11031933
The article is clear.
If you do not understand the general customization and how to generate the _MyClass.java then you have to study how to work with an annotation generation.
From an IDE you have to set the IDE environment to be able to use the annotation generation.
If you define the MyClass.java with @GenAsEnumeratedType tag, then the _MyClass.java is automatically generated based on the annotation config.
Check following article CS173882 - Compile errors "GeneratedProperty cannot be resolved to a type"
Also check a customization guide page 77 Windchill 13.1.0.0 Customization Guide there is a description how to solve the issue with the extension _MyClass.class
PetrH
