コード例 #1
0
 public SMessageInstanceImpl(
     final SThrowMessageEventTriggerInstance throwMessageTrigger,
     final long processDefinitionId,
     final String flowNodeName) {
   messageName = throwMessageTrigger.getMessageName();
   targetProcess = throwMessageTrigger.getTargetProcess();
   targetFlowNode = throwMessageTrigger.getTargetFlowNode();
   this.processDefinitionId = processDefinitionId;
   this.flowNodeName = flowNodeName;
 }
 @Override
 public SThrowMessageEventTriggerInstanceBuilder createNewInstance(
     final SThrowMessageEventTriggerInstance sThrowMessageEventTriggerInstance) {
   final SThrowMessageEventTriggerInstanceImpl entity =
       new SThrowMessageEventTriggerInstanceImpl(
           sThrowMessageEventTriggerInstance.getEventInstanceId(),
           sThrowMessageEventTriggerInstance.getMessageName(),
           sThrowMessageEventTriggerInstance.getTargetProcess(),
           sThrowMessageEventTriggerInstance.getTargetFlowNode());
   entity.setId(entity.getId());
   return new SThrowMessageEventTriggerInstanceBuilderImpl(entity);
 }