Thanks guys but I think I am missing something here.
I have the following JBPM4 definition. The result from each process goes to the other process also the original variables that are passed.
Below is the GenericProcess class
public class GenericProcess implements ActivityBehaviour {
private HashMap<String, String> properties = new HashMap<String, String>();
public void execute(ActivityExecution ae) throws Exception {
String type = properties.get("process.type");
Object result = ae.getVariable("response");
if (type.equals("prompt")) {
result = new PromptProcess().execute(properties);
}
if (type.equals("filter")) {
result = new FilterProcess.execute(properties);
}
ae.setVariable("response", result);
}
public HashMap<String, String> getProperties() {
return properties;
}
public void setProperties(HashMap<String, String> properties) {
this.properties = properties;
}
}
How do I replicate something like this in JBPM5?