Hello,
I’m having two different problems when working with task expiration:
-
Set task expiration based on a business field:
I’ve created an event rule to set the task expiration some minutes after the task is queued. It works properly when hardcoding the value of the “Minutes after start date” but it does not work if I specify a business field to obtain the value from. I’ve already checked that the field contains the desired value and also have tried with different field formats (int, long and string); in all the cases, the expiration date is just not set to any value. -
Set task to “expired” from a button action inside the task implementation:
Is there any option to do that without using the task engine webservices? I’m able to obtain a reference to the current task (getTaskInfo()), but I cannot see any way to modify its status. Even trying to set the expiration date to “now” (setExpireDate(new java.util.Date());) does not updates its status. I’m trying to do that inside the task implementation, so it seems that accessing the Task Engine webservices should not be needed.
Any suggestion about the two questions would be welcomed!