Is it possible to access the activityInstanceId and bdm DAO objects from a connector?

I have a connector that I wish to use to leverage the BDM / DAO object to update the underlying table data, and I need to include the activityInstanceId in this.

Can this be done in the underlying java implementation class? If so, how? i.e. what do I need to reference and access to bring that into my connector class?

Otherwise, I will need to pass in the activityInstanceId on the call to the connector and then use JNDI or some other database access layer.

Thanks

In connector implementation class you have access to all API methods. In executeBusinessLogic method just use apiAccessor object:
BusinessDataAPI bdsAPI = apiAccessor.getBusinessDataAPI();

Best regards,
bpms.help

Thanks - I noticed that when I go to use the BusinessDataAPI, it’s giving a warning that it’s deprecated. Is there a newer recommended alternative to this?

Yes, there is. Take a look at this page: http://documentation.bonitasoft.com/javadoc/api/7.3/deprecated-list.html

Best regards,
bpms.help