當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。