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

x33g5p2x  于2022-01-26 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(119)

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

Process.getDataObjects介绍

暂无

代码示例

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

@Override
protected void executeValidation(BpmnModel bpmnModel, Process process, List<ValidationError> errors) {
 // Gather data objects
 List<ValuedDataObject> allDataObjects = new ArrayList<ValuedDataObject>();
 allDataObjects.addAll(process.getDataObjects());
 List<SubProcess> subProcesses = process.findFlowElementsOfType(SubProcess.class, true);
 for (SubProcess subProcess : subProcesses) {
  allDataObjects.addAll(subProcess.getDataObjects());
 }
 // Validate
 for (ValuedDataObject dataObject : allDataObjects) {
  if (StringUtils.isEmpty(dataObject.getName())) {
   addError(errors, Problems.DATA_OBJECT_MISSING_NAME, process, dataObject, "Name is mandatory for a data object");
  }
 }
}

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

subProcess.getDataObjects().add((ValuedDataObject) parsedElement);
} else {
 activeProcess.getDataObjects().add((ValuedDataObject) parsedElement);

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObject : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObject.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObject;

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
  for (ValuedDataObject dataObject : bpmnModel.getMainProcess().getDataObjects()) {
    if (dataObject.getName().equals(variableEntity.getName())) {
      foundDataObject = dataObject;

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

propertiesNode);
if (CollectionUtils.isNotEmpty(mainProcess.getDataObjects())) {
  BpmnJsonConverterUtil.convertDataPropertiesToJson(mainProcess.getDataObjects(),
                           propertiesNode);

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

boolean isDataObjectLocalizationChanged = localizeDataObjectElements(process.getDataObjects(),
                                   infoNode);
if (isFlowElementLocalizationChanged || isDataObjectLocalizationChanged) {

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObjectDefinition : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObjectDefinition.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObjectDefinition;

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

processInstance.setVariables(processDataObjects(process.getDataObjects()));

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObjectDefinition : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObjectDefinition.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObjectDefinition;

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

Map<String, Object> variables = processDataObjects(subProcess.getDataObjects());

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

@Override
protected void executeValidation(BpmnModel bpmnModel, Process process, List<ValidationError> errors) {
 // Gather data objects
 List<ValuedDataObject> allDataObjects = new ArrayList<ValuedDataObject>();
 allDataObjects.addAll(process.getDataObjects());
 List<SubProcess> subProcesses = process.findFlowElementsOfType(SubProcess.class, true);
 for (SubProcess subProcess : subProcesses) {
  allDataObjects.addAll(subProcess.getDataObjects());
 }
 // Validate
 for (ValuedDataObject dataObject : allDataObjects) {
  if (StringUtils.isEmpty(dataObject.getName())) {
   addError(errors, Problems.DATA_OBJECT_MISSING_NAME, process, dataObject, "Name is mandatory for a data object");
  }
 }
}

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

subProcess.getDataObjects().add((ValuedDataObject) parsedElement);
} else {
 activeProcess.getDataObjects().add((ValuedDataObject) parsedElement);

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObject : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObject.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObject;

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

BpmnJsonConverterUtil.convertMessagesToJson(model, propertiesNode);
if (CollectionUtils.isNotEmpty(mainProcess.getDataObjects())) {
 BpmnJsonConverterUtil.convertDataPropertiesToJson(mainProcess.getDataObjects(), propertiesNode);

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

boolean isDataObjectLocalizationChanged = localizeDataObjectElements(process.getDataObjects(), infoNode);
if (isFlowElementLocalizationChanged || isDataObjectLocalizationChanged) {
 localizationValuesChanged = true;

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObject : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObject.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObject;

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

processInstance.setVariables(processDataObjects(process.getDataObjects()));

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObjectDefinition : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObjectDefinition.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObjectDefinition;

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

Map<String, Object> variables = processDataObjects(subProcess.getDataObjects());

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

ValuedDataObject foundDataObject = null;
if (executionEntity.getParentId() == null) {
 for (ValuedDataObject dataObjectDefinition : bpmnModel.getMainProcess().getDataObjects()) {
  if (dataObjectDefinition.getName().equals(variableEntity.getName())) {
   foundDataObject = dataObjectDefinition;

相关文章