docs: @Override
    protected String generateActivityInstanceId(String activityId) {
  
      if (activityId.equals(processDefinitionId)) {
        return processInstanceId;
  
      } else {
  
        String nextId = Context.getProcessEngineConfiguration().getIdGenerator().getNextId();
  
        String compositeId = activityId + ":" + nextId;
        if (compositeId.length() > 64) {
          return String.valueOf(nextId);
        } else {
          return compositeId;
        }
      }
    }