Skip to main content
Level 2
Apr 5, 2023 6:57 AM UTC
Solved

How to determine if any task is running within a workflow

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.
Marcel_Szimonisz
Marcel_SzimoniszAccepted solution
Community Advisor
Apr 5, 2023 9:16 AM UTC

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

 

7 replies

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
Apr 5, 2023 9:16 AM UTC

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

 

Translate
dgangulyAuthor
Level 2
Apr 5, 2023 2:12 PM UTC

Hi @marcel_szimonisz,

 

Thanks a lot...

Which table to query to get the PID?

 

Regards,

DG

Translate
Marcel_Szimonisz
Community Advisor
Community Advisor
Apr 5, 2023 6:01 PM UTC

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/

Translate