private void verifyLineageGraphForReplicationOrEviction(
      String feedName,
      String feedInstanceDataPath,
      WorkflowExecutionContext context,
      RelationshipLabel edgeLabel)
      throws Exception {
    String feedInstanceName =
        InstanceRelationshipGraphBuilder.getFeedInstanceName(
            feedName,
            context.getClusterName(),
            feedInstanceDataPath,
            context.getNominalTimeAsISO8601());
    Vertex feedVertex = getEntityVertex(feedInstanceName, RelationshipType.FEED_INSTANCE);

    Edge edge = feedVertex.getEdges(Direction.OUT, edgeLabel.getName()).iterator().next();
    Assert.assertNotNull(edge);
    Assert.assertEquals(
        edge.getProperty(RelationshipProperty.TIMESTAMP.getName()),
        context.getTimeStampAsISO8601());

    Vertex clusterVertex = edge.getVertex(Direction.IN);
    Assert.assertEquals(
        clusterVertex.getProperty(RelationshipProperty.NAME.getName()), context.getClusterName());
  }
 private void updateExportedFeedInstance(WorkflowExecutionContext context) throws FalconException {
   LOG.info("Updating export feed instance: {}", context.getNominalTimeAsISO8601());
   instanceGraphBuilder.addExportedInstance(context);
 }
 private void updateProcessInstance(WorkflowExecutionContext context) throws FalconException {
   LOG.info("Updating process instance: {}", context.getNominalTimeAsISO8601());
   Vertex processInstance = instanceGraphBuilder.addProcessInstance(context);
   instanceGraphBuilder.addOutputFeedInstances(context, processInstance);
   instanceGraphBuilder.addInputFeedInstances(context, processInstance);
 }