cleanupPausedWorkflows | Community
Skip to main content
Level 2
October 31, 2018
Solved

cleanupPausedWorkflows

  • October 31, 2018
  • 2 replies
  • 2154 views

Hi all,

I am looking at the OOTB workflow (cleanupPausedWorkflows)  and when i look at the last Java Script activity which is Notify Supervisors of Paused workflow, the var is defined as below.

In this does anyone has any idea what does instance.vars.checkDelay represents here and from where this checkDelay value is coming ?

var workflows = cnx.query("(SELECT O.iOperatorId, W.iId, W.sInternalName, W.sLabel, (4-W.iUnlockedCount)*" + instance.vars.checkDelay + ", W.iWorkflowEventLastProcessing FROM " + vars.tableName + " W JOIN XtkWorkflow Wk ON (W.iId = Wk.iWorkflowId)" +

                                            " JOIN XtkOperatorGroup G ON (G.iGroupId = Wk.iSupervisorId)" +

                                            " JOIN XtkOperator O  ON (O.iType = 0 AND G.iOperatorId = O.iOperatorId))" +

                          " UNION " +

                          "(SELECT O.iOperatorId, W.iId, W.sInternalName, W.sLabel, (4-W.iUnlockedCount)*" + instance.vars.checkDelay + ", W.iWorkflowEventLastProcessing FROM " + vars.tableName + " W JOIN XtkWorkflow Wk ON (W.iId = Wk.iWorkflowId)" +

                                            " JOIN XtkOperator O  ON (O.iType = 0 AND (O.iOperatorId = Wk.iCreatedById OR O.iOperatorId = Wk.iModifiedById)))" +

                          " ORDER BY 1, 5")

Regards,

Ankit

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ankitkochar

Hi Pablo,

Actually I have figured it out lately, this variable was declared in workflow properties as below

<variables checkDelay="7" checkDelay-type="number"/>

Regards,

Ankit

2 replies

pablo_rosero1
Level 9
December 3, 2018

Hi Ankit,

Great question! I'm unsure about this one. I suppose it counts how long the workflow has been delayed/paused.

Is this impeding your work?

All the best,

Pablo

ankitkocharAuthorAccepted solution
Level 2
December 5, 2018

Hi Pablo,

Actually I have figured it out lately, this variable was declared in workflow properties as below

<variables checkDelay="7" checkDelay-type="number"/>

Regards,

Ankit