Tabnine Logo
HistoricVariableInstanceEntity.getByteArrayId
Code IndexAdd Tabnine to your IDE (free)

How to use
getByteArrayId
method
in
org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity

Best Java code snippets using org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity.getByteArrayId (Showing top 12 results out of 315)

origin: camunda/camunda-bpm-platform

public Object getPersistentState() {
 List<Object> state = new ArrayList<Object>(8);
 state.add(getSerializerName());
 state.add(textValue);
 state.add(textValue2);
 state.add(this.state);
 state.add(doubleValue);
 state.add(longValue);
 state.add(processDefinitionId);
 state.add(processDefinitionKey);
 state.add(getByteArrayId());
 return state;
}
origin: camunda/camunda-bpm-platform

public Object getPersistentState() {
 List<Object> state = new ArrayList<Object>(8);
 state.add(getSerializerName());
 state.add(textValue);
 state.add(textValue2);
 state.add(this.state);
 state.add(doubleValue);
 state.add(longValue);
 state.add(processDefinitionId);
 state.add(processDefinitionKey);
 state.add(getByteArrayId());
 return state;
}
origin: camunda/camunda-bpm-platform

@Override
public String toString() {
 return this.getClass().getSimpleName()
  + "[id=" + id
  + ", processDefinitionKey=" + processDefinitionKey
  + ", processDefinitionId=" + processDefinitionId
  + ", rootProcessInstanceId=" + rootProcessInstanceId
  + ", removalTime=" + removalTime
  + ", processInstanceId=" + processInstanceId
  + ", taskId=" + taskId
  + ", executionId=" + executionId
  + ", tenantId=" + tenantId
  + ", activityInstanceId=" + activityInstanceId
  + ", caseDefinitionKey=" + caseDefinitionKey
  + ", caseDefinitionId=" + caseDefinitionId
  + ", caseInstanceId=" + caseInstanceId
  + ", caseExecutionId=" + caseExecutionId
  + ", name=" + name
  + ", createTime=" + createTime
  + ", revision=" + revision
  + ", serializerName=" + getSerializerName()
  + ", longValue=" + longValue
  + ", doubleValue=" + doubleValue
  + ", textValue=" + textValue
  + ", textValue2=" + textValue2
  + ", state=" + state
  + ", byteArrayId=" + getByteArrayId()
  + "]";
}
origin: camunda/camunda-bpm-platform

@Override
public String toString() {
 return this.getClass().getSimpleName()
  + "[id=" + id
  + ", processDefinitionKey=" + processDefinitionKey
  + ", processDefinitionId=" + processDefinitionId
  + ", rootProcessInstanceId=" + rootProcessInstanceId
  + ", removalTime=" + removalTime
  + ", processInstanceId=" + processInstanceId
  + ", taskId=" + taskId
  + ", executionId=" + executionId
  + ", tenantId=" + tenantId
  + ", activityInstanceId=" + activityInstanceId
  + ", caseDefinitionKey=" + caseDefinitionKey
  + ", caseDefinitionId=" + caseDefinitionId
  + ", caseInstanceId=" + caseInstanceId
  + ", caseExecutionId=" + caseExecutionId
  + ", name=" + name
  + ", createTime=" + createTime
  + ", revision=" + revision
  + ", serializerName=" + getSerializerName()
  + ", longValue=" + longValue
  + ", doubleValue=" + doubleValue
  + ", textValue=" + textValue
  + ", textValue2=" + textValue2
  + ", state=" + state
  + ", byteArrayId=" + getByteArrayId()
  + "]";
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 // when
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray, notNullValue());
 // then
 assertThat(byteArray.getRootProcessInstanceId(), is(processInstance.getProcessInstanceId()));
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 ClockUtil.setCurrentTime(START_DATE);
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 // when
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray, notNullValue());
 Date removalTime = addDays(START_DATE, 5);
 // then
 assertThat(byteArray.getRemovalTime(), is(removalTime));
}
origin: camunda/camunda-bpm-platform

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ClockUtil.setCurrentTime(START_DATE);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray.getRemovalTime(), nullValue());
 String taskId = taskService.createTaskQuery().singleResult().getId();
 ClockUtil.setCurrentTime(END_DATE);
 // when
 taskService.complete(taskId);
 byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 Date removalTime = addDays(END_DATE, 5);
 // then
 assertThat(byteArray.getRemovalTime(), is(removalTime));
}
origin: org.camunda.bpm/camunda-engine

public Object getPersistentState() {
 List<Object> state = new ArrayList<Object>(8);
 state.add(getSerializerName());
 state.add(textValue);
 state.add(textValue2);
 state.add(this.state);
 state.add(doubleValue);
 state.add(longValue);
 state.add(processDefinitionId);
 state.add(processDefinitionKey);
 state.add(getByteArrayId());
 return state;
}
origin: org.camunda.bpm/camunda-engine

@Override
public String toString() {
 return this.getClass().getSimpleName()
  + "[id=" + id
  + ", processDefinitionKey=" + processDefinitionKey
  + ", processDefinitionId=" + processDefinitionId
  + ", rootProcessInstanceId=" + rootProcessInstanceId
  + ", removalTime=" + removalTime
  + ", processInstanceId=" + processInstanceId
  + ", taskId=" + taskId
  + ", executionId=" + executionId
  + ", tenantId=" + tenantId
  + ", activityInstanceId=" + activityInstanceId
  + ", caseDefinitionKey=" + caseDefinitionKey
  + ", caseDefinitionId=" + caseDefinitionId
  + ", caseInstanceId=" + caseInstanceId
  + ", caseExecutionId=" + caseExecutionId
  + ", name=" + name
  + ", createTime=" + createTime
  + ", revision=" + revision
  + ", serializerName=" + getSerializerName()
  + ", longValue=" + longValue
  + ", doubleValue=" + doubleValue
  + ", textValue=" + textValue
  + ", textValue2=" + textValue2
  + ", state=" + state
  + ", byteArrayId=" + getByteArrayId()
  + "]";
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 // when
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray, notNullValue());
 // then
 assertThat(byteArray.getRootProcessInstanceId(), is(processInstance.getProcessInstanceId()));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 ClockUtil.setCurrentTime(START_DATE);
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 // when
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray, notNullValue());
 Date removalTime = addDays(START_DATE, 5);
 // then
 assertThat(byteArray.getRemovalTime(), is(removalTime));
}
origin: org.camunda.bpm/camunda-engine

@Test
public void shouldResolveByteArray_SetVariable() {
 // given
 testRule.deploy(CALLING_PROCESS);
 testRule.deploy(CALLED_PROCESS);
 ClockUtil.setCurrentTime(START_DATE);
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(CALLING_PROCESS_KEY);
 runtimeService.setVariable(processInstance.getId(), "aVariableName", new ByteArrayInputStream("hello world".getBytes()));
 HistoricVariableInstanceEntity historicVariableInstance = (HistoricVariableInstanceEntity) historyService.createHistoricVariableInstanceQuery().singleResult();
 ByteArrayEntity byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 // assume
 assertThat(byteArray.getRemovalTime(), nullValue());
 String taskId = taskService.createTaskQuery().singleResult().getId();
 ClockUtil.setCurrentTime(END_DATE);
 // when
 taskService.complete(taskId);
 byteArray = findByteArrayById(historicVariableInstance.getByteArrayId());
 Date removalTime = addDays(END_DATE, 5);
 // then
 assertThat(byteArray.getRemovalTime(), is(removalTime));
}
org.camunda.bpm.engine.impl.persistence.entityHistoricVariableInstanceEntitygetByteArrayId

Popular methods of HistoricVariableInstanceEntity

  • getTypeName
  • <init>
  • delete
  • getCaseInstanceId
  • getId
  • getProcessDefinitionKey
  • getProcessInstanceId
  • getSerializer
  • getSerializerName
  • getTenantId
  • getTypedValue
  • setByteArrayValue
  • getTypedValue,
  • setByteArrayValue,
  • setSerializerName,
  • setState,
  • updateFromEvent,
  • getByteArrayValue,
  • getByteArrayValueId,
  • getName,
  • getRevision

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now