Class BpmClient


  • public class BpmClient
    extends Object
    BPM engine client that allows to drive bpmn process workflows with fluent API.

    Test

    Allows to simulate real-user interactions with bpm processes and assert its results. Therefore this API is the key to protect your investment and make TDD approaches possible.

    Since:
    7.4
    API:
    This is a public API.
    • Method Detail

      • start

        public ByBuilder start()
        Start a process or task.

        Example:

        
         bpmClient.start().process(startElement).execute();
         bpmClient.start().task(nextTask).execute();
         
        Returns:
        request builder
        API:
        This public API is available in Java.
      • mock

        public Mocker mock()

        Mocks process elements for testing. Use it to mock UI elements or elements that communicate with external systems like databases, SOAP and REST web services, etc.

        Example how to mock an HTML Dialog:

        
         BpmElement HTML_DIALOG = BpmElement.processName("ProcurementRequest").name("Registration Form");
         bpmClient.mock().element(HTML_DIALOG).with(ProcurementRequest.class, (in, out) -> 
         { 
           out.product = "PC"; 
           out.price = 877.99;
           out.description = "My old PC broke down" ;
         }); 
         
        Returns:
        mocker
        API:
        This public API is available in Java.