当前位置: 首页>>代码示例>>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;未经允许,请勿转载。