本文整理了Java中org.activiti.bpmn.model.Process.getArtifacts()
方法的一些代码示例,展示了Process.getArtifacts()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Process.getArtifacts()
方法的具体详情如下:
包路径:org.activiti.bpmn.model.Process
类名称:Process
方法名:getArtifacts
暂无
代码示例来源:origin: Activiti/Activiti
protected static List<Artifact> gatherAllArtifacts(BpmnModel bpmnModel) {
List<Artifact> artifacts = new ArrayList<Artifact>();
for (Process process : bpmnModel.getProcesses()) {
artifacts.addAll(process.getArtifacts());
}
return artifacts;
}
代码示例来源:origin: Activiti/Activiti
newMainProcess.setId(subElement.getId());
newMainProcess.getFlowElements().addAll(subFlowElements);
newMainProcess.getArtifacts().addAll(((SubProcess)subElement).getArtifacts());
subModel.addProcess(newMainProcess);
代码示例来源:origin: Activiti/Activiti
for (Artifact artifact : process.getArtifacts()) {
createXML(artifact, model, xtw);
代码示例来源:origin: Activiti/Activiti
@Override
public void validate(BpmnModel bpmnModel, List<ValidationError> errors) {
// Global associations
Collection<Artifact> artifacts = bpmnModel.getGlobalArtifacts();
if (artifacts != null) {
for (Artifact artifact : artifacts) {
if (artifact instanceof Association) {
validate(null, (Association) artifact, errors);
}
}
}
// Process associations
for (Process process : bpmnModel.getProcesses()) {
artifacts = process.getArtifacts();
for (Artifact artifact : artifacts) {
if (artifact instanceof Association) {
validate(process, (Association) artifact, errors);
}
}
}
}
代码示例来源:origin: Activiti/Activiti
for (Artifact artifact : process.getArtifacts()) {
createXML(artifact, model, xtw);
代码示例来源:origin: Activiti/Activiti
protected ProcessDefinitionEntity transformProcess(BpmnParse bpmnParse, Process process) {
ProcessDefinitionEntity currentProcessDefinition = Context.getCommandContext().getProcessDefinitionEntityManager().create();
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.setDeploymentId(bpmnParse.getDeployment().getId());
if (bpmnParse.getDeployment().getEngineVersion() != null) {
currentProcessDefinition.setEngineVersion(bpmnParse.getDeployment().getEngineVersion());
}
createEventListeners(bpmnParse, process.getEventListeners());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Parsing process {}", currentProcessDefinition.getKey());
}
bpmnParse.processFlowElements(process.getFlowElements());
processArtifacts(bpmnParse, process.getArtifacts());
return currentProcessDefinition;
}
代码示例来源:origin: Activiti/Activiti
for (Artifact artifact : process.getArtifacts()) {
drawArtifact(processDiagramCanvas,
bpmnModel,
代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter
for (Artifact artifact : process.getArtifacts()) {
createXML(artifact, model, xtw);
代码示例来源:origin: org.activiti/activiti-bpmn-converter
newMainProcess.setId(subElement.getId());
newMainProcess.getFlowElements().addAll(subFlowElements);
newMainProcess.getArtifacts().addAll(((SubProcess)subElement).getArtifacts());
subModel.addProcess(newMainProcess);
代码示例来源:origin: org.activiti/activiti-bpmn-converter
for (Artifact artifact : process.getArtifacts()) {
createXML(artifact, model, xtw);
代码示例来源:origin: org.activiti/activiti-bpmn-converter
for (Artifact artifact : process.getArtifacts()) {
createXML(artifact, model, xtw);
代码示例来源:origin: org.activiti/activiti-process-validation
@Override
public void validate(BpmnModel bpmnModel, List<ValidationError> errors) {
// Global associations
Collection<Artifact> artifacts = bpmnModel.getGlobalArtifacts();
if (artifacts != null) {
for (Artifact artifact : artifacts) {
if (artifact instanceof Association) {
validate(null, (Association) artifact, errors);
}
}
}
// Process associations
for (Process process : bpmnModel.getProcesses()) {
artifacts = process.getArtifacts();
for (Artifact artifact : artifacts) {
if (artifact instanceof Association) {
validate(process, (Association) artifact, errors);
}
}
}
}
代码示例来源:origin: org.activiti/activiti-engine
protected ProcessDefinitionEntity transformProcess(BpmnParse bpmnParse, Process process) {
ProcessDefinitionEntity currentProcessDefinition = Context.getCommandContext().getProcessDefinitionEntityManager().create();
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.setDeploymentId(bpmnParse.getDeployment().getId());
if (bpmnParse.getDeployment().getEngineVersion() != null) {
currentProcessDefinition.setEngineVersion(bpmnParse.getDeployment().getEngineVersion());
}
createEventListeners(bpmnParse, process.getEventListeners());
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Parsing process {}", currentProcessDefinition.getKey());
}
bpmnParse.processFlowElements(process.getFlowElements());
processArtifacts(bpmnParse, process.getArtifacts());
return currentProcessDefinition;
}
代码示例来源:origin: com.bbossgroups.activiti/activiti-engine
processArtifacts(bpmnParse, process.getArtifacts(), currentProcessDefinition);
内容来源于网络,如有侵权,请联系作者删除!