As explained in the section above Manual and User Tasks should always have a Duration specified.
Intermediate Timer Events require a Duration as well to be able to wait for the configured time and then move on with the Process flow.
Duration for Manual and User tasks can be static, as was explained before, but it can also be dynamic.
Intermediate Timer Events will always have a dynamic Duration configuration.
Dynamic Duration means that it can vary according to business conditions.
Dynamic Duration is set using a On Enter business rule of the selected shape. The expression used can be set in minutes or have a defined date.
•Duration in minutes: Me.Duration = x (minutes)
•Duration with a calculated date: Me.EstimatedSolutionDate = Date
If a Manual or User task have a dynamic Duration configured, the static duration will be ignored. The dynamic Duration will be the one taken into account for the Work Portal colors and the Analysis Reports.
DO NOT use the sentence Me.Case.getWorkItem(taskName).Duration or Me.Case.getWorkItem(taskName).EstimatedSolutionDate.
This sentences will not work.
View Set tasks and timers durations for an example of how to set dynamic Durations.