content: package com.alibaba.smart.framework.engine.pvm.impl;
  
  import java.util.Map;
  
  import com.alibaba.smart.framework.engine.behavior.ActivityBehavior;
  import com.alibaba.smart.framework.engine.common.util.MapUtil;
  import com.alibaba.smart.framework.engine.model.assembly.Activity;
  import com.alibaba.smart.framework.engine.pvm.PvmActivity;
  import com.alibaba.smart.framework.engine.pvm.PvmTransition;
  
  import lombok.Data;
  import lombok.EqualsAndHashCode;
  
  /**
   * @author 高海军 帝奇  2016.11.11
   * @author ettear 2016.04.13
   */
  @Data
  @EqualsAndHashCode(callSuper = true)
  public abstract class AbstractPvmActivity extends AbstractPvmElement<Activity> implements PvmActivity {
  
      private Map<String, PvmTransition> incomeTransitions = MapUtil.newLinkedHashMap();
      private Map<String, PvmTransition> outcomeTransitions =  MapUtil.newLinkedHashMap();
  
      private ActivityBehavior behavior;
  
  
      public void addIncomeTransition(String transitionId, PvmTransition income) {
          this.incomeTransitions.put(transitionId, income);
      }
  
      public void addOutcomeTransition(String transitionId, PvmTransition outcome) {
          this.outcomeTransitions.put(transitionId, outcome);
      }
  }
  