09-19-2019 10:12 AM
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?
10-04-2019 07:47 AM
You already have listener, so get the date value in variable and then cast type date in your listener.
10-04-2019 09:30 AM
not clear on your question. task due date takes a string (form of date), you just need to format your date to ISO8601 format.
Explore our Alfresco products with the links below. Use labels to filter content by product module.