-
1. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
forgeyan Jun 3, 2009 5:21 AM (in response to alexmcmanus)I have the same problems.
Could you send me email if you get it.
My email:forgeyan@live.com -
2. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
kukeltje Jun 4, 2009 7:47 AM (in response to alexmcmanus)what are you trying to achieve with alpha 2? Please try beta2 and the latest userguide and /or devguide.
Depending on what you want to achieve, could be that you want to use the ProcessDefinitionBuilder -
3. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
marjan Jun 30, 2009 3:16 AM (in response to alexmcmanus) -
4. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
marjan Jun 30, 2009 3:17 AM (in response to alexmcmanus)
package impl;
import org.jbpm.api.activity.ActivityBehaviour;
import org.jbpm.api.activity.ActivityExecution;
import org.jbpm.jpdl.internal.activity.StartActivity;
import org.jbpm.pvm.internal.builder.ProcessDefinitionBuilder;
import org.jbpm.pvm.internal.model.ProcessDefinitionImpl;
/**
* @author Marjan Sterjev
*
*/
public class Display implements ActivityBehaviour {
private static final long serialVersionUID = 1L;
String message;
public Display(String message) {
this.message = message;
}
public void execute(ActivityExecution execution) {
System.out.println(message);
}
public static void main(String[] args) throws Throwable {
ProcessDefinitionBuilder builder = ProcessDefinitionBuilder
.startProcess("Hello World");
builder.startActivity(new StartActivity()).initial().transition(
"hello display").endActivity();
builder.startActivity("hello display", new Display("Hello"))
.transition("world display").endActivity();
builder.startActivity("world display", new Display("World"))
.endActivity();
ProcessDefinitionImpl processDefinition = builder.endProcess();
processDefinition.startProcessInstance();
}
} -
5. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
kukeltje Jul 1, 2009 7:30 AM (in response to alexmcmanus)Hi,
What is the reason for this post? Is it something that works? or does *not* work? or? -
6. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
marjan Jul 1, 2009 2:48 PM (in response to alexmcmanus)Just a working example related to the initial question!
-
7. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
kukeltje Jul 1, 2009 6:00 PM (in response to alexmcmanus)thanks..
-
8. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
gubespam Mar 3, 2010 11:17 AM (in response to kukeltje)Is there any documentation available (anywhere) for ProcessDefinitionBuilder? There are no javadocs. -
9. Re: jBPM 4 ProcessFactory/ProcessBuilder not found
kukeltje Mar 8, 2010 7:34 AM (in response to gubespam)These are pvm classes and meant to be used by people who want to implement their own DSL on top of the pvm. Look in the source of jBPM on how to use it (e.g. look at testcase etc.)