import org.jbpm.workflow.instance.node.SplitInstance;
public class JavaReturnValueConstraintEvaluatorBuilderTest extends JbpmTestCase {
public void testSimpleReturnValueConstraintEvaluator() throws Exception {
final Package pkg = new Package( "pkg1" );
ProcessDescr processDescr = new ProcessDescr();
processDescr.setClassName( "Process1" );
processDescr.setName( "Process1" );
WorkflowProcessImpl process = new WorkflowProcessImpl();
process.setName( "Process1" );
process.setPackageName( "pkg1" );
ReturnValueDescr descr = new ReturnValueDescr();
descr.setText( "return value;" );
PackageBuilder pkgBuilder = new PackageBuilder( pkg );
DialectCompiletimeRegistry dialectRegistry = pkgBuilder.getPackageRegistry( pkg.getName() ).getDialectCompiletimeRegistry();
JavaDialect javaDialect = (JavaDialect) dialectRegistry.getDialect( "java" );
ProcessBuildContext context = new ProcessBuildContext( pkgBuilder,
pkg,
process,