method2testcases stringlengths 118 6.63k |
|---|
### Question:
VariableSearchService implements LiveSearchService<String> { public String getOptionType(String key) { return optionType.get(key); } @Inject VariableSearchService(final ConditionEditorMetadataService metadataService,
final ClientTranslationService translationService); voi... |
### Question:
VariableSearchService implements LiveSearchService<String> { static String unboxDefaultType(String type) { if (type == null) { return null; } switch (type) { case "Short": case "short": return Short.class.getName(); case "Integer": case "int": return Integer.class.getName(); case "Long": case "long": retu... |
### Question:
VariableSearchService implements LiveSearchService<String> { public void clear() { options.clear(); typesMetadata.clear(); optionType.clear(); } @Inject VariableSearchService(final ConditionEditorMetadataService metadataService,
final ClientTranslationService translationS... |
### Question:
ConditionEditorFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeValue> { @PostConstruct public void init() { view.init(this); scriptEditor.setMode(ScriptTypeMode.FLOW_CONDITION); scriptEditor.addChangeHandler(this::onScriptChange); simpleConditionEditor.addChangeHandler(this::onSimpleConditionC... |
### Question:
ConditionEditorFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeValue> { @Override public void setValue(ScriptTypeValue value) { super.setValue(value); scriptEditor.setValue(value); simpleConditionEditor.clear(); clearError(); if (value != null) { if (isInDefaultLanguage(value) && !isServiceAva... |
### Question:
DecisionComponentFilter { Stream<DecisionComponentsItem> query(final Stream<DecisionComponentsItem> stream) { return stream.filter(byDrgElement()).filter(byTerm()); } }### Answer:
@Test public void testQueryWithoutFilters() { final DecisionComponentsItem item1 = item("Can Drive?", new Decision()); fina... |
### Question:
ConditionEditorFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeValue> { void onScriptEditorSelected() { scriptEditor.setValue(value); clearError(); showScriptEditor(); } @Inject ConditionEditorFieldEditorPresenter(final View view,
final SimpleCon... |
### Question:
ConditionEditorFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeValue> { void onSimpleConditionChange(Condition oldValue, Condition newValue) { if (simpleConditionEditor.isValid()) { conditionEditorGeneratorService .call(newValue) .then(result -> { onSimpleConditionChange(result); return null; ... |
### Question:
SimpleConditionEditorPresenter extends FieldEditorPresenter<Condition> { @PostConstruct public void init() { view.init(this); view.getVariableSelectorDropDown().init(variableSearchService, variableSearchSelectionHandler); view.getVariableSelectorDropDown().setOnChange(this::onVariableChange); view.getCond... |
### Question:
SimpleConditionEditorPresenter extends FieldEditorPresenter<Condition> { public View getView() { return view; } @Inject SimpleConditionEditorPresenter(final View view,
final ManagedInstance<ConditionParamPresenter> paramInstance,
... |
### Question:
DecisionComponentsItem { @PostConstruct public void init() { view.init(this); } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGElement getDrgElement(); }### An... |
### Question:
SimpleConditionEditorPresenter extends FieldEditorPresenter<Condition> { @Override public void setValue(Condition value) { super.setValue(value); clear(); if (value != null) { if (value.getParams().size() >= 1) { String type = variableSearchService.getOptionType(value.getParams().get(0)); if (type != null... |
### Question:
SimpleConditionEditorPresenter extends FieldEditorPresenter<Condition> { public void clear() { variableSearchSelectionHandler.clearSelection(); functionSearchSelectionHandler.clearSelection(); functionSearchService.clear(); removeParams(); clearErrors(); } @Inject SimpleConditionEditorPresenter(final Vie... |
### Question:
SimpleConditionEditorPresenter extends FieldEditorPresenter<Condition> { public boolean isValid() { return valid; } @Inject SimpleConditionEditorPresenter(final View view,
final ManagedInstance<ConditionParamPresenter> paramInstance,
... |
### Question:
BPMNDiagramFilterProvider implements StunnerFormElementFilterProvider { @Override public Class<?> getDefinitionType() { return BPMNDiagramImpl.class; } BPMNDiagramFilterProvider(); @Inject BPMNDiagramFilterProvider(final SessionManager sessionManager,
final DiagramTyp... |
### Question:
BPMNDiagramFilterProvider implements StunnerFormElementFilterProvider { void onFormFieldChanged(@Observes FormFieldChanged formFieldChanged) { final String adHocFieldName = BPMNDiagramImpl.DIAGRAM_SET + "." + DiagramSet.ADHOC; if (!Objects.equals(formFieldChanged.getName(), adHocFieldName)) { return; } re... |
### Question:
AssociationFilterProvider implements StunnerFormElementFilterProvider { @SuppressWarnings("unchecked") @Override public Collection<FormElementFilter> provideFilters(String elementUUID, Object definition) { FormElementFilter nameFilter = new FormElementFilter("general.name", o -> false); return Collections... |
### Question:
MultipleInstanceNodeFilterProvider implements StunnerFormElementFilterProvider { void onFormFieldChanged(@Observes final FormFieldChanged formFieldChanged) { applyFormFieldChange(formFieldChanged); } MultipleInstanceNodeFilterProvider(); MultipleInstanceNodeFilterProvider(final SessionManager sessionMana... |
### Question:
DecisionComponentsItem { public View getView() { return view; } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGElement getDrgElement(); }### Answer:
@Test publ... |
### Question:
RuleFlowGroupFormProvider implements SelectorDataProvider { @Override public String getProviderName() { return getClass().getSimpleName(); } @PostConstruct void populateData(); @Override String getProviderName(); @Override SelectorData<String> getSelectorData(final FormRenderingContext context); static v... |
### Question:
RuleFlowGroupFormProvider implements SelectorDataProvider { @Override public SelectorData<String> getSelectorData(final FormRenderingContext context) { requestRuleFlowGroupDataEvent.fire(new RequestRuleFlowGroupDataEvent()); return new SelectorData<>(toMap(dataProvider.getRuleFlowGroupNames()), null); } ... |
### Question:
CalledElementFormProvider implements SelectorDataProvider { @Override public String getProviderName() { return getClass().getSimpleName(); } @Override String getProviderName(); @PostConstruct void populateData(); @Override @SuppressWarnings("unchecked") SelectorData getSelectorData(final FormRenderingCon... |
### Question:
CalledElementFormProvider implements SelectorDataProvider { @Override @SuppressWarnings("unchecked") public SelectorData getSelectorData(final FormRenderingContext context) { requestProcessDataEvent.fire(new RequestProcessDataEvent()); return new SelectorData(toMap(dataProvider.getProcessIds()), null); } ... |
### Question:
RuleFlowGroupDataProvider { void onRuleFlowGroupDataChanged(final @Observes RuleFlowGroupDataEvent event) { setRuleFlowGroupNames(toList(event.getGroups())); } RuleFlowGroupDataProvider(); @Inject RuleFlowGroupDataProvider(final StunnerFormsHandler formsHandler); List<RuleFlowGroup> getRuleFlowGroupNames... |
### Question:
ExecutionOrderProvider implements SelectorDataProvider { @Override @SuppressWarnings("unchecked") public SelectorData getSelectorData(final FormRenderingContext context) { Map<Object, String> values = new TreeMap<>(Comparator.comparing(o -> valuePosition.get(o))); Arrays.stream(DataProviderOption.values()... |
### Question:
ProcessCompensationRefProvider implements SelectorDataProvider { @Override @SuppressWarnings("unchecked") public SelectorData getSelectorData(FormRenderingContext context) { final Diagram diagram = sessionManager.getCurrentSession().getCanvasHandler().getDiagram(); final String rootUUID = diagram.getMetad... |
### Question:
DecisionComponentsItem { public void setDecisionComponent(final DecisionComponent decisionComponent) { this.decisionComponent = decisionComponent; setupView(); } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent ... |
### Question:
ProcessTypeProvider extends AbstractProcessFilteredNodeProvider { @Override public String getProviderName() { return getClass().getSimpleName(); } @Inject ProcessTypeProvider(final SessionManager sessionManager); @Override String getProviderName(); @Override Predicate<Node> getFilter(); @Override Functio... |
### Question:
ProcessTypeProvider extends AbstractProcessFilteredNodeProvider { @Override @SuppressWarnings("unchecked") public SelectorData getSelectorData(final FormRenderingContext context) { return new SelectorData(Arrays.asList(TYPES) .stream() .collect(Collectors.toMap(p -> p, p -> p)), "Public"); } @Inject Proc... |
### Question:
ProcessTypeProvider extends AbstractProcessFilteredNodeProvider { @Override public Predicate<Node> getFilter() { return node -> true; } @Inject ProcessTypeProvider(final SessionManager sessionManager); @Override String getProviderName(); @Override Predicate<Node> getFilter(); @Override Function<Node, Pai... |
### Question:
ProcessTypeProvider extends AbstractProcessFilteredNodeProvider { @Override public Function<Node, Pair<Object, String>> getMapper() { return null; } @Inject ProcessTypeProvider(final SessionManager sessionManager); @Override String getProviderName(); @Override Predicate<Node> getFilter(); @Override Funct... |
### Question:
ProcessesDataProvider { void onProcessesUpdatedEvent(final @Observes ProcessDataEvent event) { setProcessIds(toList(event.getProcessIds())); } ProcessesDataProvider(); @Inject ProcessesDataProvider(final StunnerFormsHandler formsHandler); List<String> getProcessIds(); }### Answer:
@Test public void test... |
### Question:
WorkItemDefinitionClientParser { public static List<WorkItemDefinition> parse(String widStr) { if (empty(widStr)) { return Collections.emptyList(); } List<WorkItemDefinition> widList = new ArrayList<>(); String[] lines = widStr.split("\r\n|\r|\n"); Queue<String> linesQueue = new LinkedList<>(Arrays.asList... |
### Question:
BPMNCreateNodeAction extends GeneralCreateNodeAction { public static boolean isAutoMagnetConnection(final Node<View<?>, Edge> sourceNode, final Node<View<?>, Edge> targetNode) { final Object sourceDefinition = null != sourceNode ? sourceNode.getContent().getDefinition() : null; final Object targetDefiniti... |
### Question:
StunnerBPMNEntryPoint { @PostConstruct public void init() { PatternFlyBootstrapper.ensureMonacoEditorLoaderIsAvailable(); FormFiltersProviderFactory.registerProvider(new StartEventFilterProvider(sessionManager, StartNoneEvent.class)); FormFiltersProviderFactory.registerProvider(new StartEventFilterProvide... |
### Question:
BPMNValidatorImpl implements BPMNValidator { @Override public void validate(Diagram diagram, Consumer<Collection<DomainViolation>> resultConsumer) { String rawContent = diagramService.getRawContent(diagram); if (Objects.nonNull(rawContent)) { resultConsumer.accept(validate(rawContent, diagram.getMetadata(... |
### Question:
DecisionComponentsItem { public void show() { HiddenHelper.show(getView().getElement()); } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGElement getDrgElement(... |
### Question:
BPMNValidatorImpl implements BPMNValidator { @Override public String getDefinitionSetId() { return BindableAdapterUtils.getDefinitionSetId(BPMNDefinitionSet.class); } BPMNValidatorImpl(); @Inject BPMNValidatorImpl(final @Default DiagramService diagramService); @Override void validate(Diagram diagram, Con... |
### Question:
BPMNElementDecorators { public static <T extends FlowElement> MarshallingMessageDecorator<T> flowElementDecorator() { return MarshallingMessageDecorator.of(o -> Optional.ofNullable(o.getName()) .orElseGet(o::getId), g -> g.getClass().getSimpleName()); } static MarshallingMessageDecorator<T> flowElementDe... |
### Question:
BPMNElementDecorators { public static <T extends BaseElement> MarshallingMessageDecorator<T> baseElementDecorator() { return MarshallingMessageDecorator.of(BaseElement::getId, g -> g.getClass().getSimpleName()); } static MarshallingMessageDecorator<T> flowElementDecorator(); static MarshallingMessageDeco... |
### Question:
BPMNElementDecorators { public static <T extends BpmnNode> MarshallingMessageDecorator<T> bpmnNodeDecorator() { return MarshallingMessageDecorator.of(o -> Optional.ofNullable(o.value() .getContent() .getDefinition() .getGeneral() .getName() .getValue()) .orElseGet(() -> o.value().getUUID()), bpmnNode -> b... |
### Question:
BPMNElementDecorators { public static MarshallingMessageDecorator<Result> resultBpmnDecorator() { return MarshallingMessageDecorator.of(r -> { BpmnNode o = (BpmnNode) r.value(); return Optional.ofNullable(o.value() .getContent() .getDefinition() .getGeneral() .getName() .getValue()) .orElseGet(() -> o.val... |
### Question:
Match { public <Sub> Match<In, Out> whenExactly(Class<Sub> type, Function<Sub, Out> then) { Function<Sub, Result<Out>> thenWrapped = sub -> Result.of(then.apply(sub)); return whenExactly_(type, thenWrapped); } Match(Class<?> outputType); static Match<In, Out> of(Class<In> inputType, Class<Out> outputType)... |
### Question:
Match { public <Sub> Match<In, Out> when(Class<Sub> type, Function<Sub, Out> then) { Function<Sub, Result<Out>> thenWrapped = sub -> Result.of(then.apply(sub)); return when_(type, thenWrapped); } Match(Class<?> outputType); static Match<In, Out> of(Class<In> inputType, Class<Out> outputType); static Match... |
### Question:
DecisionComponentsItem { public void hide() { HiddenHelper.hide(getView().getElement()); } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGElement getDrgElement(... |
### Question:
Match { public <Sub> Match<In, Out> missing(Class<Sub> type) { return when_(type, reportMissing(type)); } Match(Class<?> outputType); static Match<In, Out> of(Class<In> inputType, Class<Out> outputType); static Match<In, Node<? extends View<? extends Out>, ?>> ofNode(Class<In> inputType, Class<Out> output... |
### Question:
SequenceFlowConverter implements EdgeConverter<org.eclipse.bpmn2.SequenceFlow> { @Override public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.SequenceFlow seq, Map<String, BpmnNode> nodes) { Edge<View<SequenceFlow>, Node> edge = factoryManager.newEdge(seq.getId(), SequenceFlow.class); SequenceFlow defi... |
### Question:
ArtifactsConverter implements NodeConverter<org.eclipse.bpmn2.FlowElement> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.FlowElement element) { return Match.of(FlowElement.class, BpmnNode.class) .when(org.eclipse.bpmn2.TextAnnotation.class, this::toTextAnnotation) .when(org.eclipse.bpmn2.D... |
### Question:
CallActivityPropertyReader extends MultipleInstanceActivityPropertyReader { public boolean isCase() { return CustomElement.isCase.of(element).get(); } CallActivityPropertyReader(CallActivity callActivity, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getCalledElement(); boolean isInd... |
### Question:
CallActivityPropertyReader extends MultipleInstanceActivityPropertyReader { public boolean isAdHocAutostart() { return CustomElement.autoStart.of(element).get(); } CallActivityPropertyReader(CallActivity callActivity, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getCalledElement(); ... |
### Question:
CallActivityPropertyReader extends MultipleInstanceActivityPropertyReader { public boolean isAsync() { return CustomElement.async.of(element).get(); } CallActivityPropertyReader(CallActivity callActivity, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getCalledElement(); boolean isInd... |
### Question:
CallActivityPropertyReader extends MultipleInstanceActivityPropertyReader { public String getSlaDueDate() { return CustomElement.slaDueDate.of(element).get(); } CallActivityPropertyReader(CallActivity callActivity, BPMNDiagram diagram, DefinitionResolver definitionResolver); String getCalledElement(); boo... |
### Question:
DecisionComponentsItem { public DRGElement getDrgElement() { return getDecisionComponent().getDrgElement(); } @Inject DecisionComponentsItem(final View view); @PostConstruct void init(); View getView(); void setDecisionComponent(final DecisionComponent decisionComponent); void show(); void hide(); DRGEle... |
### Question:
DataObjectPropertyReader extends BasePropertyReader { public String getName() { return CustomElement.name.of(element).get(); } DataObjectPropertyReader(DataObjectReference ref, BPMNDiagram diagram,
BPMNShape shape,
double resolutionFa... |
### Question:
InputAssignmentReader { public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; } InputAssignmentReader(Assignment assignment, String targetName); InputAssignmentReader(ItemAwareElement source, String targetName); static InputAssignmentReader fromAssociation(DataInputA... |
### Question:
PropertyReaderUtils { public static Point2D getSourcePosition(DefinitionResolver definitionResolver, String edgeId, String sourceId) { final double resolutionFactor = definitionResolver.getResolutionFactor(); final Bounds sourceBounds = definitionResolver.getShape(sourceId).getBounds(); final List<Point> ... |
### Question:
PropertyReaderUtils { public static Point2D getTargetPosition(DefinitionResolver definitionResolver, String edgeId, String targetId) { final double resolutionFactor = definitionResolver.getResolutionFactor(); final Bounds targetBounds = definitionResolver.getShape(targetId).getBounds(); final List<Point> ... |
### Question:
PropertyReaderUtils { public static List<Point2D> getControlPoints(DefinitionResolver definitionResolver, String edgeId) { final double resolutionFactor = definitionResolver.getResolutionFactor(); final List<Point> waypoint = definitionResolver.getEdge(edgeId).getWaypoint(); final List<Point2D> result = n... |
### Question:
DecisionComponents { @PostConstruct public void init() { view.init(this); } DecisionComponents(); @Inject DecisionComponents(final View view,
final DMNIncludeModelsClient client,
final ManagedInstance<DecisionComponentsItem> itemManagedInstance,... |
### Question:
PropertyReaderUtils { public static WSDLImport toWSDLImports(Import imp) { return new WSDLImport(imp.getLocation(), imp.getNamespace()); } static Point2D getSourcePosition(DefinitionResolver definitionResolver,
String edgeId,
... |
### Question:
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || ... |
### Question:
LanePropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return extendedName.isEmpty() ? Optional.ofNullable(lane.getName()).orElse("") : extendedName; } LanePropertyReader(Lane el, BPMNDiagram diagram, BPMNShape shape, BPMNShape... |
### Question:
LanePropertyReader extends BasePropertyReader { @Override public RectangleDimensionsSet getRectangleDimensionsSet() { if (shape == null || parentLaneShape == null) { return super.getRectangleDimensionsSet(); } org.eclipse.dd.dc.Bounds bounds = shape.getBounds(); return new RectangleDimensionsSet(parentLan... |
### Question:
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return StringUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element... |
### Question:
DecisionComponents { public View getView() { return view; } DecisionComponents(); @Inject DecisionComponents(final View view,
final DMNIncludeModelsClient client,
final ManagedInstance<DecisionComponentsItem> itemManagedInstance,
... |
### Question:
PropertyReaderFactory { public FlowElementPropertyReader of(FlowElement el) { return new FlowElementPropertyReader(el, diagram, definitionResolver.getShape(el.getId()), definitionResolver.getResolutionFactor()); } PropertyReaderFactory(DefinitionResolver definitionResolver); FlowElementPropertyReader of(F... |
### Question:
ItemNameReader { public String getName() { return name; } private ItemNameReader(ItemAwareElement element); static ItemNameReader from(ItemAwareElement element); String getName(); }### Answer:
@Test public void testGetPropertyName() { when(property.getName()).thenReturn(NAME); when(property.getId()).the... |
### Question:
DecisionComponents { public void refresh() { if (!dmnDiagramsSession.isSessionStatePresent()) { return; } if (!isIncludedNodeListsUpdated()) { refreshIncludedNodesList(); } loadModelComponents(); } DecisionComponents(); @Inject DecisionComponents(final View view,
final DMNIn... |
### Question:
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::has... |
### Question:
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getDataInput() { return getMultiInstanceLoopCharacteristics() .map(MultiInstanceLoopCharacteristics::getInputDataItem) .map(MultipleInstanceActivityPropertyReader::createInputVariable) .orElse(""); } MultipleInstanceActi... |
### Question:
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getDataOutput() { return getMultiInstanceLoopCharacteristics() .map(MultiInstanceLoopCharacteristics::getOutputDataItem) .map(MultipleInstanceActivityPropertyReader::createOutputVariable) .orElse(""); } MultipleInstanceA... |
### Question:
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetR... |
### Question:
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCompletionCondition() { return getMultiInstanceLoopCharacteristics() .map(miloop -> (FormalExpression) miloop.getCompletionCondition()) .map(FormalExpression::getBody) .orElse(""); } MultipleInstanceActivityPropertyRe... |
### Question:
GenericServiceTaskPropertyReader extends MultipleInstanceActivityPropertyReader { public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) ... |
### Question:
ProcessVariableReader { static String getProcessVariables(List<Property> properties) { return properties .stream() .filter(ProcessVariableReader::isProcessVariable) .map(ProcessVariableReader::toProcessVariableString) .collect(Collectors.joining(",")); } static String getProcessVariableName(Property p); ... |
### Question:
DecisionComponents { void loadModelComponents() { final String dmnModelName = dmnGraphUtils.getModelDefinitions().getName().getValue(); final List<DRGElement> dmnModelDRGElements = dmnDiagramsSession.getModelDRGElements(); getModelDRGElements().clear(); dmnModelDRGElements.forEach(drgElement -> { getModel... |
### Question:
ProcessVariableReader { public static String getProcessVariableName(Property p) { String name = p.getName(); return name == null || name.isEmpty() ? p.getId() : name; } static String getProcessVariableName(Property p); static boolean isProcessVariable(Property p); }### Answer:
@Test public void getProce... |
### Question:
ProcessVariableReader { public static boolean isProcessVariable(Property p) { return !CaseFileVariableReader.isCaseFileVariable(p); } static String getProcessVariableName(Property p); static boolean isProcessVariable(Property p); }### Answer:
@Test public void isProcessVariable() { assertTrue(ProcessVar... |
### Question:
BasePropertyReader implements PropertyReader { @Override public Bounds getBounds() { if (shape == null) { return Bounds.create(); } return computeBounds(shape.getBounds()); } BasePropertyReader(final BaseElement element,
final BPMNDiagram diagram,
... |
### Question:
BasePropertyReader implements PropertyReader { @Override public CircleDimensionSet getCircleDimensionSet() { if (shape == null) { return new CircleDimensionSet(); } return new CircleDimensionSet(new Radius( shape.getBounds().getWidth() * resolutionFactor / 2d)); } BasePropertyReader(final BaseElement elem... |
### Question:
BasePropertyReader implements PropertyReader { @Override public RectangleDimensionsSet getRectangleDimensionsSet() { if (shape == null) { return new RectangleDimensionsSet(); } org.eclipse.dd.dc.Bounds bounds = shape.getBounds(); return new RectangleDimensionsSet(bounds.getWidth() * resolutionFactor, boun... |
### Question:
BasePropertyReader implements PropertyReader { @Override public boolean isExpanded() { return shape.isIsExpanded(); } BasePropertyReader(final BaseElement element,
final BPMNDiagram diagram,
final BPMNShape shape,
fi... |
### Question:
BasePropertyReader implements PropertyReader { @Override public BaseElement getElement() { return element; } BasePropertyReader(final BaseElement element,
final BPMNDiagram diagram,
final BPMNShape shape,
final doubl... |
### Question:
BasePropertyReader implements PropertyReader { @Override public BPMNShape getShape() { return shape; } BasePropertyReader(final BaseElement element,
final BPMNDiagram diagram,
final BPMNShape shape,
final double reso... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getSourceId() { return association.getSourceRef().getId(); } AssociationPropertyReader(Association association,
BPMNDiagram diagram,
... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getTargetId() { return association.getTargetRef().getId(); } AssociationPropertyReader(Association association,
BPMNDiagram diagram,
... |
### Question:
DecisionComponents { List<DMNIncludedModel> getDMNIncludedModels() { return dmnDiagramsSession .getModelImports() .stream() .filter(anImport -> Objects.equals(DMNImportTypes.DMN, determineImportType(anImport.getImportType()))) .map(this::asDMNIncludedModel) .collect(Collectors.toList()); } DecisionCompone... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.ge... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.ge... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { public Class<? extends org.kie.workbench.common.stunner.bpmn.definition.Association> getAssociationByDirection() { return Optional.ofNullable(association.getAssociationDirection()) .filter(d -> !AssociationDirection.NONE.... |
### Question:
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); } AssociationPropertyReader(Association association,
... |
### Question:
CaseFileVariableReader { static String getCaseFileVariables(List<Property> properties) { return properties .stream() .filter(CaseFileVariableReader::isCaseFileVariable) .map(CaseFileVariableReader::toCaseFileVariableString) .collect(Collectors.joining(",")); } static boolean isCaseFileVariable(Property p... |
### Question:
CaseFileVariableReader { public static boolean isCaseFileVariable(Property p) { String name = getCaseFileVariableName(p); return name.startsWith(CaseFileVariables.CASE_FILE_PREFIX); } static boolean isCaseFileVariable(Property p); }### Answer:
@Test public void isCaseFileVariable() { boolean isCaseFile1... |
### Question:
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); Dec... |
### Question:
DefinitionsPropertyReader extends BasePropertyReader { public List<WSDLImport> getWSDLImports() { return definitions.getImports().stream() .map(PropertyReaderUtils::toWSDLImports) .collect(Collectors.toList()); } DefinitionsPropertyReader(Definitions element, BPMNDiagram diagram, BPMNShape shape, double r... |
### Question:
ProcessPropertyReader extends BasePropertyReader { public List<DefaultImport> getDefaultImports() { return CustomElement.defaultImports.of(process).get(); } ProcessPropertyReader(Process element, BPMNDiagram diagram, BPMNShape shape, double resolutionFactor); String getPackage(); String getProcessType(); ... |
### Question:
ProcessPropertyReader extends BasePropertyReader { public String getProcessType() { return process.getProcessType().getName(); } ProcessPropertyReader(Process element, BPMNDiagram diagram, BPMNShape shape, double resolutionFactor); String getPackage(); String getProcessType(); String getVersion(); boolean... |
### Question:
DecisionComponents { void applyTermFilter(final String value) { getFilter().setTerm(value); applyFilter(); } DecisionComponents(); @Inject DecisionComponents(final View view,
final DMNIncludeModelsClient client,
final ManagedInstance<DecisionCom... |
### Question:
ScriptTaskPropertyReader extends TaskPropertyReader { public ScriptTypeValue getScript() { return new ScriptTypeValue( Scripts.scriptLanguageFromUri(task.getScriptFormat(), Scripts.LANGUAGE.JAVA.language()), Optional.ofNullable(task.getScript()).orElse(null) ); } ScriptTaskPropertyReader(ScriptTask task, ... |
### Question:
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.