Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

cleanupPausedWorkflows

Avatar

Avatar
Validate 1
Level 3
ankitkochar
Level 3

Likes

17 likes

Total Posts

27 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
ankitkochar
Level 3

Likes

17 likes

Total Posts

27 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
ankitkochar
Level 3

31-10-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
ankitkochar
Level 3

Likes

17 likes

Total Posts

27 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
ankitkochar
Level 3

Likes

17 likes

Total Posts

27 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
ankitkochar
Level 3

05-12-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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Level 10
pablo_rosero1
Level 10

Likes

81 likes

Total Posts

348 posts

Correct Reply

77 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
pablo_rosero1
Level 10

03-12-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