Skip to main content
1-Visitor
August 29, 2013
Solved

Drop Down on the Task Page of an Activity

  • August 29, 2013
  • 1 reply
  • 6199 views

Hi ,

I have a requirement:-

In a workflow for a particular activity , when a user recieves the task , user should see two attributes 1. Company 2. Country in the task page.

Also the input for the attributes should ONLY be a drop down list.

In the Workflow template , i have created two variables in the activity of type name : wt.org.WTUser to achieve the drop down but this only gives the names of users in the Windchill system in the drop down list.

Please suggest. Please refer the screenshot attached.

Thanks

Ishaan

Best answer by ptc-5091742

Hello Lori ,

I have created a custom class . Now when i try to put the name of my custom class after other class option , it gives a error which says : Only evolvable or persistable classes can be made as a type of variable in a workflow.

Error.png

Does that mean i have to make the values persistable using persistence helper in my class?

or anything else?

Thanks

Ishaan Nayyar

1 reply

23-Emerald II
September 6, 2013

The wt.org.WTUser type will only display user information in the pull-down list. From what I've been able to determine the CustomVariablesDataUtility.java is the data utility class used to render workflow variables on a task's page. The class checks for the variable type and if it is Enumerated type (i.e. extends the EnumeratedType class) then it renders the variable as a drop-down list. You will probably need to create a custom class that will extend EnumeratedType and specify the class as the task variable.

12-Amethyst
September 9, 2013

Hi Lori Lee Sood,

About your solution I have one question.

How will I specify my own extended Class as workflow variable ??

Cause I can only specify some predefined windchill class and only those classes which implements Persistable and Evolable as workflow variable.

Thanks and Regards,

Kaushik

23-Emerald II
September 10, 2013

Hi Kaushik,

In my Type Name drop-down list I have the option to select Other Class... and then I can specify a different class other than those listed. Do you not have this same option?

workflow_variable.png