當前位置: 首頁>>代碼示例>>Java>>正文


Java CancelEndEventActivityBehavior類代碼示例

本文整理匯總了Java中org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior的典型用法代碼示例。如果您正苦於以下問題:Java CancelEndEventActivityBehavior類的具體用法?Java CancelEndEventActivityBehavior怎麽用?Java CancelEndEventActivityBehavior使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CancelEndEventActivityBehavior類屬於org.activiti.engine.impl.bpmn.behavior包,在下文中一共展示了CancelEndEventActivityBehavior類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: parseEndEvents

import org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior; //導入依賴的package包/類
/**
 * Parses the end events of a certain level in the process (process,
 * subprocess or another scope).
 * 
 * @param parentElement
 *          The 'parent' element that contains the end events (process,
 *          subprocess).
 * @param scope
 *          The {@link ScopeImpl} to which the end events must be added.
 */
public void parseEndEvents(Element parentElement, ScopeImpl scope) {
  for (Element endEventElement : parentElement.elements("endEvent")) {
    ActivityImpl activity = createActivityOnScope(endEventElement, scope);

    Element errorEventDefinition = endEventElement.element("errorEventDefinition");
    Element cancelEventDefinition = endEventElement.element("cancelEventDefinition");
    if (errorEventDefinition != null) { // error end event
      String errorRef = errorEventDefinition.attribute("errorRef");
      if (errorRef == null || "".equals(errorRef)) {
        addError("'errorRef' attribute is mandatory on error end event", errorEventDefinition);
      } else {
        Error error = errors.get(errorRef);
        activity.setProperty("type", "errorEndEvent");
        activity.setActivityBehavior(new ErrorEndEventActivityBehavior(error != null ? error.getErrorCode() : errorRef));
      }
    } else if (cancelEventDefinition != null) {
      if(scope.getProperty("type")==null || !scope.getProperty("type").equals("transaction")) {
        addError("end event with cancelEventDefinition only supported inside transaction subprocess", cancelEventDefinition);
      } else {
        activity.setProperty("type", "cancelEndEvent");   
        activity.setActivityBehavior(new CancelEndEventActivityBehavior());
      }        
    } else { // default: none end event
      activity.setActivityBehavior(new NoneEndEventActivityBehavior());
    }

    for (BpmnParseListener parseListener : parseListeners) {
      parseListener.parseEndEvent(endEventElement, scope, activity);
    }
  }
}
 
開發者ID:iotsap,項目名稱:FiWare-Template-Handler,代碼行數:42,代碼來源:BpmnParse.java

示例2: createCancelEndEventActivityBehavior

import org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior; //導入依賴的package包/類
@Override
public CancelEndEventActivityBehavior createCancelEndEventActivityBehavior(EndEvent endEvent) {
    return wrappedActivityBehaviorFactory.createCancelEndEventActivityBehavior(endEvent);
}
 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:5,代碼來源:TestActivityBehaviorFactory.java

示例3: createCancelEndEventActivityBehavior

import org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior; //導入依賴的package包/類
@Override
public CancelEndEventActivityBehavior createCancelEndEventActivityBehavior(EndEvent endEvent) {
    return new CancelEndEventActivityBehavior();
}
 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:5,代碼來源:DefaultActivityBehaviorFactory.java

示例4: createCancelEndEventActivityBehavior

import org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior; //導入依賴的package包/類
public CancelEndEventActivityBehavior createCancelEndEventActivityBehavior(EndEvent endEvent) {
  return new CancelEndEventActivityBehavior();
}
 
開發者ID:springvelocity,項目名稱:xbpm5,代碼行數:4,代碼來源:DefaultActivityBehaviorFactory.java

示例5: createCancelEndEventActivityBehavior

import org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior; //導入依賴的package包/類
public abstract CancelEndEventActivityBehavior createCancelEndEventActivityBehavior(EndEvent endEvent); 
開發者ID:flowable,項目名稱:flowable-engine,代碼行數:2,代碼來源:ActivityBehaviorFactory.java


注:本文中的org.activiti.engine.impl.bpmn.behavior.CancelEndEventActivityBehavior類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。