本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例4: getIoSpecification
import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public IOSpecification getIoSpecification() {
return ioSpecification;
}
示例5: setIoSpecification
import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
this.ioSpecification = ioSpecification;
}
示例6: getIoSpecification
import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public IOSpecification getIoSpecification() {
return ioSpecification;
}
示例7: setIoSpecification
import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
this.ioSpecification = ioSpecification;
}
示例8: setIoSpecification
import org.activiti.engine.impl.bpmn.data.IOSpecification; //导入依赖的package包/类
public void setIoSpecification(IOSpecification ioSpecification) {
this.ioSpecification = ioSpecification;
}
示例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;
}
示例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);
}
}