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.


1 answer


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

Best regards,


Submitted by anafziger_2 on Wed, 10/19/2016 - 20:53

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?

Submitted by contact_420 on Thu, 10/20/2016 - 22:06