Notifications

74 views

Description

Symptoms


"catalog task" workflow activity do not finish execution even after the 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)" 

[code]<pre><code>canRunParentWF : function(current) { <br/>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') &amp;&amp; current.getRecordClassName() == 'problem' &amp;&amp; current.state.changesTo(ProblemState.STATES.CLOSED))); <br/>}, <br/></code></pre>[/code]

This method is missing on customized "TaskStateUtil" script include

Resolution


Revert the script include "TaskStateUtil" to out of box or include above function on the customized the script include "TaskStateUtil".

 

Article Information

Last Updated:2019-08-02 20:41:22
Published:2019-06-12