repo.addSourceDir("src/workflow/java");
repo.setTargetDir("build/compiled_workflow");
repo.start();
WorkflowFactory<String> wfFactory = repo.createWorkflowFactory("de.scoopgmbh.copper.test.PersistentSpock2GTestWF");
Workflow<String> wf = wfFactory.newInstance();
JdkRandomUUIDFactory idFactory = new JdkRandomUUIDFactory();
wf.setId(idFactory.createId());
wf.setPriority(5);
wf.setData(data);
wf.setProcessorPoolId("P#DEFAULT");
Serializer serializer = new StandardJavaSerializer();