Package org.activiti.engine.impl.persistence.entity

Examples of org.activiti.engine.impl.persistence.entity.SignalEventSubscriptionEntity


         
          MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity();
          messageEventSubscriptionEntity2.setEventName("messageName");
          messageEventSubscriptionEntity2.insert();
         
          SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity();
          signalEventSubscriptionEntity3.setEventName("messageName2");
          signalEventSubscriptionEntity3.insert();
         
          return null;
        }
      });
   
View Full Code Here


          MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity();
          messageEventSubscriptionEntity2.setEventName("messageName");
          messageEventSubscriptionEntity2.setActivityId("someActivity");
          messageEventSubscriptionEntity2.insert();
         
          SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity();
          signalEventSubscriptionEntity3.setEventName("messageName2");
          signalEventSubscriptionEntity3.setActivityId("someOtherActivity");
          signalEventSubscriptionEntity3.insert();
         
          return null;
        }
      });
   
View Full Code Here

  public EventSubscriptionEntity prepareEventSubscriptionEntity(ExecutionEntity execution) {
    EventSubscriptionEntity eventSubscriptionEntity = null;
    if(eventType.equals("message")) {
      eventSubscriptionEntity = new MessageEventSubscriptionEntity(execution);
    }else  if(eventType.equals("signal")) {
      eventSubscriptionEntity = new SignalEventSubscriptionEntity(execution);
    }else {
      throw new ActivitiIllegalArgumentException("Found event definition of unknown type: "+eventType);
    }
   
    eventSubscriptionEntity.setEventName(eventName);
View Full Code Here

     List<EventSubscriptionDeclaration> eventDefinitions = (List<EventSubscriptionDeclaration>) processDefinition.getProperty(BpmnParse.PROPERTYNAME_EVENT_SUBSCRIPTION_DECLARATION);
     if(eventDefinitions != null) {    
       for (EventSubscriptionDeclaration eventDefinition : eventDefinitions) {
         if(eventDefinition.getEventType().equals("signal") && eventDefinition.isStartEvent()) {
          
           SignalEventSubscriptionEntity subscriptionEntity = new SignalEventSubscriptionEntity();
           subscriptionEntity.setEventName(eventDefinition.getEventName());
           subscriptionEntity.setActivityId(eventDefinition.getActivityId());
           subscriptionEntity.setProcessDefinitionId(processDefinition.getId());
           if (processDefinition.getTenantId() != null) {
             subscriptionEntity.setTenantId(processDefinition.getTenantId());
           }
           subscriptionEntity.insert();
          
         }  
       }
     }     
  }
View Full Code Here

         
          MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity();
          messageEventSubscriptionEntity2.setEventName("messageName");
          messageEventSubscriptionEntity2.insert();
         
          SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity();
          signalEventSubscriptionEntity3.setEventName("messageName2");
          signalEventSubscriptionEntity3.insert();
         
          return null;
        }
      });
   
View Full Code Here

          MessageEventSubscriptionEntity messageEventSubscriptionEntity2 = new MessageEventSubscriptionEntity();
          messageEventSubscriptionEntity2.setEventName("messageName");
          messageEventSubscriptionEntity2.setActivityId("someActivity");
          messageEventSubscriptionEntity2.insert();
         
          SignalEventSubscriptionEntity signalEventSubscriptionEntity3 = new SignalEventSubscriptionEntity();
          signalEventSubscriptionEntity3.setEventName("messageName2");
          signalEventSubscriptionEntity3.setActivityId("someOtherActivity");
          signalEventSubscriptionEntity3.insert();
         
          return null;
        }
      });
   
View Full Code Here

  public EventSubscriptionEntity prepareEventSubscriptionEntity(ExecutionEntity execution) {
    EventSubscriptionEntity eventSubscriptionEntity = null;
    if(eventType.equals("message")) {
      eventSubscriptionEntity = new MessageEventSubscriptionEntity(execution);
    }else  if(eventType.equals("signal")) {
      eventSubscriptionEntity = new SignalEventSubscriptionEntity(execution);
    }else {
      throw new ActivitiException("Found event definition of unknown type: "+eventType);
    }
   
    eventSubscriptionEntity.setEventName(eventName);
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.persistence.entity.SignalEventSubscriptionEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.