Get activityInstanceId to use in custom connector

1
0
-1

Hi,

I need to get de activityInstanceId to use in a Custom Connector. For that, I create a process variable with default value a groovy script with "activityInstanceId". That process variable is used to input of my own connector. When I get de value of activityInstanceId returns -1. Can someone help me?

Here is the print of Process Variable

Here is the print of Custom Connector

Thanks,

Diana

1 answer

1
0
-1
This one is the BEST answer!

The best way to achieve this is to use the `getExecutionContext().getActivityInstanceId()` method in your connector class (inherited from AbstractConnector)

HTH
Romain

Notifications