Skip to main content
4-Participant
April 15, 2025
Question

Drop Down list within workflow task variable.

  • April 15, 2025
  • 1 reply
  • 1592 views
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.0

The instructions in Article CS36017 do not work as expected. Using this article as a reference, I need to address a similar issue by creating a workflow variable that utilizes my custom class as its data type. This variable should display a predefined set of roles as dropdown values, allowing it to be used as a participant in another activity.
For example, Activity 1 which has the variable "Role_of_activity_2" which user will select the role for next activity (Activity 2).

    1 reply

    HelesicPetr
    22-Sapphire II
    22-Sapphire II
    April 15, 2025

    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

    4-Participant
    April 15, 2025

    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.

     

    HelesicPetr
    22-Sapphire II
    22-Sapphire II
    April 15, 2025

    Hi @DA_11031933 

    The ser file is generated after ant compilation

    • ant -f bin/tools.xml bundle_custom
    • ant -f codebase/MakeJar.xml custUpdate

    If the workflow editor can not find your class then you did not place the class to a correct place.

    PetrH