[jboss-user] [jBPM] - Re: JBPM5 Implementation
Donald Walters
do-not-reply at jboss.com
Mon Aug 1 23:54:30 EDT 2011
Donald Walters [http://community.jboss.org/people/dondragon2] created the discussion
"Re: JBPM5 Implementation"
To view the discussion, visit: http://community.jboss.org/message/618714#618714
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/618714#618714]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110801/c2556001/attachment.html
More information about the jboss-user
mailing list