Using activiti in java

Hello, boss! I just got in touch with this, and then I watched the video and wrote the code.

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

/ / deployment process definition

@Test
public void test2(){

/ / get a deployment builder object to load the process definition file (test.bpmn,test.png) and complete the deployment of the process definition

    DeploymentBuilder builder = processEngine.getRepositoryService().createDeployment();

/ / load the process definition file

    builder.addClasspathResource("test1.bpmn");
    builder.addClasspathResource("test1.png");

/ / deployment process definition

    org.activiti.engine.repository.Deployment deployment = builder.deploy();
    System.out.println(deployment.getId());
}

when running, the operation mode is as shown in the following figure.
clipboard.png

clipboard.png
which boss seems to have a look? thank you very much

Apr.24,2022

clipboard.png

Menu