I was trying to get read CamundaProperty from extensionElements like below for all activities from the deployed bpmn model.
execution.getBpmnModelElementInstance()in taskListener(UserTask) returns instance of type UserTask.
execution.getBpmnModelElementInstance()returns in JavaDelegate( configured in ServiceTask & end Listener in EndEvent) returns instance of type FlowElement.
Why these differences in return type of the function
Each unique activities in the bpmn model will return different type of instances for
Is this return type differences of
getBpmnModelElementInstance()are depends only on JavaDelegates & TaskListeners implementation or it will differ for each activity in the bpmn model?