Selecting the Activity's name from the DelegateExecution could be a convenience method

Description

As discussed. For instance in a ExecutionListener for a ServiceTask this is now required:

public void notify(final DelegateExecution execution) throws Exception {
String activityName = "Unknown";
if (execution instanceof ExecutionEntity) {
final ExecutionEntity executionEntity = (ExecutionEntity) execution;
activityName = (String) executionEntity.getActivity().getProperty("name");
}
}

It would be useful to be able to get the Activity's name directly from the DelegateExecution or Activity and get an empty String if there is none (null-safe).

Assignee

Tijs Rademakers

Reporter

Tiese Barrell

Labels

None

Components

Fix versions

Priority

Trivial
Configure