org.activiti.bpmn.model.Activity.getDefaultFlow()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中org.activiti.bpmn.model.Activity.getDefaultFlow()方法的一些代码示例,展示了Activity.getDefaultFlow()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Activity.getDefaultFlow()方法的具体详情如下:
包路径:org.activiti.bpmn.model.Activity
类名称:Activity
方法名:getDefaultFlow

Activity.getDefaultFlow介绍

暂无

代码示例

代码示例来源:origin: Activiti/Activiti

} else if (sourceFlowElement instanceof Activity) {
 Activity parentActivity = (Activity) sourceFlowElement;
 defaultFlowId = parentActivity.getDefaultFlow();

代码示例来源:origin: Activiti/Activiti

defaultSequenceFlowId = ((Activity) flowNode).getDefaultFlow();
} else if (flowNode instanceof Gateway) {
  defaultSequenceFlowId = ((Gateway) flowNode).getDefaultFlow();

代码示例来源:origin: Activiti/Activiti

writeDefaultAttribute(ATTRIBUTE_ACTIVITY_ISFORCOMPENSATION, ATTRIBUTE_VALUE_TRUE, xtw);
if (StringUtils.isNotEmpty(activity.getDefaultFlow())) {
 FlowElement defaultFlowElement = model.getFlowElement(activity.getDefaultFlow());
 if (defaultFlowElement instanceof SequenceFlow) {
  writeDefaultAttribute(ATTRIBUTE_DEFAULT, activity.getDefaultFlow(), xtw);

代码示例来源:origin: Activiti/Activiti

String defaultFlow = null;
if (flowNode instanceof Activity) {
  defaultFlow = ((Activity) flowNode).getDefaultFlow();
} else if (flowNode instanceof Gateway) {
  defaultFlow = ((Gateway) flowNode).getDefaultFlow();

代码示例来源:origin: bill1012/AdminEAP

String defaultFlow = null;
if (flowNode instanceof Activity) {
  defaultFlow = ((Activity) flowNode).getDefaultFlow();
} else if (flowNode instanceof Gateway) {
  defaultFlow = ((Gateway) flowNode).getDefaultFlow();

代码示例来源:origin: org.activiti/activiti-json-converter

} else if (sourceFlowElement instanceof Activity) {
 Activity parentActivity = (Activity) sourceFlowElement;
 defaultFlowId = parentActivity.getDefaultFlow();

代码示例来源:origin: org.activiti/activiti-engine

defaultSequenceFlowId = ((Activity) flowNode).getDefaultFlow();
} else if (flowNode instanceof Gateway) {
 defaultSequenceFlowId = ((Gateway) flowNode).getDefaultFlow();

代码示例来源:origin: org.activiti/activiti-bpmn-converter

writeDefaultAttribute(ATTRIBUTE_ACTIVITY_ISFORCOMPENSATION, ATTRIBUTE_VALUE_TRUE, xtw);
if (StringUtils.isNotEmpty(activity.getDefaultFlow())) {
 FlowElement defaultFlowElement = model.getFlowElement(activity.getDefaultFlow());
 if (defaultFlowElement instanceof SequenceFlow) {
  writeDefaultAttribute(ATTRIBUTE_DEFAULT, activity.getDefaultFlow(), xtw);

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter

writeQualifiedAttribute(ATTRIBUTE_ACTIVITY_EXCLUSIVE, ATTRIBUTE_VALUE_FALSE, xtw);
writeDefaultAttribute(ATTRIBUTE_DEFAULT, activity.getDefaultFlow(), xtw);

代码示例来源:origin: com.bbossgroups.activiti/activiti-engine

public ActivityImpl createActivityOnScope(BpmnParse bpmnParse, FlowElement flowElement, String xmlLocalName, ScopeImpl scopeElement) {
 if (LOGGER.isDebugEnabled()) {
  LOGGER.debug("Parsing activity {}", flowElement.getId());
 }
 
 ActivityImpl activity = scopeElement.createActivity(flowElement.getId());
 bpmnParse.setCurrentActivity(activity);
 activity.setProperty("name", flowElement.getName());
 activity.setProperty("documentation", flowElement.getDocumentation());
 if (flowElement instanceof Activity) {
  Activity modelActivity = (Activity) flowElement;
  activity.setProperty("default", modelActivity.getDefaultFlow());
  if(modelActivity.isForCompensation()) {
   activity.setProperty(PROPERTYNAME_IS_FOR_COMPENSATION, true);        
  }
 } else if (flowElement instanceof Gateway) {
  activity.setProperty("default", ((Gateway) flowElement).getDefaultFlow());
 }
 activity.setProperty("type", xmlLocalName);
 
 return activity;
}

相关文章