test_class.declarator: DEPLOYMENT_CREATED_EVENT_TYPE = "DEPLOYMENT_CREATED_EVENT"
test_class.modifier: private static final
test_class.original_string: private static final String DEPLOYMENT_CREATED_EVENT_TYPE = "DEPLOYMENT_CREATED_EVENT";
test_class.type: String
test_class.var_name: DEPLOYMENT_CREATED_EVENT_TYPE
test_class.declarator: DEPLOYMENT_RESOURCES_KEY = "deploymentResources"
test_class.modifier: private static final
test_class.original_string: private static final String DEPLOYMENT_RESOURCES_KEY = "deploymentResources";
test_class.type: String
test_class.var_name: DEPLOYMENT_RESOURCES_KEY
test_class.declarator: PROCESS_INSTANCE_START_EVENT_TYPE = "PROCESS_INSTANCE_START"
test_class.modifier: private static final
test_class.original_string: private static final String PROCESS_INSTANCE_START_EVENT_TYPE = "PROCESS_INSTANCE_START";
test_class.type: String
test_class.var_name: PROCESS_INSTANCE_START_EVENT_TYPE
test_class.declarator: PROCESS_DEFINITION_ID_KEY = "processDefinitionId"
test_class.modifier: private static final
test_class.original_string: private static final String PROCESS_DEFINITION_ID_KEY = "processDefinitionId";
test_class.type: String
test_class.var_name: PROCESS_DEFINITION_ID_KEY
test_class.declarator: VARIABLES_KEY = "variables"
test_class.modifier: private static final
test_class.original_string: private static final String VARIABLES_KEY = "variables";
test_class.type: String
test_class.var_name: VARIABLES_KEY
test_class.declarator: USER_TASK_COMPLETED_EVENT_TYPE = "USER_TASK_COMPLETED"
test_class.modifier: private static final
test_class.original_string: private static final String USER_TASK_COMPLETED_EVENT_TYPE = "USER_TASK_COMPLETED";
test_class.type: String
test_class.var_name: USER_TASK_COMPLETED_EVENT_TYPE
test_class.declarator: BUSINESS_KEY = "testBusinessKey"
test_class.modifier: private static final
test_class.original_string: private static final String BUSINESS_KEY = "testBusinessKey";
test_class.type: String
test_class.var_name: BUSINESS_KEY
test_class.declarator: TEST_VALUE = "TestValue"
test_class.modifier: public static final
test_class.original_string: public static final String TEST_VALUE = "TestValue";
test_class.type: String
test_class.var_name: TEST_VALUE
test_class.declarator: TEST_VARIABLE = "testVariable"
test_class.modifier: public static final
test_class.original_string: public static final String TEST_VARIABLE = "testVariable";
test_class.type: String
test_class.var_name: TEST_VARIABLE
test_class.declarator: USERTASK_PROCESS = "org/flowable/crystalball/simulator/impl/playback/PlaybackProcessStartTest.testUserTask.bpmn20.xml"
test_class.modifier: private static final
test_class.original_string: private static final String USERTASK_PROCESS = "org/flowable/crystalball/simulator/impl/playback/PlaybackProcessStartTest.testUserTask.bpmn20.xml";
test_class.type: String
test_class.var_name: USERTASK_PROCESS
test_class.declarator: listener
test_class.modifier: protected
test_class.original_string: protected InMemoryRecordFlowableEventListener listener;
test_class.type: InMemoryRecordFlowableEventListener
test_class.var_name: listener
test_class.file: modules/flowable-crystalball/src/test/java/org/flowable/crystalball/simulator/SimpleSimulationRunTest.java
test_class.identifier: SimpleSimulationRunTest
test_case.body: @Test
      public void testRunToTime() throws Exception {
  
          recordEvents();
  
          SimulationDebugger simDebugger = createDebugger();
  
          simDebugger.init(new NoExecutionVariableScope());
  
          RuntimeService runtimeService = SimulationRunContext.getRuntimeService();
          TaskService taskService = SimulationRunContext.getTaskService();
          HistoryService historyService = SimulationRunContext.getHistoryService();
  
          simDebugger.runTo(0);
          ProcessInstance procInstance = runtimeService.createProcessInstanceQuery().active().processInstanceBusinessKey("oneTaskProcessBusinessKey").singleResult();
          assertThat(procInstance).isNull();
  
          // debugger step - deploy process
          simDebugger.runTo(1);
          step0Check(SimulationRunContext.getRepositoryService());
  
          // debugger step - start process and stay on the userTask
          simDebugger.runTo(1001);
          step1Check(runtimeService, taskService);
  
          // process engine should be in the same state as before
          simDebugger.runTo(2000);
          step1Check(runtimeService, taskService);
  
          // debugger step - complete userTask and finish process
          simDebugger.runTo(2500);
          step2Check(runtimeService, taskService);
  
          checkStatus(historyService);
  
          simDebugger.close();
          ProcessEngines.destroy();
      }
test_case.class_method_signature: SimpleSimulationRunTest.testRunToTime()
test_case.full_signature: @Test public void testRunToTime()
test_case.identifier: testRunToTime
test_case.invocations: recordEvents createDebugger init getRuntimeService getTaskService getHistoryService runTo singleResult processInstanceBusinessKey active createProcessInstanceQuery isNull assertThat runTo step0Check getRepositoryService runTo step1Check runTo step1Check runTo step2Check checkStatus close destroy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRunToTime()
focal_class.declarator: eventCalendar
focal_class.modifier: protected
focal_class.original_string: protected EventCalendar eventCalendar;
focal_class.type: EventCalendar
focal_class.var_name: eventCalendar
focal_class.declarator: simulationStartDate = new Date(0)
focal_class.modifier: protected
focal_class.original_string: protected Date simulationStartDate = new Date(0);
focal_class.type: Date
focal_class.var_name: simulationStartDate
focal_class.declarator: dueDate
focal_class.modifier: protected
focal_class.original_string: protected Date dueDate;
focal_class.type: Date
focal_class.var_name: dueDate
focal_class.file: modules/flowable-crystalball/src/main/java/org/flowable/crystalball/simulator/SimpleSimulationRun.java
focal_class.identifier: SimpleSimulationRun
focal_class.class_method_signature: SimpleSimulationRun.SimpleSimulationRun(Builder builder)
focal_class.full_signature: protected  SimpleSimulationRun(Builder builder)
focal_class.identifier: SimpleSimulationRun
focal_class.modifiers: protected
focal_class.parameters: (Builder builder)
focal_class.signature:  SimpleSimulationRun(Builder builder)
focal_class.class_method_signature: SimpleSimulationRun.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: SimpleSimulationRun.initSimulationRunContext(VariableScope execution)
focal_class.full_signature: @Override protected void initSimulationRunContext(VariableScope execution)
focal_class.identifier: initSimulationRunContext
focal_class.modifiers: @Override protected
focal_class.parameters: (VariableScope execution)
focal_class.return: void
focal_class.signature: void initSimulationRunContext(VariableScope execution)
focal_class.class_method_signature: SimpleSimulationRun.simulationEnd(SimulationEvent event)
focal_class.full_signature: @Override protected boolean simulationEnd(SimulationEvent event)
focal_class.identifier: simulationEnd
focal_class.modifiers: @Override protected
focal_class.parameters: (SimulationEvent event)
focal_class.return: boolean
focal_class.signature: boolean simulationEnd(SimulationEvent event)
focal_class.superclass: extends AbstractSimulationRun
focal_method.body: @Override
      public void close() {
          // remove simulation from simulation context
          SimulationRunContext.getEventCalendar().clear();
          SimulationRunContext.removeEventCalendar();
          SimulationRunContext.getProcessEngine().close();
          SimulationRunContext.removeProcessEngine();
      }
focal_method.class_method_signature: SimpleSimulationRun.close()
focal_method.full_signature: @Override public void close()
focal_method.identifier: close
focal_method.invocations: clear getEventCalendar removeEventCalendar close getProcessEngine removeProcessEngine
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void close()