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.
In connector implementation class you have access to all API methods. In executeBusinessLogic method just use apiAccessor object:
BusinessDataAPI bdsAPI = apiAccessor.getBusinessDataAPI();
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?