Package lineage2.gameserver.model.entity

Examples of lineage2.gameserver.model.entity.BlockCheckerEngine$StartEvent


    public boolean handle(FlowElement element, PathContextManager manager) {
        SubProcess subProcess = ((SubProcess) element);
       
        // process internal nodes of the sub process
        List<FlowElement> sbElements = subProcess.getFlowElements();
        StartEvent start = null;
        for (FlowElement sbElement : sbElements) {
            if (sbElement instanceof StartEvent) {
                start = (StartEvent) sbElement;
                break;
            }
View Full Code Here


            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.START_EVENT: {
            StartEvent startEvent = (StartEvent) theEObject;
            T result = caseStartEvent(startEvent);
            if (result == null)
                result = caseCatchEvent(startEvent);
            if (result == null)
                result = caseEvent(startEvent);
View Full Code Here

  private String startEventToSVG(BPMNShape bpmnShape) {
   
   
   
    if (getBaseElement(bpmnShape.getBpmnElement()) instanceof StartEvent) {
      StartEvent startEvent=(StartEvent)getBaseElement(bpmnShape.getBpmnElement());
     
      for (EventDefinition eventDefinition : startEvent.getEventDefinitions()) {
        if(eventDefinition instanceof TimerEventDefinition){
          return CommonNodeToSVG(bpmnShape, new SvgStartTimerEventTo());
        }
      }
     
View Full Code Here

   * 获取空开始事件
   *
   * @return
   */
  public StartEvent getNoneStartEvent() {
    StartEvent noneStartEvent;

    for (FlowElement flowElement : this.getFlowElements()) {
      if (flowElement instanceof StartEventBehavior) {
        noneStartEvent = (StartEventBehavior) flowElement;
        StartEventBehavior startEventBehavior = (StartEventBehavior) flowElement;
View Full Code Here

   * 获取定时开始事件
   *
   * @return
   */
  public StartEvent getTimeStartEvent(String nodeId) {
    StartEvent timeStartEvent;

    for (FlowElement flowElement : this.getFlowElements()) {
      if (flowElement instanceof StartEventBehavior) {
        timeStartEvent = (StartEventBehavior) flowElement;
        StartEventBehavior startEventBehavior = (StartEventBehavior) flowElement;
        List<EventDefinition> eventDefinitions = startEventBehavior.getEventDefinitions();
        for (EventDefinition eventDefinition : eventDefinitions) {
          if (eventDefinition instanceof TimerEventDefinition) {
            if (nodeId == null || nodeId.equals("")) {
              return timeStartEvent;
            } else {
              if (timeStartEvent.getId().equals(nodeId)) {
                return timeStartEvent;
              }
            }

          }
View Full Code Here

     
    }
    */
    TokenEntity token=new TokenEntity(executionContext.getToken(), this.name);
    token.setSubProcessRootToken(true);
    StartEvent startEvent=(StartEvent)getStartElement();
    ExecutionContext executionContextSub=ProcessObjectFactory.FACTORYINSTANCE.createExecutionContext(token);
    startEvent.enter(executionContextSub);
   
   
  }
View Full Code Here

    StartEventBehavior startEvent = (StartEventBehavior) flowElement;
    setPropertyValue(PROPERTY_START_EVENT_ISPERSISTENCE, StringUtil.getString(startEvent.isPersistence()), propertiesNode);
  }
 
  protected FlowElement convertJsonToElement(JsonNode elementNode,JsonNode modelNode, Map<String, JsonNode> shapeMap) {
    StartEvent startEvent = Bpmn2Factory.eINSTANCE.createStartEvent();
    String stencilId = BpmnJsonConverterUtil.getStencilId(elementNode);
    if (STENCIL_EVENT_START_NONE.equals(stencilId)) {
      boolean isPersistence = true;
      JsonNode isPersistenceNode = BpmnJsonConverterUtil.getProperty(PROPERTY_START_EVENT_ISPERSISTENCE, elementNode);
      if (isPersistenceNode != null) {
View Full Code Here

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
                nodeProperties.put("node.type", "IntermediateThrowEvent:"+eventDef);
            } else if (flowElement instanceof StartEvent) {
                StartEvent boundaryEvent = (StartEvent) flowElement;
                List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
                String eventDef = "";

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
                nodeProperties.put("node.type", "StartEvent:"+eventDef);
            } else if (flowElement instanceof EndEvent) {
                EndEvent boundaryEvent = (EndEvent) flowElement;
                List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
                String eventDef = "";

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
View Full Code Here

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
                nodeProperties.put("node.type", "IntermediateThrowEvent:"+eventDef);
            } else if (flowElement instanceof StartEvent) {
                StartEvent boundaryEvent = (StartEvent) flowElement;
                List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
                String eventDef = "";

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
                nodeProperties.put("node.type", "StartEvent:"+eventDef);
            } else if (flowElement instanceof EndEvent) {
                EndEvent boundaryEvent = (EndEvent) flowElement;
                List<EventDefinition> defs = boundaryEvent.getEventDefinitions();
                String eventDef = "";

                if (defs != null && defs.size() > 0) {
                    eventDef = getEventDefinitionAsString(defs.get(0));
                }
View Full Code Here

      super(fp, "Start Event", "Indicates the start of a process or choreography");
    }

    @Override
    protected Event createFlowElement(ICreateContext context) {
      StartEvent start = ModelHandler.FACTORY.createStartEvent();
      start.setName("Start");
      start.setIsInterrupting(true);
      return start;
    }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.BlockCheckerEngine$StartEvent

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.