How to determine if any task is running within a workflow | Community
Skip to main content
Level 2
April 5, 2023
Solved

How to determine if any task is running within a workflow

  • April 5, 2023
  • 1 reply
  • 1514 views

Hi All,

 

I have a complicated workflow, which starts with an external signal. The Workflow has multiple end points and Jumps.

 

We need to determine, if any activity is running when the External Signal receives a call, if already aby activity within the workflow is already running, then we need to wait, till all the activities and completed and process the record.

 

Using isRunning, as there are multiple end points, multiple combinations to reset the variable exist, which is throwing of the purpose of that. Is there any other way to determine the running of tasks for this purpose

 

Regards,

DG

 

 

 

 

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 Marcel_Szimonisz

Hello @dganguly ,

you can take a look at the field @processDate that will tell you the last processed time

Also if you have field on workflow table called process @processId which only has number greater than zero if the worklfow is actually running.

workflow running (idle) with external signal

Worklfow actually running

 

 

Visually you can see if worklfow is running by seeing cog above the activity currently being processed.

 

 

Marcel

 

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
April 5, 2023

Hello @dganguly ,

you can take a look at the field @processDate that will tell you the last processed time

Also if you have field on workflow table called process @processId which only has number greater than zero if the worklfow is actually running.

workflow running (idle) with external signal

Worklfow actually running

 

 

Visually you can see if worklfow is running by seeing cog above the activity currently being processed.

 

 

Marcel

 

dgangulyAuthor
Level 2
April 5, 2023

Hi @marcel_szimonisz,

 

Thanks a lot...

Which table to query to get the PID?

 

Regards,

DG

Marcel_Szimonisz
Community Advisor
Community Advisor
April 5, 2023

Hello @dganguly 

workflow table im running version 9359 application server. You might not have it perhaps you can try to find field that does similar

 

 

 

Marcel Szimonisz

MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/