Tabnine Logo
Edge.fromId
Code IndexAdd Tabnine to your IDE (free)

How to use
fromId
method
in
com.effektif.workflow.api.workflow.diagram.Edge

Best Java code snippets using com.effektif.workflow.api.workflow.diagram.Edge.fromId (Showing top 6 results out of 315)

origin: effektif/effektif

diagram.edges.stream()
 .filter(edge -> activityIds.contains(edge.fromId))
 .forEach(edge -> edge.fromId("shape-" + edge.fromId));
origin: effektif/effektif

/**
 * Returns a list of edges read from sequenceFlow element transitions, and BPMNEdge coordinates.
 */
private List<Edge> readEdges(List<Node> shapes, List<Transition> transitions, XmlElement planeElement) {
 Map<String, Edge> edgesBySequenceFlowId = readEdgesBySequenceFlowId(planeElement);
 // Map shape activity IDs to shape IDs, which are needed for edge from/to IDs.
 Map<String,String> nodeIdByActivityId = new HashMap<>();
 for (Node shape : shapes) {
  nodeIdByActivityId.put(shape.elementId, shape.id);
 }
 // Add node IDs from the previously-parsed workflow transitions and diagram nodes.
 List<Edge> edges = new ArrayList<>();
 for (Transition transition : transitions) {
  String sequenceFlowId = transition.getId();
  Edge edge = edgesBySequenceFlowId.get(sequenceFlowId);
  if (edge==null) {
   BadRequestException.checkNotNull(edge, "No edge for sequenceFlow " + sequenceFlowId);
  }
  edge.fromId(nodeIdByActivityId.get(transition.getFromId()));
  edge.toId(nodeIdByActivityId.get(transition.getToId()));
  edges.add(edge);
 }
 return edges;
}
origin: com.effektif/effektif-workflow-api

public Diagram addEdge(String transitionId, String fromId, String toId, Point...dockers) {
 return addEdge(new Edge()
  .transitionId(transitionId)
  .fromId(fromId)
  .toId(toId)
  .dockers(Arrays.asList(dockers)));
}
origin: effektif/effektif

public Diagram addEdge(String transitionId, String fromId, String toId, Point...dockers) {
 return addEdge(new Edge()
  .transitionId(transitionId)
  .fromId(fromId)
  .toId(toId)
  .dockers(Arrays.asList(dockers)));
}
origin: effektif/effektif

@Test
public void testSetFromAndTo() {
 String from = "n1";
 String to = "n2";
 Edge edge = new Edge()
  .fromId(from)
  .toId(to);
 assertEquals(from, edge.fromId);
 assertEquals(to, edge.toId);
}
 
origin: effektif/effektif

 @Test
 public void testEquals() {
  List<Point> dockers = new ArrayList<>();
  dockers.add(Point.of(1.0, 2.0));
  dockers.add(Point.of(4.0, 5.0));
  dockers.add(Point.of(6.0, 7.0));
  String from = "n1";
  String to = "n2";
  String transId = "t1";
  
  Edge edge1 = new Edge()
   .transitionId(transId)
   .fromId(from)
   .toId(to)
   .dockers(dockers);
  Edge edge2 = new Edge()
   .transitionId(transId)
   .fromId(from)
   .toId(to)
   .dockers(dockers);
  
  assertEquals(edge1, edge2);
  assertEquals(edge1.hashCode(), edge2.hashCode());
 }
}
com.effektif.workflow.api.workflow.diagramEdgefromId

Popular methods of Edge

  • <init>
  • dockers
  • toId
  • transitionId
  • id
  • hashCode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JButton (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now