public CmmnActivity createActivity(String activityId) {
    CmmnActivity activity = new CmmnActivity(activityId, caseDefinition);
    if (activityId!=null) {
      namedActivities.put(activityId, activity);
    }
    activity.setParent(this);
    activities.add(activity);
    return activity;
  }
public CmmnActivity createActivity ( String activityId ) { CmmnActivity activity = new CmmnActivity ( activityId , caseDefinition ) ; if ( activityId != null ) { namedActivities . put ( activityId , activity ) ; } activity . setParent ( this ) ; activities . add ( activity ) ; return activity ; }
create a new activity ///////////////////////////////////////