Skip to main content
12-Amethyst
November 10, 2025
Solved

Use Date Picker on UserTask (Workflow)

  • November 10, 2025
  • 2 replies
  • 470 views

Version: Windchill 13.0

 

Use Case: We have a customized Workflow that has a Date as variable (actually, I would prefer a date like LocalDate for the user, but Windchill is still proposing the java.date.Date). I would like that a user can set the date during a User Task.


Description:

The variable is shown a a text, without any format hint for the user, and the conversion to Timestamp depends on the timezone of the user (if the String is not completely filled) ...
How could we provide a date picker as input instead of a input text ?

lmouchard_0-1762792106870.png

 

Best answer by HelesicPetr

Hi @lmouchard 

There is no clear way how to achieve it without customization. 

There is a restriction of the usage for the variable definition there and one of them is the java.sql.Timestamp you have to work with that information and find different way how to achieve what you want. 

PetrH

2 replies

lmouchard12-AmethystAuthor
12-Amethyst
November 10, 2025

When trying to define a variable as Timestamp (similar to PTC's variables), I get the following error from the Workflow Designer.

lmouchard_0-1762792735640.png

 

HelesicPetr
22-Sapphire II
22-Sapphire II
November 11, 2025

Hi @lmouchard 

The Windchill does not provide easy way how to provide the date picker in the workflow task page. 

I found only option to provide a enumeration drop down list. CS36017 - How to create a drop down list in a workflow

Unfortunately there is no @GenAs annotation for the datetime. 

CS61279 - Creating a Date type variable does not provide a Calendar picker in Workflow task

 

In your case, I would try to use own jsp custom template for the task a try to build own picker in the jsp page. 

CS133197 - How to customize a specific workflow task form

 

or use different way how to set the date. For example add a function to the action menu with own wizard where is much easier to use the date picker.

 

PetrH

PetrH
lmouchard12-AmethystAuthor
12-Amethyst
November 11, 2025

Hello @HelesicPetr, thanks for your searches. 

It would have been a convenient way for the users but do not want to customize so much. I guess they 'll have to go on related part themselves and set the attribute from there.

I am wondering whether the use of Timestamp (instead of Date) could help  (as PTC uses such variables in Workflow activities. The Workflow Designer does not allow to define a new variable of this type.

HelesicPetr
22-Sapphire II
22-Sapphire II
November 11, 2025

Hi @lmouchard 

There is no clear way how to achieve it without customization. 

There is a restriction of the usage for the variable definition there and one of them is the java.sql.Timestamp you have to work with that information and find different way how to achieve what you want. 

PetrH

PetrH