How to update the data type of process variable ?

cancel
Showing results for 
Search instead for 
Did you mean: 
ssj30896
Member II

How to update the data type of process variable ?

Hi,

A process diagram is configured with variables defined.

Earlier Task due date varible was configured as fixed  duration after task creation which used to take system date and variable configured as string data type.But now i want to change data type to date & calculate it based on field value.

I have updated the data type as date in process diagram.

Now I am trying to create a new process via Process Instance api but while passing my json string with type date still it gets stored as string and returns string as response.

I want my task due date based on field date value which is user input from text box.

A listner is configured on task creation which gets task duedate from DelegateTask object which get task due date in incorrect date uin IST format with year 0009.

How do i change the data type of my process variable from string to date?

2 Replies
amruta_w
Senior Member

Re: How to update the data type of process variable ?

You already have listener, so get the date value in variable and then cast type date in your listener. 

abbask01
Senior Member

Re: How to update the data type of process variable ?

not clear on your question. task due date takes a string (form of date), you just need to format your date to ISO8601 format.

Regards,
Abbas