Issue
The "catalog task" workflow activity does not finish execution even after the catalog task generated from the activity is closed.
Release
Madrid
Cause
"TaskStateUtil" script include is customized.
From Madrid, A new function (canRunParentWF) is added to "TaskStateUtil" script include, The closing of the task depends on the business rules "SNC - Run parent workflows", this business rule has a condition "new TaskStateUtil().canRunParentWF(current)"
canRunParentWF : function(current) {
return (current.state.changesTo(3) || current.state.changesTo(4) || current.state.changesTo(7) || current.operation() == 'delete' || (pm.isActive('com.snc.best_practice.problem.madrid.state_model') && current.getRecordClassName() == 'problem' && current.state.changesTo(ProblemState.STATES.CLOSED)));
}
This method is missing on customized "TaskStateUtil" script include
Resolution
Revert the script include "TaskStateUtil" to out of the box or include the above function on the customized script include "TaskStateUtil".