public String buildActivitiIdString(String namespaceCd,String jobName){
  Map<String,String> pathToTokenValueMap=new HashMap<>();
  pathToTokenValueMap.put(getNamespaceToken(),namespaceCd);
  pathToTokenValueMap.put(getJobNameToken(),jobName);
  String activitiId=getActivitiJobDefinitionTemplate();
  for (  Map.Entry<String,String> mapEntry : pathToTokenValueMap.entrySet()) {
    activitiId=activitiId.replaceAll(mapEntry.getKey(),mapEntry.getValue());
  }
  return activitiId;
}

public String buildActivitiIdString ( String namespaceCd , String jobName ) { Map < String , String > pathToTokenValueMap = new HashMap < > ( ) ; pathToTokenValueMap . put ( getNamespaceToken ( ) , namespaceCd ) ; pathToTokenValueMap . put ( getJobNameToken ( ) , jobName ) ; String activitiId = getActivitiJobDefinitionTemplate ( ) ; for ( Map . Entry < String , String > mapEntry : pathToTokenValueMap . entrySet ( ) ) { activitiId = activitiId . replaceAll ( mapEntry . getKey ( ) , mapEntry . getValue ( ) ) ; } return activitiId ; }
returns activiti id constructed according to the template defined .
