SemanticModules semanticModules = new SemanticModules();
semanticModules.addSemanticModule( new BPMNSemanticModule() );
semanticModules.addSemanticModule( new BPMNDISemanticModule() );
XmlProcessReader xmlReader = new XmlProcessReader( semanticModules,
getClassLoader() );
RuleFlowProcess process = (RuleFlowProcess) xmlReader.read( isr );
if ( process == null ) {
throw new IllegalArgumentException( "Could not read process" );
}
log.debug( "Processing " + process.getId() );
result = new HashMap<String, String[]>();
StartNode start = process.getStart();
Node target = start.getTo().getTo();
if ( target instanceof Split ) {
Split split = (Split) target;
for ( Connection connection : split.getDefaultOutgoingConnections() ) {
Constraint constraint = split.getConstraint( connection );