当前位置: 首页>>代码示例>>Java>>正文


Java IOSpecification类代码示例

本文整理汇总了Java中org.activiti.engine.impl.bpmn.data.IOSpecification的典型用法代码示例。如果您正苦于以下问题:Java IOSpecification类的具体用法?Java IOSpecification怎么用?Java IOSpecification使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IOSpecification类属于org.activiti.engine.impl.bpmn.data包,在下文中一共展示了IOSpecification类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: parseScope

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
/**
 * Parses a scope: a process, subprocess, etc.
 * 
 * Note that a process definition is a scope on itself.
 * 
 * @param scopeElement
 *          The XML element defining the scope
 * @param parentScope
 *          The scope that contains the nested scope.
 */
public void parseScope(Element scopeElement, ScopeImpl parentScope) {

  // Not yet supported on process level (PVM additions needed):
  // parseProperties(processElement);

  parseStartEvents(scopeElement, parentScope);
  parseActivities(scopeElement, parentScope);
  parseEndEvents(scopeElement, parentScope);
  parseBoundaryEvents(scopeElement, parentScope);
  parseSequenceFlow(scopeElement, parentScope);
  parseExecutionListenersOnScope(scopeElement, parentScope);

  IOSpecification ioSpecification = parseIOSpecification(scopeElement.element("ioSpecification"));
  parentScope.setIoSpecification(ioSpecification);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:26,代码来源:BpmnParse.java

示例2: parseScope

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
/**
 * Parses a scope: a process, subprocess, etc.
 * 
 * Note that a process definition is a scope on itself.
 * 
 * @param scopeElement
 *          The XML element defining the scope
 * @param parentScope
 *          The scope that contains the nested scope.
 */
public void parseScope(Element scopeElement, ScopeImpl parentScope) {

  // Not yet supported on process level (PVM additions needed):
  // parseProperties(processElement);
  
  HashMap<String, Element> postponedElements  = new HashMap<String, Element>();
  parseDataObject(scopeElement, parentScope);
  parseStartEvents(scopeElement, parentScope);
  parseActivities(scopeElement, parentScope, postponedElements);
  parsePostponedElements(scopeElement, parentScope, postponedElements);
  parseEndEvents(scopeElement, parentScope);
  parseBoundaryEvents(scopeElement, parentScope);
  parseSequenceFlow(scopeElement, parentScope);
  parseExecutionListenersOnScope(scopeElement, parentScope);
  parseAssociations(scopeElement, parentScope);
  
  postponedElements.clear();

  IOSpecification ioSpecification = parseIOSpecification(scopeElement.element("ioSpecification"));
  parentScope.setIoSpecification(ioSpecification);
  
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:33,代码来源:BpmnParse.java

示例3: executeParse

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
protected void executeParse(BpmnParse bpmnParse, SubProcess subProcess) {
  
  ActivityImpl activity = createActivityOnScope(bpmnParse, subProcess, BpmnXMLConstants.ELEMENT_SUBPROCESS, bpmnParse.getCurrentScope());
  
  activity.setAsync(subProcess.isAsynchronous());
  activity.setExclusive(!subProcess.isNotExclusive());

  boolean triggeredByEvent = false;
  if (subProcess instanceof EventSubProcess) {
    triggeredByEvent = true;
  }
  activity.setProperty("triggeredByEvent", triggeredByEvent);
  
  // event subprocesses are not scopes
  activity.setScope(!triggeredByEvent);
  activity.setActivityBehavior(bpmnParse.getActivityBehaviorFactory().createSubprocActivityBehavior(subProcess));
  
  bpmnParse.setCurrentScope(activity);
  bpmnParse.setCurrentSubProcess(subProcess);
  
  bpmnParse.processFlowElements(subProcess.getFlowElements());
  processArtifacts(bpmnParse, subProcess.getArtifacts(), activity);
  
  bpmnParse.removeCurrentScope();
  bpmnParse.removeCurrentSubProcess();
  
  if (subProcess.getIoSpecification() != null) {
    IOSpecification ioSpecification = createIOSpecification(bpmnParse, subProcess.getIoSpecification());
    activity.setIoSpecification(ioSpecification);
  }

}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:33,代码来源:SubProcessParseHandler.java

示例4: getIoSpecification

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public IOSpecification getIoSpecification() {
  return ioSpecification;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:4,代码来源:ScopeImpl.java

示例5: setIoSpecification

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
  this.ioSpecification = ioSpecification;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:4,代码来源:ScopeImpl.java

示例6: getIoSpecification

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public IOSpecification getIoSpecification() {
 return ioSpecification;
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:4,代码来源:ScopeImpl.java

示例7: setIoSpecification

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
 this.ioSpecification = ioSpecification;
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:4,代码来源:ScopeImpl.java

示例8: setIoSpecification

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
	this.ioSpecification = ioSpecification;
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:4,代码来源:TaskActivityBehavior.java

示例9: transformProcess

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
protected ProcessDefinitionEntity transformProcess(BpmnParse bpmnParse, Process process) {
  ProcessDefinitionEntity currentProcessDefinition = new ProcessDefinitionEntity();
  bpmnParse.setCurrentProcessDefinition(currentProcessDefinition);

  /*
   * Mapping object model - bpmn xml: processDefinition.id -> generated by
   * activiti engine processDefinition.key -> bpmn id (required)
   * processDefinition.name -> bpmn name (optional)
   */
  currentProcessDefinition.setKey(process.getId());
  currentProcessDefinition.setName(process.getName());
  currentProcessDefinition.setCategory(bpmnParse.getBpmnModel().getTargetNamespace());
  currentProcessDefinition.setDescription(process.getDocumentation()); 
  currentProcessDefinition.setProperty(PROPERTYNAME_DOCUMENTATION, process.getDocumentation()); // Kept for backwards compatibility. See ACT-1020
  currentProcessDefinition.setTaskDefinitions(new HashMap<String, TaskDefinition>());
  currentProcessDefinition.setDeploymentId(bpmnParse.getDeployment().getId());
  createExecutionListenersOnScope(bpmnParse, process.getExecutionListeners(), currentProcessDefinition);
  
  ExpressionManager expressionManager = bpmnParse.getExpressionManager();
  
  for (String candidateUser : process.getCandidateStarterUsers()) {
    currentProcessDefinition.addCandidateStarterUserIdExpression(expressionManager.createExpression(candidateUser));
  }
  
  for (String candidateGroup : process.getCandidateStarterGroups()) {
    currentProcessDefinition.addCandidateStarterGroupIdExpression(expressionManager.createExpression(candidateGroup));
  }

  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug("Parsing process {}", currentProcessDefinition.getKey());
  }
  
  bpmnParse.setCurrentScope(currentProcessDefinition);
  
  bpmnParse.processFlowElements(process.getFlowElements());
  processArtifacts(bpmnParse, process.getArtifacts(), currentProcessDefinition);
  
  bpmnParse.removeCurrentScope();
  
  if (process.getIoSpecification() != null) {
    IOSpecification ioSpecification = createIOSpecification(bpmnParse, process.getIoSpecification());
    currentProcessDefinition.setIoSpecification(ioSpecification);
  }
  return currentProcessDefinition;
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:46,代码来源:ProcessParseHandler.java

示例10: executeParse

import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
protected void executeParse(BpmnParse bpmnParse, Transaction transaction) {
  
  ActivityImpl activity = createActivityOnCurrentScope(bpmnParse, transaction, BpmnXMLConstants.ELEMENT_TRANSACTION);
  
  activity.setAsync(transaction.isAsynchronous());
  activity.setExclusive(!transaction.isNotExclusive());
  
  activity.setScope(true);
  activity.setActivityBehavior(bpmnParse.getActivityBehaviorFactory().createTransactionActivityBehavior(transaction));
  

  bpmnParse.setCurrentScope(activity);
  
  bpmnParse.processFlowElements(transaction.getFlowElements());
  processArtifacts(bpmnParse, transaction.getArtifacts(), activity);
  
  bpmnParse.removeCurrentScope();
  
  if (transaction.getIoSpecification() != null) {
    IOSpecification ioSpecification = createIOSpecification(bpmnParse, transaction.getIoSpecification());
    activity.setIoSpecification(ioSpecification);
  }

}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:25,代码来源:TransactionParseHandler.java


注:本文中的org.activiti.engine.impl.bpmn.data.IOSpecification类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。