0 Replies Latest reply on Mar 6, 2019 9:41 AM by kraussj

    How can i configure the jbpm executor in a java project with embedded enigne?

    kraussj

      Hey community,

      at the moment, i try to run a small example process with parallel execution of some service tasks. Therefore, i want configure the jbpm executor to incease the threadPoolSize. I red in the user guide in chapter 25.2.2.2 that it is done via system properties.

       

      However, i only can find information about how to change system properties in the host.xml files of WildFly or JBoss EAP cluster in chapter 11.1.3 of the user guide.

       

      My code is very simple so far:

       

      KieHelper kieHelper = new KieHelper();
      KieBase kieBase = kieHelper.addResource(ResourceFactory.newClassPathResource("jbpm_Gateway.bpmn")).build();
      
      KieSession ksession = kieBase.newKieSession();
      ksession.getWorkItemManager().registerWorkItemHandler("Service Task", new ServiceTaskHandler());
      
      ProcessInstance processInstance = ksession.startProcess("jBPM_Parallel-Gateway2");

       

      I tried to add an application.properties file to the resource folder but it didn't change anything.

       

      Can somebody help me to set the configuration correctly?

       

      Thanks in advance

      Jürgen