Java ExternalTaskClient.isActive() not work properly

I create two spring boot projects for testing external task client.

Process Engine Spring Boot Application

  1. Create a simple bpmn just have one service task, and define it as external.
  2. Create a controller to create a process instance

External Task Client Spring Boot Application

  1. Create a Bean Configuration for creating ExternalTaskClient
  2. Create a controller to call ExternalTaskClient’s stop, start, isActive methods to control ExternalTaskClient running status.

Through calling stop, start. I can manage to stop and start ExternalTaskClient whether to fetch tasks. But when I call isActive() method, it always return true, and ExternalTaskClient begin to fetch tasks.

Is it working as the original design? If I like to stop and start ExternalTaskClient and check what status it is, which method should I call? Thanks for your help.

George

Hi George

Could you please confirm if you are using external client supported by us? Here is the link for the same: https://github.com/camunda/camunda-external-task-client-java

In yes, then you should be able to use isActive() in order to check the status of external client. I just checked and it works for me.

Best regards,
Garima

1 Like

Hi Garima,

I check it again, and as you said, it’s working. Thanks for your help.

George

1 Like

Hi @George_Tang

I am glad it is working for you :slight_smile:

Best
Garima