Class Scenario

    • Constructor Detail

      • Scenario

        public Scenario()
    • Method Detail

      • run

        public static ProcessRunner.StartableRunner run​(ProcessScenario scenario)
        Run a new process instance by means of the scenario interface provided as parameter. .
        Parameters:
        scenario - interface to be used for running the process instance
      • use

        public static ProcessRunner use​(ProcessScenario scenario)
        Integrate an existing process instance (e.g. created by a Call Activity) into a scenario run by means of the scenario interface provided as parameter.
        Parameters:
        scenario - interface to be used for running the process instance
      • instance

        public abstract org.camunda.bpm.engine.runtime.ProcessInstance instance​(ProcessScenario scenario)
        Retrieve the process instance run by the scenario provided as parameter.
        Parameters:
        scenario - for which the process instance should be delivered
        Returns:
        the process instance run by that scenario.
        Throws:
        IllegalStateException - in case the scenario executed more than a single process instance based on the scenario provided as a parameter.
      • instances

        public abstract List<org.camunda.bpm.engine.runtime.ProcessInstance> instances​(ProcessScenario scenario)
        Retrieve the process instances run by the scenario provided as parameter.
        Parameters:
        scenario - for which the process instances should be delivered
        Returns:
        the process instances run by that scenario in the order in which they were added to the scenario during the scenario runtime.