src/org/worklang/execution/ExecutionApi.java
//Utility method for adding a route for a primitive transition definition
Utility method for adding a route for a primitive transition definition
Utility method for adding a route for a primitive transition definition
public void addCompoundTransitionProcessor(String fieldName, Instance transition) {
		String routePath = "/" + fieldName.toLowerCase() + "/" +
		transition.getTransitionDeclaration().getTransition().getName().toLowerCase() + "/" +
		transition.getName().replaceAll("\\s", "").toLowerCase();
		logger.info("match (n:`transition instance` {field:'"+fieldName+"', name:'"+transition.getName()+"'}) return n");
		Vertex transitionVertex = graph.vertices("match (n:`transition instance` {field:'"+fieldName+"', name:'"+transition.getName()+"'}) return n").next();
		CompoundTransitionProcessor processor = new CompoundTransitionProcessor(vertx, client, transitionVertex, fieldName);
		logger.info("Registering compound instance transition at {}", routePath);
		Route route = router.route(routePath).handler(processor::process);
		transitions.add(routePath);
	}
public void addCompoundTransitionProcessor ( String fieldName , Instance transition ) { String routePath = "/" + fieldName . toLowerCase ( ) + "/" + transition . getTransitionDeclaration ( ) . getTransition ( ) . getName ( ) . toLowerCase ( ) + "/" + transition . getName ( ) . replaceAll ( "\\s" , "" ) . toLowerCase ( ) ; logger . info ( "match (n:`transition instance` {field:'" + fieldName + "', name:'" + transition . getName ( ) + "'}) return n" ) ; Vertex transitionVertex = graph . vertices ( "match (n:`transition instance` {field:'" + fieldName + "', name:'" + transition . getName ( ) + "'}) return n" ) . next ( ) ; CompoundTransitionProcessor processor = new CompoundTransitionProcessor ( vertx , client , transitionVertex , fieldName ) ; logger . info ( "Registering compound instance transition at {}" , routePath ) ; Route route = router . route ( routePath ) . handler ( processor :: process ) ; transitions . add ( routePath ) ; }
Utility method for adding a route for a primitive transition definition
Utility method for adding a route for a primitive transition definition