Split split = (Split) target;
for ( Connection connection : split.getDefaultOutgoingConnections() ) {
String s = constraints.get( XmlBPMNProcessDumper.getUniqueNodeId( connection.getTo() ) );
if ( s != null ) {
System.out.println( "Found constraint to node " + connection.getTo().getName() + ": " + s );
Constraint constraint = split.getConstraint( connection );
if ( constraint == null ) {
constraint = new ConstraintImpl();
split.setConstraint( connection,
constraint );
}
constraint.setConstraint( s );
}
}
}
String newXml = XmlBPMNProcessDumper.INSTANCE.dump( process );
System.out.println( newXml );