Search in sources :

Example 6 with SerializableVariable

use of org.camunda.bpm.engine.test.history.SerializableVariable in project camunda-bpm-platform by camunda.

the class RuntimeServiceTest method testChangeSerializableInsideEngine.

@Deployment
@Test
public void testChangeSerializableInsideEngine() {
    runtimeService.startProcessInstanceByKey("testProcess");
    Task task = taskService.createTaskQuery().singleResult();
    SerializableVariable var = (SerializableVariable) taskService.getVariable(task.getId(), "variableName");
    assertNotNull(var);
}
Also used : Task(org.camunda.bpm.engine.task.Task) SerializableVariable(org.camunda.bpm.engine.test.history.SerializableVariable) Test(org.junit.Test) Deployment(org.camunda.bpm.engine.test.Deployment)

Aggregations

SerializableVariable (org.camunda.bpm.engine.test.history.SerializableVariable)6 Deployment (org.camunda.bpm.engine.test.Deployment)4 Test (org.junit.Test)4 HashMap (java.util.HashMap)3 ProcessInstance (org.camunda.bpm.engine.runtime.ProcessInstance)3 SimpleDateFormat (java.text.SimpleDateFormat)2 Date (java.util.Date)2 VariableInstance (org.camunda.bpm.engine.runtime.VariableInstance)2 VariableInstanceQuery (org.camunda.bpm.engine.runtime.VariableInstanceQuery)2 Task (org.camunda.bpm.engine.task.Task)2 CoreMatchers.containsString (org.hamcrest.CoreMatchers.containsString)2 HistoricDetail (org.camunda.bpm.engine.history.HistoricDetail)1 HistoricProcessInstance (org.camunda.bpm.engine.history.HistoricProcessInstance)1 HistoricVariableInstance (org.camunda.bpm.engine.history.HistoricVariableInstance)1 HistoricVariableInstanceQuery (org.camunda.bpm.engine.history.HistoricVariableInstanceQuery)1 HistoricVariableUpdate (org.camunda.bpm.engine.history.HistoricVariableUpdate)1