This page contains examples of how to create a complete process definition programmatically in Java using the processDefinitionBuilder. A program built in this way does not contain any forms. You cannot import it into Bonita BPM Studio, and you cannot run it from Bonita BPM Portal. However, a process built in this way can be useful for testing.
See Deploy a process for an example of how to deploy a process created with the processDefinitionBuilder.
See also Automating process builds for information about building a bar file from a process in a repository.