本文整理了Java中org.camunda.bpm.model.bpmn.Query.filterByType
方法的一些代码示例,展示了Query.filterByType
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.filterByType
方法的具体详情如下:
包路径:org.camunda.bpm.model.bpmn.Query
类名称:Query
方法名:filterByType
暂无
代码示例来源:origin: com.camunda.consulting.util/camunda-util-demo-data-generator
protected static Stream<String> queryCamundaPropertyValues(BaseElement modelElementInstance, String propertyName) {
return modelElementInstance.getExtensionElements().getElementsQuery().filterByType(CamundaProperties.class).list().stream() //
.map(CamundaProperties::getCamundaProperties) //
.flatMap(Collection::stream) //
.filter(property -> property.getCamundaName().equals(propertyName)) //
.map(CamundaProperty::getCamundaValue) //
.filter(Objects::nonNull) //
;
}
代码示例来源:origin: viadee/vPAV
final List<CamundaIn> inputAssociations = extensionElements.getElementsQuery().filterByType(CamundaIn.class)
.list();
for (final CamundaIn inputAssociation : inputAssociations) {
.filterByType(CamundaOut.class).list();
for (final CamundaOut outputAssociation : outputAssociations) {
final String target = outputAssociation.getCamundaTarget();
代码示例来源:origin: viadee/vPAV
private boolean hasProperty(String propertyName, BpmnElement element) {
ExtensionElements elements = element.getBaseElement().getExtensionElements();
if (elements == null) {
return false;
}
Query<CamundaProperties> query = elements.getElementsQuery()
.filterByType(CamundaProperties.class);
if (query.count() == 0) {
return false;
}
Collection<CamundaProperty> properties = query
.singleResult()
.getCamundaProperties();
return properties.stream().anyMatch(p -> p.getCamundaName() != null && p.getCamundaName().equals(propertyName));
}
}
代码示例来源:origin: viadee/vPAV
final List<CamundaIn> inputAssociations = extensionElements.getElementsQuery().filterByType(CamundaIn.class)
.list();
for (final CamundaIn inputAssociation : inputAssociations) {
.filterByType(CamundaOut.class).list();
for (final CamundaOut outputAssociation : outputAssociations) {
final String target = outputAssociation.getCamundaTarget();
代码示例来源:origin: viadee/vPAV
/**
* Get process variables from form fields (user tasks)
*
* @param element
* BpmnElement
* @param extensionElements
* ExtensionElements
* @param scopeElementId
* ScopeElementId
* @return variables
*/
private LinkedHashMap<String, ProcessVariableOperation> getVariablesFromFormData(final BpmnElement element,
final ExtensionElements extensionElements, final String scopeElementId) {
final LinkedHashMap<String, ProcessVariableOperation> processVariables = new LinkedHashMap<String, ProcessVariableOperation>();
final Query<CamundaFormData> formDataQuery = extensionElements.getElementsQuery()
.filterByType(CamundaFormData.class);
if (formDataQuery.count() > 0) {
final CamundaFormData formData = formDataQuery.singleResult();
if (formData != null) {
final Collection<CamundaFormField> formFields = formData.getCamundaFormFields();
for (final CamundaFormField field : formFields) {
processVariables.put(field.getCamundaId(),
new ProcessVariableOperation(field.getCamundaId(), element, ElementChapter.FormData,
KnownElementFieldType.FormField, null, VariableOperation.WRITE, scopeElementId));
}
}
}
return processVariables;
}
代码示例来源:origin: viadee/vPAV
.filterByType(CamundaExecutionListener.class).list();
for (final CamundaExecutionListener listener : listenerList) {
final String l_expression = listener.getCamundaExpression();
代码示例来源:origin: viadee/vPAV
.filterByType(CamundaTaskListener.class).list();
for (final CamundaTaskListener listener : listenerList) {
final String l_expression = listener.getCamundaExpression();
代码示例来源:origin: viadee/vPAV
.filterByType(CamundaTaskListener.class).list();
for (final CamundaTaskListener listener : listenerList) {
final CamundaScript script = listener.getCamundaScript();
代码示例来源:origin: viadee/vPAV
.filterByType(CamundaExecutionListener.class).list();
for (final CamundaExecutionListener listener : listenerList) {
final CamundaScript script = listener.getCamundaScript();
代码示例来源:origin: viadee/vPAV
final Collection<CheckerIssue> issues = new ArrayList<CheckerIssue>();
List<CamundaExecutionListener> execListenerList = extensionElements.getElementsQuery()
.filterByType(CamundaExecutionListener.class).list();
for (final CamundaExecutionListener listener : execListenerList) {
final String l_expression = listener.getCamundaExpression();
代码示例来源:origin: viadee/vPAV
final Collection<CheckerIssue> issues = new ArrayList<CheckerIssue>();
List<CamundaTaskListener> taskListenerList = extensionElements.getElementsQuery()
.filterByType(CamundaTaskListener.class).list();
for (final CamundaTaskListener listener : taskListenerList) {
final String l_expression = listener.getCamundaExpression();
内容来源于网络,如有侵权,请联系作者删除!