target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test @SuppressWarnings("unchecked") public void testExecute() { Collection<WorkItemDefinition> result = tested.execute(metadata); ArgumentCaptor<DirectoryStream.Filter> filterCaptor = ArgumentCaptor.forClass(DirectoryStream.Filter.class); verify(vfsService, times(1)) .newDirectoryStream(eq(path), any(DirectoryStream.F...
@Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return search(metadata); }
WorkItemDefinitionVFSLookupService implements WorkItemDefinitionService<Metadata> { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return search(metadata); } }
WorkItemDefinitionVFSLookupService implements WorkItemDefinitionService<Metadata> { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return search(metadata); } protected WorkItemDefinitionVFSLookupService(); @Inject WorkItemDefinitionVFSLookupService(final VFSService vfsService, ...
WorkItemDefinitionVFSLookupService implements WorkItemDefinitionService<Metadata> { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return search(metadata); } protected WorkItemDefinitionVFSLookupService(); @Inject WorkItemDefinitionVFSLookupService(final VFSService vfsService, ...
WorkItemDefinitionVFSLookupService implements WorkItemDefinitionService<Metadata> { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return search(metadata); } protected WorkItemDefinitionVFSLookupService(); @Inject WorkItemDefinitionVFSLookupService(final VFSService vfsService, ...
@Test public void testDeploy() { tested.deploy(METADATA1); tested.deploy(METADATA2); tested.deploy(METADATA1); tested.deploy(METADATA2); verify(service1, times(1)).deploy(eq(METADATA1)); verify(service2, times(1)).deploy(eq(METADATA1)); verify(service1, times(1)).deploy(eq(METADATA2)); verify(service2, times(1)).deploy...
@SuppressWarnings("all") public void deploy(final Metadata metadata) { final Path root = metadata.getRoot(); final Path deployedPath = getDeployedRoot(metadata); final Path path = null != deployedPath ? deployedPath : root; synchronized (path) { if (null == getDeployedRoot(metadata)) { deployed.put(root.toURI(), root);...
WorkItemDefinitionDeployServices { @SuppressWarnings("all") public void deploy(final Metadata metadata) { final Path root = metadata.getRoot(); final Path deployedPath = getDeployedRoot(metadata); final Path path = null != deployedPath ? deployedPath : root; synchronized (path) { if (null == getDeployedRoot(metadata)) ...
WorkItemDefinitionDeployServices { @SuppressWarnings("all") public void deploy(final Metadata metadata) { final Path root = metadata.getRoot(); final Path deployedPath = getDeployedRoot(metadata); final Path path = null != deployedPath ? deployedPath : root; synchronized (path) { if (null == getDeployedRoot(metadata)) ...
WorkItemDefinitionDeployServices { @SuppressWarnings("all") public void deploy(final Metadata metadata) { final Path root = metadata.getRoot(); final Path deployedPath = getDeployedRoot(metadata); final Path path = null != deployedPath ? deployedPath : root; synchronized (path) { if (null == getDeployedRoot(metadata)) ...
WorkItemDefinitionDeployServices { @SuppressWarnings("all") public void deploy(final Metadata metadata) { final Path root = metadata.getRoot(); final Path deployedPath = getDeployedRoot(metadata); final Path path = null != deployedPath ? deployedPath : root; synchronized (path) { if (null == getDeployedRoot(metadata)) ...
@Test public void testDeployAssets() { ArgumentCaptor<Assets> assetsArgumentCaptor = ArgumentCaptor.forClass(Assets.class); tested.deploy(metadata); verify(backendFileSystemManager, times(1)) .deploy(eq(globalPath), assetsArgumentCaptor.capture(), anyString()); Collection<Asset> assets = assetsArgumentCaptor.getValue()...
@Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Collectors.toList())), DEPLOY_MESSAGE); }
WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Coll...
WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Coll...
WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Coll...
WorkItemDefinitionDefaultDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { backendFileSystemManager .deploy(resources.resolveGlobalPath(metadata), new Assets(Arrays.stream(ASSETS) .map(asset -> assetBuilder.apply(asset, ASSETS_ROOT + asset)) .collect(Coll...
@Test public void testParseJBPMWorkDefinition() { WorkItemDefinition workItemDefinition = WorkItemDefinitionParser.parse(jbpmWorkDefinition, w -> "uri", dataUriProvider); assertNotNull(workItemDefinition); assertEquals(NAME, workItemDefinition.getName()); assertEquals(CATWGORY, workItemDefinition.getCategory()); assert...
public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataUriProvider); return definit...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
@Test public void testEmailWorkItemDefinition() throws Exception { when(dataUriProvider.apply(eq("email.gif"))).thenReturn(ICON_DATA); String raw = loadStream(WID_EMAIL); Collection<WorkItemDefinition> workItemDefinitions = WorkItemDefinitionParser.parse(raw, w -> "uri", dataUriProvider); assertNotNull(workItemDefiniti...
public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataUriProvider); return definit...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
@Test public void testFTPWorkItemDefinition() throws Exception { when(dataUriProvider.apply(eq("ftp.gif"))).thenReturn(ICON_DATA); String raw = loadStream(WID_FTP); Collection<WorkItemDefinition> workItemDefinitions = WorkItemDefinitionParser.parse(raw, w -> "uri", dataUriProvider); assertNotNull(workItemDefinitions); ...
public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataUriProvider); return definit...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
WorkItemDefinitionParser { public static Collection<WorkItemDefinition> parse(final String content, final Function<WorkDefinitionImpl, String> uriProvider, final Function<String, String> dataUriProvider) throws Exception { final Map<String, WorkDefinitionImpl> definitionMap = parseJBPMWorkItemDefinitions(content, dataU...
@Test public void testProfile() { BPMNRuleFlowProjectProfile profile = new BPMNRuleFlowProjectProfile(); assertEquals(new BPMNRuleFlowProfile().getProfileId(), profile.getProfileId()); assertEquals(Profile.PLANNER_AND_RULES.getName(), profile.getProjectProfileName()); }
@Override public String getProjectProfileName() { return Profile.PLANNER_AND_RULES.getName(); }
BPMNRuleFlowProjectProfile extends BPMNRuleFlowProfile implements ProjectProfile { @Override public String getProjectProfileName() { return Profile.PLANNER_AND_RULES.getName(); } }
BPMNRuleFlowProjectProfile extends BPMNRuleFlowProfile implements ProjectProfile { @Override public String getProjectProfileName() { return Profile.PLANNER_AND_RULES.getName(); } }
BPMNRuleFlowProjectProfile extends BPMNRuleFlowProfile implements ProjectProfile { @Override public String getProjectProfileName() { return Profile.PLANNER_AND_RULES.getName(); } @Override String getProjectProfileName(); }
BPMNRuleFlowProjectProfile extends BPMNRuleFlowProfile implements ProjectProfile { @Override public String getProjectProfileName() { return Profile.PLANNER_AND_RULES.getName(); } @Override String getProjectProfileName(); }
@Test public void testGetProcessIdResourceType() throws Exception { assertEquals(tested.getProcessIdResourceType(), ResourceType.BPMN2); }
@Override protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; }
FindBpmnProcessIdsQuery extends AbstractFindIdsQuery { @Override protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
FindBpmnProcessIdsQuery extends AbstractFindIdsQuery { @Override protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
FindBpmnProcessIdsQuery extends AbstractFindIdsQuery { @Override protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } @Override String getName(); }
FindBpmnProcessIdsQuery extends AbstractFindIdsQuery { @Override protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } @Override String getName(); static final String NAME; }
@Test public void build() { tested.build("uuid", "def", projectMetadata); verify(workItemDefinitionService).execute(projectMetadata); }
@Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { workItemDefinitionService.execute(metadata); return super.build(uuid, definition); }
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { workItemDefinitionService.execute(metadata); return super.build(uuid, definition); } }
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { workItemDefinitionService.execute(metadata); return super.build(uuid, definition); } CaseGraphFactoryImpl(); @Inject CaseGraphFactoryImpl(DefinitionManager definiti...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { workItemDefinitionService.execute(metadata); return super.build(uuid, definition); } CaseGraphFactoryImpl(); @Inject CaseGraphFactoryImpl(DefinitionManager definiti...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { workItemDefinitionService.execute(metadata); return super.build(uuid, definition); } CaseGraphFactoryImpl(); @Inject CaseGraphFactoryImpl(DefinitionManager definiti...
@Test public void testSetIcon() { final String iconURI = "http: icon.src = "something"; view.setIcon(iconURI); assertEquals(iconURI, icon.src); }
@Override public void setIcon(final String iconURI) { icon.src = iconURI; }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setIcon(final String iconURI) { icon.src = iconURI; } }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setIcon(final String iconURI) { icon.src = iconURI; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setIcon(final String iconURI) { icon.src = iconURI; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setIcon(final String iconURI) { icon.src = iconURI; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
@Test public void testGetNodesFromImportsWhenPathDoesNotRepresentsAnImportedDiagram() { final Path path = mock(Path.class); final DMNIncludedModel includedModel1 = mock(DMNIncludedModel.class); final DMNIncludedModel includedModel2 = mock(DMNIncludedModel.class); final DMNIncludedModel includedModel3 = mock(DMNIncluded...
public List<DMNIncludedNode> getNodesFromImports(final Path path, final List<DMNIncludedModel> includedModels) { try { final Diagram<Graph, Metadata> diagram = diagramHelper.getDiagramByPath(path); final Optional<DMNIncludedModel> diagramImport = getDiagramImport(diagram, includedModels); return diagramImport .map(dmn ...
DMNIncludedNodesFilter { public List<DMNIncludedNode> getNodesFromImports(final Path path, final List<DMNIncludedModel> includedModels) { try { final Diagram<Graph, Metadata> diagram = diagramHelper.getDiagramByPath(path); final Optional<DMNIncludedModel> diagramImport = getDiagramImport(diagram, includedModels); retur...
DMNIncludedNodesFilter { public List<DMNIncludedNode> getNodesFromImports(final Path path, final List<DMNIncludedModel> includedModels) { try { final Diagram<Graph, Metadata> diagram = diagramHelper.getDiagramByPath(path); final Optional<DMNIncludedModel> diagramImport = getDiagramImport(diagram, includedModels); retur...
DMNIncludedNodesFilter { public List<DMNIncludedNode> getNodesFromImports(final Path path, final List<DMNIncludedModel> includedModels) { try { final Diagram<Graph, Metadata> diagram = diagramHelper.getDiagramByPath(path); final Optional<DMNIncludedModel> diagramImport = getDiagramImport(diagram, includedModels); retur...
DMNIncludedNodesFilter { public List<DMNIncludedNode> getNodesFromImports(final Path path, final List<DMNIncludedModel> includedModels) { try { final Diagram<Graph, Metadata> diagram = diagramHelper.getDiagramByPath(path); final Optional<DMNIncludedModel> diagramImport = getDiagramImport(diagram, includedModels); retur...
@Test @SuppressWarnings("all") public void buildInitialisationCommands() { final List<Command> commands = tested.buildInitialisationCommands(); assertEquals(1, commands.size()); final AddNodeCommand addNodeCommand = (AddNodeCommand) commands.get(0); assertEquals(addNodeCommand.getCandidate(), diagramNode); }
@Override protected List<Command> buildInitialisationCommands() { final List<Command> commands = new ArrayList<>(); final Node<Definition<BPMNDiagram>, Edge> diagramNode = (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(getDiagramType())); commands.add(graphCommandFactory.ad...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override protected List<Command> buildInitialisationCommands() { final List<Command> commands = new ArrayList<>(); final Node<Definition<BPMNDiagram>, Edge> diagramNode = (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(get...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override protected List<Command> buildInitialisationCommands() { final List<Command> commands = new ArrayList<>(); final Node<Definition<BPMNDiagram>, Edge> diagramNode = (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(get...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override protected List<Command> buildInitialisationCommands() { final List<Command> commands = new ArrayList<>(); final Node<Definition<BPMNDiagram>, Edge> diagramNode = (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(get...
CaseGraphFactoryImpl extends BPMNGraphFactoryImpl { @Override protected List<Command> buildInitialisationCommands() { final List<Command> commands = new ArrayList<>(); final Node<Definition<BPMNDiagram>, Edge> diagramNode = (Node<Definition<BPMNDiagram>, Edge>) factoryManager.newElement(UUID.uuid(), getDefinitionId(get...
@Test public void setDiagramType() { tested.setDiagramType(BPMNDiagramImpl.class); verify(bpmnGraphFactory).setDiagramType(BPMNDiagramImpl.class); verify(caseGraphFactory).setDiagramType(BPMNDiagramImpl.class); }
@Override public void setDiagramType(Class<? extends BPMNDiagram> diagramType) { bpmnGraphFactory.setDiagramType(diagramType); caseGraphFactory.setDiagramType(diagramType); }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public void setDiagramType(Class<? extends BPMNDiagram> diagramType) { bpmnGraphFactory.setDiagramType(diagramType); caseGraphFactory.setDiagramType(diagramType); } }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public void setDiagramType(Class<? extends BPMNDiagram> diagramType) { bpmnGraphFactory.setDiagramType(diagramType); caseGraphFactory.setDiagramType(diagramType); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, ...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public void setDiagramType(Class<? extends BPMNDiagram> diagramType) { bpmnGraphFactory.setDiagramType(diagramType); caseGraphFactory.setDiagramType(diagramType); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, ...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public void setDiagramType(Class<? extends BPMNDiagram> diagramType) { bpmnGraphFactory.setDiagramType(diagramType); caseGraphFactory.setDiagramType(diagramType); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, ...
@Test public void getFactoryType() { assertEquals(tested.getFactoryType(), BPMNGraphFactory.class); }
@Override public Class<? extends ElementFactory> getFactoryType() { return BPMNGraphFactory.class; }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Class<? extends ElementFactory> getFactoryType() { return BPMNGraphFactory.class; } }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Class<? extends ElementFactory> getFactoryType() { return BPMNGraphFactory.class; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Class<? extends ElementFactory> getFactoryType() { return BPMNGraphFactory.class; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); @Ov...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Class<? extends ElementFactory> getFactoryType() { return BPMNGraphFactory.class; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); @Ov...
@Test public void buildCase() { when(projectMetadata.getProjectType()).thenReturn(ProjectType.CASE.name()); tested.build(GRAPH_UUID, DEFINITION, projectMetadata); verify(caseGraphFactory).build(GRAPH_UUID, DEFINITION, projectMetadata); verify(bpmnGraphFactory, never()).build(GRAPH_UUID, DEFINITION, projectMetadata); }
@Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).getProjectType()).map(ProjectType::valueOf) : Optional.em...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
@Test public void buildBPMN() { when(projectMetadata.getProjectType()).thenReturn(ProjectType.BPMN.name()); tested.build(GRAPH_UUID, DEFINITION, projectMetadata); verify(caseGraphFactory, never()).build(GRAPH_UUID, DEFINITION, projectMetadata); verify(bpmnGraphFactory).build(GRAPH_UUID, DEFINITION, projectMetadata); }
@Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).getProjectType()).map(ProjectType::valueOf) : Optional.em...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
@Test public void buildDefault() { tested.build(GRAPH_UUID, DEFINITION, projectMetadata); verify(caseGraphFactory, never()).build(GRAPH_UUID, DEFINITION, projectMetadata); verify(bpmnGraphFactory).build(GRAPH_UUID, DEFINITION, projectMetadata); tested.build(GRAPH_UUID, DEFINITION); verify(caseGraphFactory, never()).bui...
@Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).getProjectType()).map(ProjectType::valueOf) : Optional.em...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
@Test public void build() { tested.build(GRAPH_UUID, DEFINITION); verify(tested).build(GRAPH_UUID, DEFINITION, null); }
@Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).getProjectType()).map(ProjectType::valueOf) : Optional.em...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public Graph<DefinitionSet, Node> build(String uuid, String definition, Metadata metadata) { final Optional<ProjectType> projectType = (Objects.nonNull(metadata) && metadata instanceof ProjectMetadata) ? Optional.ofNullable(((ProjectMetadata) metadata).ge...
@Test public void accepts() { assertTrue(tested.accepts(SOURCE)); verify(bpmnGraphFactory).accepts(SOURCE); verify(caseGraphFactory).accepts(SOURCE); }
@Override public boolean accepts(String source) { return bpmnGraphFactory.accepts(source) && caseGraphFactory.accepts(source); }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean accepts(String source) { return bpmnGraphFactory.accepts(source) && caseGraphFactory.accepts(source); } }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean accepts(String source) { return bpmnGraphFactory.accepts(source) && caseGraphFactory.accepts(source); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactor...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean accepts(String source) { return bpmnGraphFactory.accepts(source) && caseGraphFactory.accepts(source); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactor...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean accepts(String source) { return bpmnGraphFactory.accepts(source) && caseGraphFactory.accepts(source); } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactor...
@Test public void isDelegateFactory() { assertTrue(tested.isDelegateFactory()); }
@Override public boolean isDelegateFactory() { return true; }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean isDelegateFactory() { return true; } }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean isDelegateFactory() { return true; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); }
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean isDelegateFactory() { return true; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); @Override boolean isDelegateFactory(); @Ov...
BPMNDelegateGraphFactory implements BPMNGraphFactory { @Override public boolean isDelegateFactory() { return true; } @Inject BPMNDelegateGraphFactory(final BPMNGraphFactoryImpl bpmnGraphFactory, final CaseGraphFactoryImpl caseGraphFactory); @Override boolean isDelegateFactory(); @Ov...
@Test public void testWhiteSpaces() throws Exception { Condition expectedCondition = new Condition("between", Arrays.asList("someVariable", "value1", "value2")); char[] whiteSpaceChars = {'\n', '\t', ' ', '\r'}; String conditionTemplate = "%sreturn%sKieFunctions.between(%ssomeVariable%s,%s\"value1\"%s,%s\"value2\"%s)%s...
public Condition parse() throws ParseException { parseReturnSentence(); functionName = parseFunctionName(); functionName = functionName.substring(KIE_FUNCTIONS.length()); List<FunctionDef> functionDefs = FunctionsRegistry.getInstance().getFunctions(functionName); if (functionDefs.isEmpty()) { throw new ParseException(e...
ConditionParser { public Condition parse() throws ParseException { parseReturnSentence(); functionName = parseFunctionName(); functionName = functionName.substring(KIE_FUNCTIONS.length()); List<FunctionDef> functionDefs = FunctionsRegistry.getInstance().getFunctions(functionName); if (functionDefs.isEmpty()) { throw ne...
ConditionParser { public Condition parse() throws ParseException { parseReturnSentence(); functionName = parseFunctionName(); functionName = functionName.substring(KIE_FUNCTIONS.length()); List<FunctionDef> functionDefs = FunctionsRegistry.getInstance().getFunctions(functionName); if (functionDefs.isEmpty()) { throw ne...
ConditionParser { public Condition parse() throws ParseException { parseReturnSentence(); functionName = parseFunctionName(); functionName = functionName.substring(KIE_FUNCTIONS.length()); List<FunctionDef> functionDefs = FunctionsRegistry.getInstance().getFunctions(functionName); if (functionDefs.isEmpty()) { throw ne...
ConditionParser { public Condition parse() throws ParseException { parseReturnSentence(); functionName = parseFunctionName(); functionName = functionName.substring(KIE_FUNCTIONS.length()); List<FunctionDef> functionDefs = FunctionsRegistry.getInstance().getFunctions(functionName); if (functionDefs.isEmpty()) { throw ne...
@Test public void testSetName() { final String name = "name"; this.name.textContent = "something"; view.setName(name); assertEquals(name, this.name.textContent); }
@Override public void setName(final String name) { this.name.textContent = name; }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setName(final String name) { this.name.textContent = name; } }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setName(final String name) { this.name.textContent = name; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setName(final String name) { this.name.textContent = name; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setName(final String name) { this.name.textContent = name; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
@Test public void testMissingConditionError() throws Exception { ConditionGenerator generator = new ConditionGenerator(); expectedException.expectMessage("A condition must be provided"); generator.generateScript(null); }
public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOUND_ERROR, condition.g...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
@Test public void testFunctionNotFoundError() throws Exception { ConditionGenerator generator = new ConditionGenerator(); Condition condition = new Condition("SomeNonExistingFunction"); expectedException.expectMessage("Function SomeNonExistingFunction was not found in current functions definitions"); generator.generate...
public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOUND_ERROR, condition.g...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
@Test public void testParamIsNullError() throws Exception { ConditionGenerator generator = new ConditionGenerator(); Condition condition = new Condition("startsWith"); condition.addParam("variable"); condition.addParam(null); expectedException.expectMessage("Parameter can not be null nor empty"); generator.generateScri...
public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOUND_ERROR, condition.g...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
ConditionGenerator { public String generateScript(Condition condition) throws GenerateConditionException { if (condition == null) { throw new GenerateConditionException(MISSING_CONDITION_ERROR); } if (!isValidFunction(condition.getFunction())) { throw new GenerateConditionException(MessageFormat.format(FUNCTION_NOT_FOU...
@Test(expected = IndexOutOfBoundsException.class) public void testParseJavaNameWithLowerOutOfBounds() throws ParseException { String someString = "a1234"; char[] someStopCharacters = {}; ParsingUtils.parseJavaName(someString, -1, someStopCharacters); }
public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuilder javaName = n...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
@Test(expected = IndexOutOfBoundsException.class) public void testParseJavaNameWithHigherOutOfBounds() throws ParseException { String someString = "a1234"; char[] someStopCharacters = {}; ParsingUtils.parseJavaName(someString, someString.length(), someStopCharacters); }
public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuilder javaName = n...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
ParsingUtils { public static String parseJavaName(final String token, final int startIndex, final char[] stopCharacters) throws ParseException { if (startIndex < 0 || startIndex >= token.length()) { throw new IndexOutOfBoundsException("startIndex: " + startIndex + " exceeds token bounds: " + token); } final StringBuild...
@Test @SuppressWarnings("unchecked") public void testGenerate_masharller() throws Exception { when(backendService.getDiagramMarshaller()).thenReturn(newMarshaller); tested.generate(diagram); verify(newMarshaller, times(1)).marshallToBpmn2Definitions(eq(diagram)); }
@SuppressWarnings("unchecked") public Definitions generate(final Diagram diagram) throws IOException { DiagramMarshaller diagramMarshaller = backendService.getDiagramMarshaller(); return ((BaseDirectDiagramMarshaller) diagramMarshaller).marshallToBpmn2Definitions(diagram); }
FormGenerationModelProviderHelper { @SuppressWarnings("unchecked") public Definitions generate(final Diagram diagram) throws IOException { DiagramMarshaller diagramMarshaller = backendService.getDiagramMarshaller(); return ((BaseDirectDiagramMarshaller) diagramMarshaller).marshallToBpmn2Definitions(diagram); } }
FormGenerationModelProviderHelper { @SuppressWarnings("unchecked") public Definitions generate(final Diagram diagram) throws IOException { DiagramMarshaller diagramMarshaller = backendService.getDiagramMarshaller(); return ((BaseDirectDiagramMarshaller) diagramMarshaller).marshallToBpmn2Definitions(diagram); } FormGene...
FormGenerationModelProviderHelper { @SuppressWarnings("unchecked") public Definitions generate(final Diagram diagram) throws IOException { DiagramMarshaller diagramMarshaller = backendService.getDiagramMarshaller(); return ((BaseDirectDiagramMarshaller) diagramMarshaller).marshallToBpmn2Definitions(diagram); } FormGene...
FormGenerationModelProviderHelper { @SuppressWarnings("unchecked") public Definitions generate(final Diagram diagram) throws IOException { DiagramMarshaller diagramMarshaller = backendService.getDiagramMarshaller(); return ((BaseDirectDiagramMarshaller) diagramMarshaller).marshallToBpmn2Definitions(diagram); } FormGene...
@Test public void testAccepts() { assertTrue(tested.accepts(diagram)); }
@Override public boolean accepts(final Diagram diagram) { return this.definitionSetId.equals(diagram.getMetadata().getDefinitionSetId()); }
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public boolean accepts(final Diagram diagram) { return this.definitionSetId.equals(diagram.getMetadata().getDefinitionSetId()); } }
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public boolean accepts(final Diagram diagram) { return this.definitionSetId.equals(diagram.getMetadata().getDefinitionSetId()); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(final D...
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public boolean accepts(final Diagram diagram) { return this.definitionSetId.equals(diagram.getMetadata().getDefinitionSetId()); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(final D...
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public boolean accepts(final Diagram diagram) { return this.definitionSetId.equals(diagram.getMetadata().getDefinitionSetId()); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(final D...
@Test @SuppressWarnings("unchecked") public void testGenerateForBPMNDDirectDiagramMarshaller() throws Exception { when(bpmnDirectDiagramMarshaller.marshallToBpmn2Definitions(diagram)).thenReturn(definitions); when(bpmnBackendService.getDiagramMarshaller()).thenReturn(bpmnDirectDiagramMarshaller); Definitions result = t...
@Override public Definitions generate(final Diagram diagram) throws IOException { return formGenerationModelProviderHelper.generate(diagram); }
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public Definitions generate(final Diagram diagram) throws IOException { return formGenerationModelProviderHelper.generate(diagram); } }
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public Definitions generate(final Diagram diagram) throws IOException { return formGenerationModelProviderHelper.generate(diagram); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(fin...
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public Definitions generate(final Diagram diagram) throws IOException { return formGenerationModelProviderHelper.generate(diagram); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(fin...
BPMNFormGenerationModelProvider implements FormGenerationModelProvider<Definitions> { @Override public Definitions generate(final Diagram diagram) throws IOException { return formGenerationModelProviderHelper.generate(diagram); } protected BPMNFormGenerationModelProvider(); @Inject BPMNFormGenerationModelProvider(fin...
@Test public void testGetRuleFlowGroupNames() { List<RuleFlowGroup> names = tested.getRuleFlowGroupNames(); assertRightRuleFlowGroupNames(names); }
public List<RuleFlowGroup> getRuleFlowGroupNames() { return queryService.getRuleFlowGroupNames(); }
RuleFlowGroupDataService { public List<RuleFlowGroup> getRuleFlowGroupNames() { return queryService.getRuleFlowGroupNames(); } }
RuleFlowGroupDataService { public List<RuleFlowGroup> getRuleFlowGroupNames() { return queryService.getRuleFlowGroupNames(); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent); }
RuleFlowGroupDataService { public List<RuleFlowGroup> getRuleFlowGroupNames() { return queryService.getRuleFlowGroupNames(); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent); List<RuleFlowGroup> ge...
RuleFlowGroupDataService { public List<RuleFlowGroup> getRuleFlowGroupNames() { return queryService.getRuleFlowGroupNames(); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent); List<RuleFlowGroup> ge...
@Test public void testFireData() { tested.fireData(); ArgumentCaptor<RuleFlowGroupDataEvent> ec = ArgumentCaptor.forClass(RuleFlowGroupDataEvent.class); verify(dataChangedEvent, times(1)).fire(ec.capture()); RuleFlowGroupDataEvent event = ec.getValue(); assertRightRuleFlowGroups(event.getGroups()); }
void fireData() { final RuleFlowGroup[] groupNames = getRuleFlowGroupNames().toArray(new RuleFlowGroup[0]); dataChangedEvent.fire(new RuleFlowGroupDataEvent(groupNames)); }
RuleFlowGroupDataService { void fireData() { final RuleFlowGroup[] groupNames = getRuleFlowGroupNames().toArray(new RuleFlowGroup[0]); dataChangedEvent.fire(new RuleFlowGroupDataEvent(groupNames)); } }
RuleFlowGroupDataService { void fireData() { final RuleFlowGroup[] groupNames = getRuleFlowGroupNames().toArray(new RuleFlowGroup[0]); dataChangedEvent.fire(new RuleFlowGroupDataEvent(groupNames)); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, fina...
RuleFlowGroupDataService { void fireData() { final RuleFlowGroup[] groupNames = getRuleFlowGroupNames().toArray(new RuleFlowGroup[0]); dataChangedEvent.fire(new RuleFlowGroupDataEvent(groupNames)); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, fina...
RuleFlowGroupDataService { void fireData() { final RuleFlowGroup[] groupNames = getRuleFlowGroupNames().toArray(new RuleFlowGroup[0]); dataChangedEvent.fire(new RuleFlowGroupDataEvent(groupNames)); } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, fina...
@Test public void testSetFile() { final String file = "file"; this.file.textContent = "something"; view.setFile(file); assertEquals(file, this.file.textContent); }
@Override public void setFile(final String file) { this.file.textContent = file; }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setFile(final String file) { this.file.textContent = file; } }
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setFile(final String file) { this.file.textContent = file; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setFile(final String file) { this.file.textContent = file; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @Override public void setFile(final String file) { this.file.textContent = file; } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
@Test public void testRuleFlowGroupDataService() { RuleFlowGroupDataService tested = spy(new RuleFlowGroupDataService(queryService, dataChangedEvent)); tested.onRequestRuleFlowGroupDataEvent(new RequestRuleFlowGroupDataEvent()); verify(tested).fireData(); }
@Inject public RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent) { this.queryService = queryService; this.dataChangedEvent = dataChangedEvent; }
RuleFlowGroupDataService { @Inject public RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent) { this.queryService = queryService; this.dataChangedEvent = dataChangedEvent; } }
RuleFlowGroupDataService { @Inject public RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent) { this.queryService = queryService; this.dataChangedEvent = dataChangedEvent; } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService querySe...
RuleFlowGroupDataService { @Inject public RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent) { this.queryService = queryService; this.dataChangedEvent = dataChangedEvent; } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService querySe...
RuleFlowGroupDataService { @Inject public RuleFlowGroupDataService(final RuleFlowGroupQueryService queryService, final Event<RuleFlowGroupDataEvent> dataChangedEvent) { this.queryService = queryService; this.dataChangedEvent = dataChangedEvent; } @Inject RuleFlowGroupDataService(final RuleFlowGroupQueryService querySe...
@Test public void getProjectTypeCase() { final ProjectType projectType = tested.getProjectType(projectPath); assertEquals(ProjectType.CASE, projectType); }
@Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType.fromFileName(StreamSupport.stream(paths.spliterator(), fal...
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
@Test public void getProjectTypeNull() { when(directoryStream.spliterator()).thenReturn(Collections.<Path>emptyList().spliterator()); final ProjectType projectType = tested.getProjectType(projectPath); assertNull(projectType); }
@Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType.fromFileName(StreamSupport.stream(paths.spliterator(), fal...
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
BPMNDiagramProjectService implements BPMNDiagramService { @Override public ProjectType getProjectType(Path projectRootPath) { try (DirectoryStream<org.uberfire.java.nio.file.Path> paths = ioService.newDirectoryStream(Paths.convert(projectRootPath), f -> f.getFileName().toString().startsWith("."))) { return ProjectType....
@Test @SuppressWarnings("unchecked") public void testDefaultResultConverter() { RefactoringPageRow row1 = mock(RefactoringPageRow.class); when(row1.getValue()).thenReturn(asMap("row1")); RefactoringPageRow row2 = mock(RefactoringPageRow.class); when(row2.getValue()).thenReturn(asMap("row2")); RefactoringPageRow row3 = ...
@SuppressWarnings("unchecked") private static RuleFlowGroup getValue(final RefactoringPageRow row) { Map<String, String> values = (Map<String, String>) row.getValue(); String name = values.get("name"); if (StringUtils.isEmpty(name)) { return null; } RuleFlowGroup group = new RuleFlowGroup(name); group.setFileName(value...
RuleFlowGroupQueryService { @SuppressWarnings("unchecked") private static RuleFlowGroup getValue(final RefactoringPageRow row) { Map<String, String> values = (Map<String, String>) row.getValue(); String name = values.get("name"); if (StringUtils.isEmpty(name)) { return null; } RuleFlowGroup group = new RuleFlowGroup(na...
RuleFlowGroupQueryService { @SuppressWarnings("unchecked") private static RuleFlowGroup getValue(final RefactoringPageRow row) { Map<String, String> values = (Map<String, String>) row.getValue(); String name = values.get("name"); if (StringUtils.isEmpty(name)) { return null; } RuleFlowGroup group = new RuleFlowGroup(na...
RuleFlowGroupQueryService { @SuppressWarnings("unchecked") private static RuleFlowGroup getValue(final RefactoringPageRow row) { Map<String, String> values = (Map<String, String>) row.getValue(); String name = values.get("name"); if (StringUtils.isEmpty(name)) { return null; } RuleFlowGroup group = new RuleFlowGroup(na...
RuleFlowGroupQueryService { @SuppressWarnings("unchecked") private static RuleFlowGroup getValue(final RefactoringPageRow row) { Map<String, String> values = (Map<String, String>) row.getValue(); String name = values.get("name"); if (StringUtils.isEmpty(name)) { return null; } RuleFlowGroup group = new RuleFlowGroup(na...
@Test public void testGetProcessIdResourceType() throws Exception { assertEquals(tested.getProcessIdResourceType(), ResourceType.BPMN2); }
protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessIdResourceType() { return ResourceType.BPMN2; } }
@Test public void testGetProcessNameResourceType() throws Exception { assertEquals(tested.getProcessNameResourceType(), ResourceType.BPMN2_NAME); }
protected ResourceType getProcessNameResourceType() { return ResourceType.BPMN2_NAME; }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessNameResourceType() { return ResourceType.BPMN2_NAME; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessNameResourceType() { return ResourceType.BPMN2_NAME; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessNameResourceType() { return ResourceType.BPMN2_NAME; } }
BpmnProcessDataEventListener extends AbstractBpmnProcessDataEventListener { protected ResourceType getProcessNameResourceType() { return ResourceType.BPMN2_NAME; } }
@Test public void testGetRegistry() { assertEquals(registry, tested.getRegistry()); }
@Produces @Default public WorkItemDefinitionRegistry getRegistry() { return registry; }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Produces @Default public WorkItemDefinitionRegistry getRegistry() { return registry; } }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Produces @Default public WorkItemDefinitionRegistry getRegistry() { return registry; } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry re...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Produces @Default public WorkItemDefinitionRegistry getRegistry() { return registry; } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry re...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Produces @Default public WorkItemDefinitionRegistry getRegistry() { return registry; } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry re...
@Test public void testExecute() { Collection<WorkItemDefinition> result = tested.execute(metadata); assertFalse(result.isEmpty()); assertEquals(2, result.size()); assertTrue(result.contains(wid1)); assertTrue(result.contains(wid2)); }
@Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return load(metadata).items(); }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return load(metadata).items(); } }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return load(metadata).items(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkIt...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return load(metadata).items(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkIt...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @Override public Collection<WorkItemDefinition> execute(final Metadata metadata) { return load(metadata).items(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkIt...
@Test public void testDestroy() { tested.execute(metadata); assertFalse(registry.isEmpty()); tested.destroy(); assertTrue(registry.isEmpty()); }
@PreDestroy public void destroy() { registry.destroy(); }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } }
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry, ...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry, ...
WorkItemDefinitionProjectService implements WorkItemDefinitionLookupService { @PreDestroy public void destroy() { registry.destroy(); } @SuppressWarnings("all") protected WorkItemDefinitionProjectService(); @Inject WorkItemDefinitionProjectService(final WorkItemDefinitionCacheRegistry registry, ...
@Test public void testDeploy() { org.uberfire.java.nio.file.Path resourcePath = mock(org.uberfire.java.nio.file.Path.class); when(resources.resolveResourcesPath(eq(metadata))).thenReturn(resourcePath); tested.deploy(metadata, URL); ArgumentCaptor<Assets> assetsArgumentCaptor = ArgumentCaptor.forClass(Assets.class); ver...
@Override public void deploy(final Metadata metadata) { deploy(metadata, System.getProperty(PROPERTY_SERVICE_REPO), System.getProperty(PROPERTY_SERVICE_REPO_TASKNAMES)); }
WorkItemDefinitionRemoteDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { deploy(metadata, System.getProperty(PROPERTY_SERVICE_REPO), System.getProperty(PROPERTY_SERVICE_REPO_TASKNAMES)); } }
WorkItemDefinitionRemoteDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { deploy(metadata, System.getProperty(PROPERTY_SERVICE_REPO), System.getProperty(PROPERTY_SERVICE_REPO_TASKNAMES)); } protected WorkItemDefinitionRemoteDeployService(); @Inject Work...
WorkItemDefinitionRemoteDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { deploy(metadata, System.getProperty(PROPERTY_SERVICE_REPO), System.getProperty(PROPERTY_SERVICE_REPO_TASKNAMES)); } protected WorkItemDefinitionRemoteDeployService(); @Inject Work...
WorkItemDefinitionRemoteDeployService implements WorkItemDefinitionDeployService { @Override public void deploy(final Metadata metadata) { deploy(metadata, System.getProperty(PROPERTY_SERVICE_REPO), System.getProperty(PROPERTY_SERVICE_REPO_TASKNAMES)); } protected WorkItemDefinitionRemoteDeployService(); @Inject Work...
@Test public void testDecisionComponentItemMouseDown() { final MouseDownEvent mouseDownEvent = mock(MouseDownEvent.class); final Callback proxy = mock(Callback.class); final DRGElement drgElement = mock(DRGElement.class); final DMNShapeFactory factory = mock(DMNShapeFactory.class); final ShapeGlyphDragHandler.Item item...
@EventHandler("decision-component-item") public void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent) { final DRGElement drgElement = presenter.getDrgElement(); final ShapeFactory factory = dmnShapeSet.getShapeFactory(); final Glyph glyph = factory.getGlyph(drgElement.getClass().getName()); final Sha...
DecisionComponentsItemView implements DecisionComponentsItem.View { @EventHandler("decision-component-item") public void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent) { final DRGElement drgElement = presenter.getDrgElement(); final ShapeFactory factory = dmnShapeSet.getShapeFactory(); final Glyph ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @EventHandler("decision-component-item") public void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent) { final DRGElement drgElement = presenter.getDrgElement(); final ShapeFactory factory = dmnShapeSet.getShapeFactory(); final Glyph ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @EventHandler("decision-component-item") public void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent) { final DRGElement drgElement = presenter.getDrgElement(); final ShapeFactory factory = dmnShapeSet.getShapeFactory(); final Glyph ...
DecisionComponentsItemView implements DecisionComponentsItem.View { @EventHandler("decision-component-item") public void decisionComponentItemMouseDown(final MouseDownEvent mouseDownEvent) { final DRGElement drgElement = presenter.getDrgElement(); final ShapeFactory factory = dmnShapeSet.getShapeFactory(); final Glyph ...
@Test public void testInstall() { KieModule module = mock(KieModule.class); Path pomXMLPath = mock(Path.class); POM pom = mock(POM.class); when(moduleService.resolveModule(eq(root))).thenReturn(module); when(module.getPomXMLPath()).thenReturn(pomXMLPath); when(pomService.load(eq(pomXMLPath))).thenReturn(pom); Dependenc...
@SuppressWarnings("all") public void install(final Collection<WorkItemDefinition> items, final Metadata metadata) { final Module module = moduleService.resolveModule(metadata.getRoot()); final Path pomXMLPath = module.getPomXMLPath(); final POM projectPOM = pomService.load(pomXMLPath); if (projectPOM != null) { final D...
WorkItemDefinitionProjectInstaller { @SuppressWarnings("all") public void install(final Collection<WorkItemDefinition> items, final Metadata metadata) { final Module module = moduleService.resolveModule(metadata.getRoot()); final Path pomXMLPath = module.getPomXMLPath(); final POM projectPOM = pomService.load(pomXMLPat...
WorkItemDefinitionProjectInstaller { @SuppressWarnings("all") public void install(final Collection<WorkItemDefinition> items, final Metadata metadata) { final Module module = moduleService.resolveModule(metadata.getRoot()); final Path pomXMLPath = module.getPomXMLPath(); final POM projectPOM = pomService.load(pomXMLPat...
WorkItemDefinitionProjectInstaller { @SuppressWarnings("all") public void install(final Collection<WorkItemDefinition> items, final Metadata metadata) { final Module module = moduleService.resolveModule(metadata.getRoot()); final Path pomXMLPath = module.getPomXMLPath(); final POM projectPOM = pomService.load(pomXMLPat...
WorkItemDefinitionProjectInstaller { @SuppressWarnings("all") public void install(final Collection<WorkItemDefinition> items, final Metadata metadata) { final Module module = moduleService.resolveModule(metadata.getRoot()); final Path pomXMLPath = module.getPomXMLPath(); final POM projectPOM = pomService.load(pomXMLPat...
@Test public void convert() { final Result<BpmnNode> node = tested.convert(element); final Node<? extends View<? extends BPMNViewDefinition>, ?> value = node.value().value(); assertEquals(content, value.getContent()); assertEquals(def, value.getContent().getDefinition()); }
@Override public Result<BpmnNode> convert(org.eclipse.bpmn2.DataObjectReference element) { return convert(element, propertyReaderFactory.of(element)); }
DataObjectConverter implements NodeConverter<org.eclipse.bpmn2.DataObjectReference> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.DataObjectReference element) { return convert(element, propertyReaderFactory.of(element)); } }
DataObjectConverter implements NodeConverter<org.eclipse.bpmn2.DataObjectReference> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.DataObjectReference element) { return convert(element, propertyReaderFactory.of(element)); } DataObjectConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactor...
DataObjectConverter implements NodeConverter<org.eclipse.bpmn2.DataObjectReference> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.DataObjectReference element) { return convert(element, propertyReaderFactory.of(element)); } DataObjectConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactor...
DataObjectConverter implements NodeConverter<org.eclipse.bpmn2.DataObjectReference> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.DataObjectReference element) { return convert(element, propertyReaderFactory.of(element)); } DataObjectConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactor...
@Test public void convert() { final Result<BpmnNode> node = tested.convert(element); final Node<? extends View<? extends BPMNViewDefinition>, ?> value = node.value().value(); assertEquals(content, value.getContent()); assertEquals(def, value.getContent().getDefinition()); }
@Override public Result<BpmnNode> convert(org.eclipse.bpmn2.TextAnnotation element) { return convert(element, propertyReaderFactory.of(element)); }
TextAnnotationConverter implements NodeConverter<org.eclipse.bpmn2.TextAnnotation> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.TextAnnotation element) { return convert(element, propertyReaderFactory.of(element)); } }
TextAnnotationConverter implements NodeConverter<org.eclipse.bpmn2.TextAnnotation> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.TextAnnotation element) { return convert(element, propertyReaderFactory.of(element)); } TextAnnotationConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactory ...
TextAnnotationConverter implements NodeConverter<org.eclipse.bpmn2.TextAnnotation> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.TextAnnotation element) { return convert(element, propertyReaderFactory.of(element)); } TextAnnotationConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactory ...
TextAnnotationConverter implements NodeConverter<org.eclipse.bpmn2.TextAnnotation> { @Override public Result<BpmnNode> convert(org.eclipse.bpmn2.TextAnnotation element) { return convert(element, propertyReaderFactory.of(element)); } TextAnnotationConverter(TypedFactoryManager typedFactoryManager, PropertyReaderFactory ...
@Test public void testMakeDragHandler() { final Glyph glyph = mock(Glyph.class); final Item item = view.makeDragHandler(glyph); assertEquals(16, item.getHeight()); assertEquals(16, item.getWidth()); assertEquals(glyph, item.getShape()); }
ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } }
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
DecisionComponentsItemView implements DecisionComponentsItem.View { ShapeGlyphDragHandler.Item makeDragHandler(final Glyph glyph) { return new DragHandler(glyph); } @Inject DecisionComponentsItemView(final HTMLImageElement icon, final @Named("h5") HTMLHeadingElement name, ...
@Test public void testNullBody() { final Assignment assignment = createAssignment(null); final InputAssignmentReader iar = new InputAssignmentReader(assignment, ID); final AssociationDeclaration associationDeclaration = iar.getAssociationDeclaration(); assertEquals(AssociationDeclaration.Type.FromTo, associationDeclara...
public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; }
InputAssignmentReader { public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; } }
InputAssignmentReader { public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; } InputAssignmentReader(Assignment assignment, String targetName); InputAssignmentReader(ItemAwareElement source, String targetName); }
InputAssignmentReader { public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; } InputAssignmentReader(Assignment assignment, String targetName); InputAssignmentReader(ItemAwareElement source, String targetName); static Optional<InputAssignmentReader> fromAssociation(DataInputAssoc...
InputAssignmentReader { public AssociationDeclaration getAssociationDeclaration() { return associationDeclaration; } InputAssignmentReader(Assignment assignment, String targetName); InputAssignmentReader(ItemAwareElement source, String targetName); static Optional<InputAssignmentReader> fromAssociation(DataInputAssoc...
@Test public void testNullAssociations() { when(association.getSourceRef()).thenReturn(new ArrayDelegatingEList<ItemAwareElement>() { @Override public Object[] data() { return null; } }); when(association.getAssignment()).thenReturn(new ArrayDelegatingEList<Assignment>() { @Override public Object[] data() { return null...
public static Optional<InputAssignmentReader> fromAssociation(DataInputAssociation in) { List<ItemAwareElement> sourceList = in.getSourceRef(); List<Assignment> assignmentList = in.getAssignment(); String targetName = ((DataInput) in.getTargetRef()).getName(); if (isReservedIdentifier(targetName)) { return Optional.emp...
InputAssignmentReader { public static Optional<InputAssignmentReader> fromAssociation(DataInputAssociation in) { List<ItemAwareElement> sourceList = in.getSourceRef(); List<Assignment> assignmentList = in.getAssignment(); String targetName = ((DataInput) in.getTargetRef()).getName(); if (isReservedIdentifier(targetName...
InputAssignmentReader { public static Optional<InputAssignmentReader> fromAssociation(DataInputAssociation in) { List<ItemAwareElement> sourceList = in.getSourceRef(); List<Assignment> assignmentList = in.getAssignment(); String targetName = ((DataInput) in.getTargetRef()).getName(); if (isReservedIdentifier(targetName...
InputAssignmentReader { public static Optional<InputAssignmentReader> fromAssociation(DataInputAssociation in) { List<ItemAwareElement> sourceList = in.getSourceRef(); List<Assignment> assignmentList = in.getAssignment(); String targetName = ((DataInput) in.getTargetRef()).getName(); if (isReservedIdentifier(targetName...
InputAssignmentReader { public static Optional<InputAssignmentReader> fromAssociation(DataInputAssociation in) { List<ItemAwareElement> sourceList = in.getSourceRef(); List<Assignment> assignmentList = in.getAssignment(); String targetName = ((DataInput) in.getTargetRef()).getName(); if (isReservedIdentifier(targetName...
@Test public void testNullTimeParameters() { assertEquals(new SimulationAttributeSet(), SimulationAttributeSets.of(simulationParameters)); }
public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime.getParameterValue() == nu...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
@Test public void testTimeParamsWithNullValue() { TimeParameters timeParameters = factory.createTimeParameters(); simulationParameters.setTimeParameters(timeParameters); assertEquals(new SimulationAttributeSet(), SimulationAttributeSets.of(simulationParameters)); }
public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime.getParameterValue() == nu...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
@Test public void testTimeParamsWithEmptyParameter() { TimeParameters timeParameters = factory.createTimeParameters(); Parameter parameter = factory.createParameter(); timeParameters.setProcessingTime(parameter); simulationParameters.setTimeParameters(timeParameters); assertEquals(new SimulationAttributeSet(), Simulati...
public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime.getParameterValue() == nu...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
SimulationAttributeSets { public static SimulationAttributeSet of(ElementParameters eleType) { TimeParameters timeParams = eleType.getTimeParameters(); if (timeParams == null) { return new SimulationAttributeSet(); } Parameter processingTime = timeParams.getProcessingTime(); if (processingTime == null || processingTime...
@Test public void testGetNameFromExtensionElement() { EList<ExtensionAttributeValue> extensionValues = mockExtensionValues(DroolsPackage.Literals.DOCUMENT_ROOT__META_DATA, METADATA_ELEMENT_NAME, NAME); when(lane.getName()).thenReturn(null); when(lane.getExtensionValues()).thenReturn(extensionValues); LanePropertyReader...
public String getName() { String extendedName = CustomElement.name.of(element).get(); return extendedName.isEmpty() ? Optional.ofNullable(lane.getName()).orElse("") : extendedName; }
LanePropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return extendedName.isEmpty() ? Optional.ofNullable(lane.getName()).orElse("") : extendedName; } }
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 parentLaneSha...
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 parentLaneSha...
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 parentLaneSha...
@Test public void testDestroyState() { assertNotNull(dmnDiagramsSession.getSessionState()); dmnDiagramsSession.destroyState(metadata); assertNull(dmnDiagramsSession.getSessionState()); }
public void destroyState(final Metadata metadata) { dmnSessionStatesByPathURI.remove(getSessionKey(metadata)); }
DMNDiagramsSession implements GraphsProvider { public void destroyState(final Metadata metadata) { dmnSessionStatesByPathURI.remove(getSessionKey(metadata)); } }
DMNDiagramsSession implements GraphsProvider { public void destroyState(final Metadata metadata) { dmnSessionStatesByPathURI.remove(getSessionKey(metadata)); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final S...
DMNDiagramsSession implements GraphsProvider { public void destroyState(final Metadata metadata) { dmnSessionStatesByPathURI.remove(getSessionKey(metadata)); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final S...
DMNDiagramsSession implements GraphsProvider { public void destroyState(final Metadata metadata) { dmnSessionStatesByPathURI.remove(getSessionKey(metadata)); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final S...
@Test public void getExtendedName() { String name = tested.getName(); assertEquals("custom", name); }
public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
@Test public void getName() { when(element.getExtensionValues()).thenReturn(ECollections.emptyEList()); String name = tested.getName(); assertEquals("name", name); }
public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
@Test public void getTextName() { when(element.getExtensionValues()).thenReturn(ECollections.emptyEList()); when(element.getName()).thenReturn(null); String name = tested.getName(); assertEquals("text", name); }
public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
@Test public void getNameNull() { when(element.getExtensionValues()).thenReturn(ECollections.emptyEList()); when(element.getName()).thenReturn(null); when(element.getText()).thenReturn(null); String name = tested.getName(); assertEquals("", name); }
public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } }
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
TextAnnotationPropertyReader extends BasePropertyReader { public String getName() { String extendedName = CustomElement.name.of(element).get(); return ConverterUtils.isEmpty(extendedName) ? Optional.ofNullable(element.getText()).orElse("") : extendedName; } TextAnnotationPropertyReader(TextAnnotation element, BPMNDiagr...
@Test public void testGetCurrentSessionKey() { assertEquals(uri, dmnDiagramsSession.getCurrentSessionKey()); }
public String getCurrentSessionKey() { return Optional .ofNullable(getCurrentGraphDiagram()) .map(diagram -> getSessionKey(diagram.getMetadata())) .orElse(""); }
DMNDiagramsSession implements GraphsProvider { public String getCurrentSessionKey() { return Optional .ofNullable(getCurrentGraphDiagram()) .map(diagram -> getSessionKey(diagram.getMetadata())) .orElse(""); } }
DMNDiagramsSession implements GraphsProvider { public String getCurrentSessionKey() { return Optional .ofNullable(getCurrentGraphDiagram()) .map(diagram -> getSessionKey(diagram.getMetadata())) .orElse(""); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSes...
DMNDiagramsSession implements GraphsProvider { public String getCurrentSessionKey() { return Optional .ofNullable(getCurrentGraphDiagram()) .map(diagram -> getSessionKey(diagram.getMetadata())) .orElse(""); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSes...
DMNDiagramsSession implements GraphsProvider { public String getCurrentSessionKey() { return Optional .ofNullable(getCurrentGraphDiagram()) .map(diagram -> getSessionKey(diagram.getMetadata())) .orElse(""); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSes...
@Test public void testGetCollectionInput() { ItemAwareElement item = mockItemAwareElement(ITEM_ID); when(miloop.getLoopDataInputRef()).thenReturn(item); EList<DataInputAssociation> inputAssociations = ECollections.singletonEList(mockDataInputAssociation(ITEM_ID, PROPERTY_ID)); when(activity.getDataInputAssociations())....
public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::hasSourceRefs) .map(dia -> ItemNameReader.from(dia.getSourceRef().get(0)).getName()) .fin...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::hasSourceRefs) .m...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::hasSourceRefs) .m...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::hasSourceRefs) .m...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionInput() { String ieDataInputId = getLoopDataInputRefId(); return super.getDataInputAssociations().stream() .filter(dia -> hasTargetRef(dia, ieDataInputId)) .filter(MultipleInstanceActivityPropertyReader::hasSourceRefs) .m...
@Test public void testGetCollectionOutput() { ItemAwareElement item = mockItemAwareElement(ITEM_ID); when(miloop.getLoopDataOutputRef()).thenReturn(item); EList<DataOutputAssociation> outputAssociations = ECollections.singletonEList(mockDataOutputAssociation(ITEM_ID, PROPERTY_ID)); when(activity.getDataOutputAssociatio...
public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetRef()).getName()) .findFirst() .orElse(null); }
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetRef()).getName(...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetRef()).getName(...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetRef()).getName(...
MultipleInstanceActivityPropertyReader extends ActivityPropertyReader { public String getCollectionOutput() { String ieDataOutputId = getLoopDataOutputRefId(); return super.getDataOutputAssociations().stream() .filter(doa -> hasSourceRef(doa, ieDataOutputId)) .map(doa -> ItemNameReader.from(doa.getTargetRef()).getName(...
@Test public void getGenericServiceTask() { GenericServiceTaskValue task = reader.getGenericServiceTask(); assertEquals("Java", task.getServiceImplementation()); assertEquals("serviceOperation", task.getServiceOperation()); assertEquals("serviceInterface", task.getServiceInterface()); assertEquals(SLA_DUE_DATE_CDATA, r...
public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) .filter(StringUtils::nonEmpty) .orElseGet(() -> task.getImplementation()); value.setServiceImple...
GenericServiceTaskPropertyReader extends MultipleInstanceActivityPropertyReader { public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) .filter(String...
GenericServiceTaskPropertyReader extends MultipleInstanceActivityPropertyReader { public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) .filter(String...
GenericServiceTaskPropertyReader extends MultipleInstanceActivityPropertyReader { public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) .filter(String...
GenericServiceTaskPropertyReader extends MultipleInstanceActivityPropertyReader { public GenericServiceTaskValue getGenericServiceTask() { GenericServiceTaskValue value = new GenericServiceTaskValue(); final String implementation = Optional.ofNullable(CustomAttribute.serviceImplementation.of(task).get()) .filter(String...
@Test public void testGetDMNDiagrams() { final List<DMNDiagramTuple> expected = asList(mock(DMNDiagramTuple.class), mock(DMNDiagramTuple.class)); doReturn(expected).when(dmnDiagramsSessionState).getDMNDiagrams(); final List<DMNDiagramTuple> actual = dmnDiagramsSession.getDMNDiagrams(); assertEquals(expected, actual); }
public List<DMNDiagramTuple> getDMNDiagrams() { return getSessionState().getDMNDiagrams(); }
DMNDiagramsSession implements GraphsProvider { public List<DMNDiagramTuple> getDMNDiagrams() { return getSessionState().getDMNDiagrams(); } }
DMNDiagramsSession implements GraphsProvider { public List<DMNDiagramTuple> getDMNDiagrams() { return getSessionState().getDMNDiagrams(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sessio...
DMNDiagramsSession implements GraphsProvider { public List<DMNDiagramTuple> getDMNDiagrams() { return getSessionState().getDMNDiagrams(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sessio...
DMNDiagramsSession implements GraphsProvider { public List<DMNDiagramTuple> getDMNDiagrams() { return getSessionState().getDMNDiagrams(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sessio...
@Test public void testGetSourceId() { assertEquals(SOURCE_ID, propertyReader.getSourceId()); }
@Override public String getSourceId() { return association.getSourceRef().getId(); }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getSourceId() { return association.getSourceRef().getId(); } }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getSourceId() { return association.getSourceRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getSourceId() { return association.getSourceRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getSourceId() { return association.getSourceRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
@Test public void testGetTargetId() { assertEquals(TARGET_ID, propertyReader.getTargetId()); }
@Override public String getTargetId() { return association.getTargetRef().getId(); }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getTargetId() { return association.getTargetRef().getId(); } }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getTargetId() { return association.getTargetRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getTargetId() { return association.getTargetRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public String getTargetId() { return association.getTargetRef().getId(); } AssociationPropertyReader(Association association, BPMNDiagram diagram, Defi...
@Test public void testGetSourceConnection() { mockStatic(PropertyReaderUtils.class); PowerMockito.when(PropertyReaderUtils.getSourcePosition(definitionResolver, ASSOCIATION_ID, SOURCE_ID)).thenReturn(position); boolean arbitraryBoolean = true; PowerMockito.when(PropertyReaderUtils.isAutoConnectionSource(association)).t...
@Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.getX(), sourcePosition.getY()) .setAuto(PropertyReaderUtils.isAutoConnectionSource(element)); }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.getX(), sourcePo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.getX(), sourcePo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.getX(), sourcePo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getSourceConnection() { Point2D sourcePosition = PropertyReaderUtils.getSourcePosition(definitionResolver, element.getId(), getSourceId()); return MagnetConnection.Builder .at(sourcePosition.getX(), sourcePo...
@Test public void testGetTargetConnection() { mockStatic(PropertyReaderUtils.class); PowerMockito.when(PropertyReaderUtils.getTargetPosition(definitionResolver, ASSOCIATION_ID, TARGET_ID)).thenReturn(position); boolean arbitraryBoolean = true; PowerMockito.when(PropertyReaderUtils.isAutoConnectionSource(association)).t...
@Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.getX(), targetPosition.getY()) .setAuto(PropertyReaderUtils.isAutoConnectionTarget(element)); }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.getX(), targetPo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.getX(), targetPo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.getX(), targetPo...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public Connection getTargetConnection() { Point2D targetPosition = PropertyReaderUtils.getTargetPosition(definitionResolver, element.getId(), getTargetId()); return MagnetConnection.Builder .at(targetPosition.getX(), targetPo...
@Test public void testGetAssociationByDirection() { final Association association = Bpmn2Factory.eINSTANCE.createAssociation(); association.setAssociationDirection(null); propertyReader = new AssociationPropertyReader(association, bpmnDiagram, definitionResolver); assertEquals(NonDirectionalAssociation.class, propertyR...
public Class getAssociationByDirection() { AssociationDirection d = association.getAssociationDirection(); if (!AssociationDirection.NONE.equals(d)) { return DirectionalAssociation.class; } return NonDirectionalAssociation.class; }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { public Class getAssociationByDirection() { AssociationDirection d = association.getAssociationDirection(); if (!AssociationDirection.NONE.equals(d)) { return DirectionalAssociation.class; } return NonDirectionalAssociation.class; } }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { public Class getAssociationByDirection() { AssociationDirection d = association.getAssociationDirection(); if (!AssociationDirection.NONE.equals(d)) { return DirectionalAssociation.class; } return NonDirectionalAssociation.class; } Ass...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { public Class getAssociationByDirection() { AssociationDirection d = association.getAssociationDirection(); if (!AssociationDirection.NONE.equals(d)) { return DirectionalAssociation.class; } return NonDirectionalAssociation.class; } Ass...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { public Class getAssociationByDirection() { AssociationDirection d = association.getAssociationDirection(); if (!AssociationDirection.NONE.equals(d)) { return DirectionalAssociation.class; } return NonDirectionalAssociation.class; } Ass...
@Test @SuppressWarnings("unchecked") public void testGetControlPoints() { List<Point2D> controlPoints = mock(List.class); mockStatic(PropertyReaderUtils.class); PowerMockito.when(PropertyReaderUtils.getControlPoints(definitionResolver, ASSOCIATION_ID)).thenReturn(controlPoints); assertEquals(controlPoints, propertyRead...
@Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); } }
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); } AssociationPropertyReader(Association association, BPMNDiagram...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); } AssociationPropertyReader(Association association, BPMNDiagram...
AssociationPropertyReader extends BasePropertyReader implements EdgePropertyReader { @Override public List<Point2D> getControlPoints() { return PropertyReaderUtils.getControlPoints(definitionResolver, element.getId()); } AssociationPropertyReader(Association association, BPMNDiagram...
@Test public void testGetCurrentDMNDiagramElement() { final DMNDiagramElement diagramElement = new DMNDiagramElement(); final Diagram stunnerDiagram = mock(Diagram.class); final DMNDiagramSelected selectedDiagram = new DMNDiagramSelected(diagramElement); dmnDiagramsSession.add(diagramElement, stunnerDiagram); dmnDiagra...
public Optional<DMNDiagramElement> getCurrentDMNDiagramElement() { return getSessionState().getCurrentDMNDiagramElement(); }
DMNDiagramsSession implements GraphsProvider { public Optional<DMNDiagramElement> getCurrentDMNDiagramElement() { return getSessionState().getCurrentDMNDiagramElement(); } }
DMNDiagramsSession implements GraphsProvider { public Optional<DMNDiagramElement> getCurrentDMNDiagramElement() { return getSessionState().getCurrentDMNDiagramElement(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
DMNDiagramsSession implements GraphsProvider { public Optional<DMNDiagramElement> getCurrentDMNDiagramElement() { return getSessionState().getCurrentDMNDiagramElement(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
DMNDiagramsSession implements GraphsProvider { public Optional<DMNDiagramElement> getCurrentDMNDiagramElement() { return getSessionState().getCurrentDMNDiagramElement(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
@Test public void JBPM_7447_shouldNotFilterOutDataOutputsWithEmptyType() { DataInput dataInput = bpmn2.createDataInput(); dataInput.setName("InputName"); dataInput.setId("InputID"); DataOutput dataOutput = bpmn2.createDataOutput(); dataOutput.setName("OutputName"); dataOutput.setId("OutputID"); ParsedAssignmentsInfo re...
public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList outputs = dataOutput...
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList o...
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList o...
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList o...
AssignmentsInfos { public static ParsedAssignmentsInfo parsed( List<DataInput> datainput, List<DataInputAssociation> inputAssociations, List<DataOutput> dataoutput, List<DataOutputAssociation> outputAssociations, boolean alternativeEncoding) { DeclarationList inputs = dataInputDeclarations(datainput); DeclarationList o...
@Test public void testGetAdHocCompletionConditionWithoutFormalExpression() { when(process.getCompletionCondition()).thenReturn(null); assertEquals(new ScriptTypeValue(Scripts.LANGUAGE.MVEL.language(), "autocomplete"), propertyReader.getAdHocCompletionCondition()); }
public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue( Scripts.scriptLanguageFromUri(completionCondition.getLanguage(), Scripts.LANG...
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue( Scripts.scri...
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue( Scripts.scri...
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue( Scripts.scri...
AdHocSubProcessPropertyReader extends SubProcessPropertyReader { public ScriptTypeValue getAdHocCompletionCondition() { if (process.getCompletionCondition() instanceof FormalExpression) { FormalExpression completionCondition = (FormalExpression) process.getCompletionCondition(); return new ScriptTypeValue( Scripts.scri...
@Test public void testGetOnEntryScript() { OnEntryScriptType onEntryScript = Mockito.mock(OnEntryScriptType.class); when(onEntryScript.getScript()).thenReturn(SCRIPT); when(onEntryScript.getScriptFormat()).thenReturn(JAVA_FORMAT); List<OnEntryScriptType> onEntryScripts = Collections.singletonList(onEntryScript); EList<...
public ScriptTypeListValue getOnEntryAction() { return Scripts.onEntry(element.getExtensionValues()); }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnEntryAction() { return Scripts.onEntry(element.getExtensionValues()); } }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnEntryAction() { return Scripts.onEntry(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnEntryAction() { return Scripts.onEntry(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); ScriptTypeListValue getOnEntryAction(); ScriptTypeList...
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnEntryAction() { return Scripts.onEntry(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); ScriptTypeListValue getOnEntryAction(); ScriptTypeList...
@Test public void testGetCurrentDiagram() { final DMNDiagramElement diagramElement = new DMNDiagramElement(); final Diagram stunnerDiagram = mock(Diagram.class); final DMNDiagramSelected selectedDiagram = new DMNDiagramSelected(diagramElement); dmnDiagramsSession.add(diagramElement, stunnerDiagram); dmnDiagramsSession....
public Optional<Diagram> getCurrentDiagram() { return getSessionState().getCurrentDiagram(); }
DMNDiagramsSession implements GraphsProvider { public Optional<Diagram> getCurrentDiagram() { return getSessionState().getCurrentDiagram(); } }
DMNDiagramsSession implements GraphsProvider { public Optional<Diagram> getCurrentDiagram() { return getSessionState().getCurrentDiagram(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sess...
DMNDiagramsSession implements GraphsProvider { public Optional<Diagram> getCurrentDiagram() { return getSessionState().getCurrentDiagram(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sess...
DMNDiagramsSession implements GraphsProvider { public Optional<Diagram> getCurrentDiagram() { return getSessionState().getCurrentDiagram(); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, final SessionManager sess...
@Test public void testGetOnExitScript() { OnExitScriptType onExitScript = Mockito.mock(OnExitScriptType.class); when(onExitScript.getScript()).thenReturn(SCRIPT); when(onExitScript.getScriptFormat()).thenReturn(JAVA_FORMAT); List<OnExitScriptType> onExitScripts = Collections.singletonList(onExitScript); EList<Extension...
public ScriptTypeListValue getOnExitAction() { return Scripts.onExit(element.getExtensionValues()); }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnExitAction() { return Scripts.onExit(element.getExtensionValues()); } }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnExitAction() { return Scripts.onExit(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); }
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnExitAction() { return Scripts.onExit(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); ScriptTypeListValue getOnEntryAction(); ScriptTypeListVa...
ActivityPropertyReader extends FlowElementPropertyReader { public ScriptTypeListValue getOnExitAction() { return Scripts.onExit(element.getExtensionValues()); } ActivityPropertyReader(Activity activity, BPMNDiagram diagram, DefinitionResolver definitionResolver); ScriptTypeListValue getOnEntryAction(); ScriptTypeListVa...
@Test public void testGetAssignmentsInfo() { EList<DataInput> dataInputs = ECollections.newBasicEList(); DataInput dataInput1 = mockDataInput("INPUT_ID_1", "INPUT_NAME_1", mockEntry("dtype", "Integer")); DataInput dataInput2 = mockDataInput("INPUT_ID_2", "INPUT_NAME_2", mockEntry("dtype", "String")); dataInputs.add(dat...
public AssignmentsInfo getAssignmentsInfo() { AssignmentsInfo info = AssignmentsInfos.of(getDataInputs(), getDataInputAssociations(), getDataOutputs(), getDataOutputAssociations(), getIOSpecification().isPresent()); if (info.getValue().isEmpty()) { info.setValue(EMPTY_ASSIGNMENTS); } return info; }
ActivityPropertyReader extends FlowElementPropertyReader { public AssignmentsInfo getAssignmentsInfo() { AssignmentsInfo info = AssignmentsInfos.of(getDataInputs(), getDataInputAssociations(), getDataOutputs(), getDataOutputAssociations(), getIOSpecification().isPresent()); if (info.getValue().isEmpty()) { info.setValu...
ActivityPropertyReader extends FlowElementPropertyReader { public AssignmentsInfo getAssignmentsInfo() { AssignmentsInfo info = AssignmentsInfos.of(getDataInputs(), getDataInputAssociations(), getDataOutputs(), getDataOutputAssociations(), getIOSpecification().isPresent()); if (info.getValue().isEmpty()) { info.setValu...
ActivityPropertyReader extends FlowElementPropertyReader { public AssignmentsInfo getAssignmentsInfo() { AssignmentsInfo info = AssignmentsInfos.of(getDataInputs(), getDataInputAssociations(), getDataOutputs(), getDataOutputAssociations(), getIOSpecification().isPresent()); if (info.getValue().isEmpty()) { info.setValu...
ActivityPropertyReader extends FlowElementPropertyReader { public AssignmentsInfo getAssignmentsInfo() { AssignmentsInfo info = AssignmentsInfos.of(getDataInputs(), getDataInputAssociations(), getDataOutputs(), getDataOutputAssociations(), getIOSpecification().isPresent()); if (info.getValue().isEmpty()) { info.setValu...
@Test public void convertBusinessRuleTask() { org.eclipse.bpmn2.BusinessRuleTask task = mock(org.eclipse.bpmn2.BusinessRuleTask.class); BusinessRuleTaskPropertyReader propertyReader = mock(BusinessRuleTaskPropertyReader.class); BusinessRuleTask businessRuleDefinition = new BusinessRuleTask(); when(factoryManager.newNod...
@Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask) .when(e -> e instanceof org.eclipse.bpmn2.UserTask, this::userTask) .when(e...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
@Test public void convertServiceTask() { org.eclipse.bpmn2.ServiceTask task = mock(org.eclipse.bpmn2.ServiceTask.class); ServiceTaskPropertyReader serviceTaskPropertyReader = mock(ServiceTaskPropertyReader.class); CustomTask definition = new CustomTask(); FeatureMap attributes = mock(FeatureMap.class); FeatureMap.Entry...
@Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask) .when(e -> e instanceof org.eclipse.bpmn2.UserTask, this::userTask) .when(e...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
@Test public void convertGenericServiceTask() { org.eclipse.bpmn2.ServiceTask task = mock(org.eclipse.bpmn2.ServiceTask.class); GenericServiceTaskPropertyReader genericServiceTaskPropertyReader = mock(GenericServiceTaskPropertyReader.class); GenericServiceTask definition = new GenericServiceTask(); FeatureMap attribute...
@Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask) .when(e -> e instanceof org.eclipse.bpmn2.UserTask, this::userTask) .when(e...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
BaseTaskConverter extends AbstractConverter implements NodeConverter<Task> { @Override public Result<BpmnNode> convert(Task task) { return Match.<Task, BpmnNode>of() .when(e -> e instanceof org.eclipse.bpmn2.BusinessRuleTask, this::businessRuleTask) .when(e -> e instanceof org.eclipse.bpmn2.ScriptTask, this::scriptTask...
@Test public void testConvertEdge() { associationConverter.convertEdge(association, nodes); verify(definition).setGeneral(generalSetCaptor.capture()); assertEquals(ASSOCIATION_DOCUMENTATION, generalSetCaptor.getValue().getDocumentation().getValue()); assertEdgeWithConnections(); }
@Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association>, Node> edge = factoryManager.newEdge(association.getId(), p.getAssociationByD...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
@Test public void testConvertEdgeNonDirectional() { when(factoryManager.newEdge(ASSOCIATION_ID, NonDirectionalAssociation.class)).thenReturn((Edge) edgeNonDirectional); when(associationReader.getAssociationByDirection()).thenAnswer(a -> NonDirectionalAssociation.class); when(edgeNonDirectional.getContent()).thenReturn(...
@Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association>, Node> edge = factoryManager.newEdge(association.getId(), p.getAssociationByD...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
@Test public void testConvertIgnoredEdge() { assertEdgeWithConnections(); nodes.remove(SOURCE_ID); BpmnEdge.Simple result = (BpmnEdge.Simple) associationConverter.convertEdge(association, nodes).value(); assertNull(result); nodes.put(SOURCE_ID, sourceNode); nodes.remove(TARGET_ID); result = (BpmnEdge.Simple) associatio...
@Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association>, Node> edge = factoryManager.newEdge(association.getId(), p.getAssociationByD...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
AssociationConverter implements EdgeConverter<org.eclipse.bpmn2.Association> { @Override @SuppressWarnings("unchecked") public Result<BpmnEdge> convertEdge(org.eclipse.bpmn2.Association association, Map<String, BpmnNode> nodes) { AssociationPropertyReader p = propertyReaderFactory.of(association); Edge<View<Association...
@Test public void testPostConvert() { DefinitionResolver definitionResolver = mock(DefinitionResolver.class); double laneX = 80; double laneY = 100; double laneWidth = 500; double laneHeight = 200; RectangleDimensionsSet laneRectangleDimensionsSet = new RectangleDimensionsSet(laneWidth, laneHeight); Lane laneDefinition...
public Result<BpmnNode> postConvert(BpmnNode rootNode, DefinitionResolver definitionResolver) { if (definitionResolver.getResolutionFactor() != 1) { context = PostConverterContext.of(rootNode, definitionResolver.isJbpm()); adjustAllEdgeConnections(rootNode, true); if (context.hasCollapsedNodes()) { List<LaneInfo> laneI...
ProcessPostConverter { public Result<BpmnNode> postConvert(BpmnNode rootNode, DefinitionResolver definitionResolver) { if (definitionResolver.getResolutionFactor() != 1) { context = PostConverterContext.of(rootNode, definitionResolver.isJbpm()); adjustAllEdgeConnections(rootNode, true); if (context.hasCollapsedNodes())...
ProcessPostConverter { public Result<BpmnNode> postConvert(BpmnNode rootNode, DefinitionResolver definitionResolver) { if (definitionResolver.getResolutionFactor() != 1) { context = PostConverterContext.of(rootNode, definitionResolver.isJbpm()); adjustAllEdgeConnections(rootNode, true); if (context.hasCollapsedNodes())...
ProcessPostConverter { public Result<BpmnNode> postConvert(BpmnNode rootNode, DefinitionResolver definitionResolver) { if (definitionResolver.getResolutionFactor() != 1) { context = PostConverterContext.of(rootNode, definitionResolver.isJbpm()); adjustAllEdgeConnections(rootNode, true); if (context.hasCollapsedNodes())...
ProcessPostConverter { public Result<BpmnNode> postConvert(BpmnNode rootNode, DefinitionResolver definitionResolver) { if (definitionResolver.getResolutionFactor() != 1) { context = PostConverterContext.of(rootNode, definitionResolver.isJbpm()); adjustAllEdgeConnections(rootNode, true); if (context.hasCollapsedNodes())...
@Test public void testBoundsCalculation() { double subprocess1X = 10; double subprocess1Y = 10; double subprocess1Width = 100; double subprocess1Height = 200; EmbeddedSubprocess subprocess1Definition = mock(EmbeddedSubprocess.class); Node<? extends View<? extends BPMNViewDefinition>, ?> subprocess1 = mockNode(subproces...
public void buildGraph(BpmnNode rootNode) { this.addNode(rootNode.value()); rootNode.getEdges().forEach(this::addEdge); List<BpmnNode> nodes = rootNode.getChildren(); Deque<BpmnNode> workingSet = new ArrayDeque<>(prioritized(nodes)); Set<BpmnNode> workedOff = new HashSet<>(); while (!workingSet.isEmpty()) { BpmnNode cu...
GraphBuilder { public void buildGraph(BpmnNode rootNode) { this.addNode(rootNode.value()); rootNode.getEdges().forEach(this::addEdge); List<BpmnNode> nodes = rootNode.getChildren(); Deque<BpmnNode> workingSet = new ArrayDeque<>(prioritized(nodes)); Set<BpmnNode> workedOff = new HashSet<>(); while (!workingSet.isEmpty()...
GraphBuilder { public void buildGraph(BpmnNode rootNode) { this.addNode(rootNode.value()); rootNode.getEdges().forEach(this::addEdge); List<BpmnNode> nodes = rootNode.getChildren(); Deque<BpmnNode> workingSet = new ArrayDeque<>(prioritized(nodes)); Set<BpmnNode> workedOff = new HashSet<>(); while (!workingSet.isEmpty()...
GraphBuilder { public void buildGraph(BpmnNode rootNode) { this.addNode(rootNode.value()); rootNode.getEdges().forEach(this::addEdge); List<BpmnNode> nodes = rootNode.getChildren(); Deque<BpmnNode> workingSet = new ArrayDeque<>(prioritized(nodes)); Set<BpmnNode> workedOff = new HashSet<>(); while (!workingSet.isEmpty()...
GraphBuilder { public void buildGraph(BpmnNode rootNode) { this.addNode(rootNode.value()); rootNode.getEdges().forEach(this::addEdge); List<BpmnNode> nodes = rootNode.getChildren(); Deque<BpmnNode> workingSet = new ArrayDeque<>(prioritized(nodes)); Set<BpmnNode> workedOff = new HashSet<>(); while (!workingSet.isEmpty()...
@Test public void testGetDRGDiagram() { final Diagram expected = mock(Diagram.class); doReturn(expected).when(dmnDiagramsSessionState).getDRGDiagram(); final Diagram actual = dmnDiagramsSession.getDRGDiagram(); assertEquals(expected, actual); }
public Diagram getDRGDiagram() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagram).orElse(null); }
DMNDiagramsSession implements GraphsProvider { public Diagram getDRGDiagram() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagram).orElse(null); } }
DMNDiagramsSession implements GraphsProvider { public Diagram getDRGDiagram() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagram).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
DMNDiagramsSession implements GraphsProvider { public Diagram getDRGDiagram() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagram).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
DMNDiagramsSession implements GraphsProvider { public Diagram getDRGDiagram() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagram).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSessionStates, ...
@Test public void testGetNodes() { final DRGElement drgElement = mock(DRGElement.class); final List<DRGElement> expectedNodes = singletonList(drgElement); when(dmnDiagramUtils.getDRGElements(diagram)).thenReturn(expectedNodes); final List<DRGElement> actualNodes = helper.getNodes(diagram); assertEquals(expectedNodes, a...
public List<DRGElement> getNodes(final Diagram diagram) { return dmnDiagramUtils.getDRGElements(diagram); }
DMNDiagramHelper { public List<DRGElement> getNodes(final Diagram diagram) { return dmnDiagramUtils.getDRGElements(diagram); } }
DMNDiagramHelper { public List<DRGElement> getNodes(final Diagram diagram) { return dmnDiagramUtils.getDRGElements(diagram); } @Inject DMNDiagramHelper(final DiagramService diagramService, final DMNDiagramUtils dmnDiagramUtils); }
DMNDiagramHelper { public List<DRGElement> getNodes(final Diagram diagram) { return dmnDiagramUtils.getDRGElements(diagram); } @Inject DMNDiagramHelper(final DiagramService diagramService, final DMNDiagramUtils dmnDiagramUtils); List<DRGElement> getNodes(final Diagram diagram); List<ItemDef...
DMNDiagramHelper { public List<DRGElement> getNodes(final Diagram diagram) { return dmnDiagramUtils.getDRGElements(diagram); } @Inject DMNDiagramHelper(final DiagramService diagramService, final DMNDiagramUtils dmnDiagramUtils); List<DRGElement> getNodes(final Diagram diagram); List<ItemDef...
@Test public void testGetShape() { BPMNShape shape = mock(BPMNShape.class); BaseElement bpmnElement = mock(BaseElement.class); when(shape.getBpmnElement()).thenReturn(bpmnElement); when(bpmnElement.getId()).thenReturn(ID); planeElements.add(shape); assertEquals(shape, definitionResolver.getShape(ID)); }
public BPMNShape getShape(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getShape(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); }
DefinitionResolver { public BPMNShape getShape(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getShape(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } }
DefinitionResolver { public BPMNShape getShape(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getShape(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkIt...
DefinitionResolver { public BPMNShape getShape(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getShape(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkIt...
DefinitionResolver { public BPMNShape getShape(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getShape(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkIt...
@Test public void testGetEdge() { BPMNEdge edge = mock(BPMNEdge.class); BaseElement bpmnElement = mock(BaseElement.class); when(edge.getBpmnElement()).thenReturn(bpmnElement); when(bpmnElement.getId()).thenReturn(ID); planeElements.add(edge); assertEquals(edge, definitionResolver.getEdge(ID)); }
public BPMNEdge getEdge(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getEdge(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); }
DefinitionResolver { public BPMNEdge getEdge(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getEdge(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } }
DefinitionResolver { public BPMNEdge getEdge(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getEdge(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkItemD...
DefinitionResolver { public BPMNEdge getEdge(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getEdge(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkItemD...
DefinitionResolver { public BPMNEdge getEdge(String elementId) { return definitions.getDiagrams().stream() .map(BPMNDiagram::getPlane) .map(plane -> getEdge(plane, elementId)) .filter(Objects::nonNull) .findFirst().orElse(null); } DefinitionResolver( Definitions definitions, Collection<WorkItemD...
@Test public void testSimulation() { String elementRef = "some_element_ref"; EList<Scenario> scenarios = ECollections.newBasicEList(); Scenario scenario = mock(Scenario.class); scenarios.add(scenario); EList<ElementParameters> parameters = ECollections.newBasicEList(); ElementParameters parameter = mock(ElementParamete...
public Optional<ElementParameters> resolveSimulationParameters(String id) { return Optional.ofNullable(simulationParameters.get(id)); }
DefinitionResolver { public Optional<ElementParameters> resolveSimulationParameters(String id) { return Optional.ofNullable(simulationParameters.get(id)); } }
DefinitionResolver { public Optional<ElementParameters> resolveSimulationParameters(String id) { return Optional.ofNullable(simulationParameters.get(id)); } DefinitionResolver( Definitions definitions, Collection<WorkItemDefinition> workItemDefinitions, boolean jbpm, Mode...
DefinitionResolver { public Optional<ElementParameters> resolveSimulationParameters(String id) { return Optional.ofNullable(simulationParameters.get(id)); } DefinitionResolver( Definitions definitions, Collection<WorkItemDefinition> workItemDefinitions, boolean jbpm, Mode...
DefinitionResolver { public Optional<ElementParameters> resolveSimulationParameters(String id) { return Optional.ofNullable(simulationParameters.get(id)); } DefinitionResolver( Definitions definitions, Collection<WorkItemDefinition> workItemDefinitions, boolean jbpm, Mode...
@Test public void convertSupported() { StartEvent startEvent = mock(StartEvent.class); tested.convertNode(startEvent); verify(startEventConverter).convert(startEvent); EndEvent endEvent = mock(EndEvent.class); tested.convertNode(endEvent); verify(endEventConverter).convert(endEvent); BoundaryEvent boundaryEvent = mock(...
public Result<BpmnNode> convertNode(FlowElement flowElement) { return Match.<FlowElement, Result<BpmnNode>>of() .<StartEvent>when(e -> e instanceof StartEvent, converterFactory.startEventConverter()::convert) .<EndEvent>when(e -> e instanceof EndEvent, converterFactory.endEventConverter()::convert) .<BoundaryEvent>when...
FlowElementConverter extends AbstractConverter { public Result<BpmnNode> convertNode(FlowElement flowElement) { return Match.<FlowElement, Result<BpmnNode>>of() .<StartEvent>when(e -> e instanceof StartEvent, converterFactory.startEventConverter()::convert) .<EndEvent>when(e -> e instanceof EndEvent, converterFactory.e...
FlowElementConverter extends AbstractConverter { public Result<BpmnNode> convertNode(FlowElement flowElement) { return Match.<FlowElement, Result<BpmnNode>>of() .<StartEvent>when(e -> e instanceof StartEvent, converterFactory.startEventConverter()::convert) .<EndEvent>when(e -> e instanceof EndEvent, converterFactory.e...
FlowElementConverter extends AbstractConverter { public Result<BpmnNode> convertNode(FlowElement flowElement) { return Match.<FlowElement, Result<BpmnNode>>of() .<StartEvent>when(e -> e instanceof StartEvent, converterFactory.startEventConverter()::convert) .<EndEvent>when(e -> e instanceof EndEvent, converterFactory.e...
FlowElementConverter extends AbstractConverter { public Result<BpmnNode> convertNode(FlowElement flowElement) { return Match.<FlowElement, Result<BpmnNode>>of() .<StartEvent>when(e -> e instanceof StartEvent, converterFactory.startEventConverter()::convert) .<EndEvent>when(e -> e instanceof EndEvent, converterFactory.e...
@Test public void testCreateNode() { assertTrue(tested.createNode("id").getContent().getDefinition() instanceof BPMNDiagramImpl); }
@Override protected Node<View<BPMNDiagramImpl>, Edge> createNode(String id) { return delegate.factoryManager.newNode(id, BPMNDiagramImpl.class); }
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected Node<View<BPMNDiagramImpl>, Edge> createNode(String id) { return delegate.factoryManager.newNode(id, BPMNDiagramImpl.class); } }
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected Node<View<BPMNDiagramImpl>, Edge> createNode(String id) { return delegate.factoryManager.newNode(id, BPMNDiagramImpl.class); } RootProcessConverter(TypedFactoryManager typedFactoryManager,...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected Node<View<BPMNDiagramImpl>, Edge> createNode(String id) { return delegate.factoryManager.newNode(id, BPMNDiagramImpl.class); } RootProcessConverter(TypedFactoryManager typedFactoryManager,...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected Node<View<BPMNDiagramImpl>, Edge> createNode(String id) { return delegate.factoryManager.newNode(id, BPMNDiagramImpl.class); } RootProcessConverter(TypedFactoryManager typedFactoryManager,...
@Test public void testCreateProcessData() { assertNotNull(tested.createProcessData("id")); }
@Override public ProcessData createProcessData(String processVariables) { return new ProcessData(new ProcessVariables(processVariables)); }
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override public ProcessData createProcessData(String processVariables) { return new ProcessData(new ProcessVariables(processVariables)); } }
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override public ProcessData createProcessData(String processVariables) { return new ProcessData(new ProcessVariables(processVariables)); } RootProcessConverter(TypedFactoryManager typedFactoryManager, ...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override public ProcessData createProcessData(String processVariables) { return new ProcessData(new ProcessVariables(processVariables)); } RootProcessConverter(TypedFactoryManager typedFactoryManager, ...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override public ProcessData createProcessData(String processVariables) { return new ProcessData(new ProcessVariables(processVariables)); } RootProcessConverter(TypedFactoryManager typedFactoryManager, ...
@Test public void testCreateDiagramSet() { DiagramSet diagramSet = createDiagramSet(); assertNotNull(diagramSet); }
@Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Documentation(e.getDocumentation()), new Id(revertIllegalCharsAttribute(process.getId())), new Package(e.getPackage...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
@Test public void testGetDRGDiagramElement() { final DMNDiagramElement expected = mock(DMNDiagramElement.class); doReturn(expected).when(dmnDiagramsSessionState).getDRGDiagramElement(); final DMNDiagramElement actual = dmnDiagramsSession.getDRGDiagramElement(); assertEquals(expected, actual); }
public DMNDiagramElement getDRGDiagramElement() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagramElement).orElse(null); }
DMNDiagramsSession implements GraphsProvider { public DMNDiagramElement getDRGDiagramElement() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagramElement).orElse(null); } }
DMNDiagramsSession implements GraphsProvider { public DMNDiagramElement getDRGDiagramElement() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagramElement).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSe...
DMNDiagramsSession implements GraphsProvider { public DMNDiagramElement getDRGDiagramElement() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagramElement).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSe...
DMNDiagramsSession implements GraphsProvider { public DMNDiagramElement getDRGDiagramElement() { return Optional.ofNullable(getSessionState()).map(DMNDiagramsSessionState::getDRGDiagramElement).orElse(null); } DMNDiagramsSession(); @Inject DMNDiagramsSession(final ManagedInstance<DMNDiagramsSessionState> dmnDiagramsSe...
@Test public void testImports() { DiagramSet diagramSet = createDiagramSet(); Imports imports = diagramSet.getImports(); assertNotNull(imports); ImportsValue importsValue = imports.getValue(); assertNotNull(importsValue); List<DefaultImport> defaultImports = importsValue.getDefaultImports(); assertNotNull(defaultImport...
@Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Documentation(e.getDocumentation()), new Id(revertIllegalCharsAttribute(process.getId())), new Package(e.getPackage...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
RootProcessConverter extends BaseRootProcessConverter<BPMNDiagramImpl, DiagramSet, ProcessData, AdvancedData> { @Override protected DiagramSet createDiagramSet(Process process, ProcessPropertyReader e, DefinitionsPropertyReader d) { return new DiagramSet(new Name(revertIllegalCharsAttribute(process.getName())), new Doc...
@Test public void testConvertEdges() { Task task1 = mockTask("1"); Task task2 = mockTask("2"); BpmnNode task1Node = mockTaskNode(task1); BpmnNode task2Node = mockTaskNode(task2); SequenceFlow sequenceFlow = mockSequenceFlow("seq1", task1, task2); List<BaseElement> elements = Arrays.asList(sequenceFlow, task1, task2); a...
Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); boolean value = results.siz...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
@Test public void testConvertEdgesIgnoredNonEdgeElement() { Map<String, BpmnNode> nodes = new HashMap<>(); List<BaseElement> elements = Arrays.asList(mockTask("1")); assertFalse(converterDelegate.convertEdges(parentNode, elements, nodes).value()); }
Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); boolean value = results.siz...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
ProcessConverterDelegate { Result<Boolean> convertEdges(BpmnNode processRoot, List<BaseElement> flowElements, Map<String, BpmnNode> nodes) { List<Result<BpmnEdge>> results = flowElements.stream() .map(e -> converterFactory.edgeConverter().convertEdge(e, nodes)) .filter(Result::isSuccess) .collect(Collectors.toList()); ...
@Test public void compose() { final Result result = ResultComposer.compose(value, result1, result2, result3); assertResult(result); }
@SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } static Result composeResults(T value, Collection<Result<R>>... results); @SuppressWarnings("unchecked") static Res...
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } static Result composeResults(T value, Collection<Result<R>>... results); @SuppressWarnings("unchecked") static Res...
@Test public void composeList() { final Result result = ResultComposer.compose(value, result1, result2, result3); assertResult(result); }
@SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } }
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } static Result composeResults(T value, Collection<Result<R>>... results); @SuppressWarnings("unchecked") static Res...
ResultComposer { @SuppressWarnings("unchecked") public static <T> Result compose(T value, Result... result) { List<Result<Object>> results = Arrays.asList(result); return composeResults(value, results); } static Result composeResults(T value, Collection<Result<R>>... results); @SuppressWarnings("unchecked") static Res...