Tabnine Logo
HistoricFormField
Code IndexAdd Tabnine to your IDE (free)

How to use
HistoricFormField
in
org.camunda.bpm.engine.history

Best Java code snippets using org.camunda.bpm.engine.history.HistoricFormField (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

public static HistoricFormField createMockHistoricFormField(String tenantId) {
 HistoricFormField historicFromField = mock(HistoricFormField.class);
 when(historicFromField.getId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_ID);
 when(historicFromField.getProcessDefinitionKey()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_PROC_DEF_KEY);
 when(historicFromField.getProcessDefinitionId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_PROC_DEF_ID);
 when(historicFromField.getProcessInstanceId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_PROC_INST_ID);
 when(historicFromField.getActivityInstanceId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_ACT_INST_ID);
 when(historicFromField.getExecutionId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_EXEC_ID);
 when(historicFromField.getTaskId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_TASK_ID);
 when(historicFromField.getTime()).thenReturn(DateTimeUtil.parseDate(EXAMPLE_HISTORIC_FORM_FIELD_TIME));
 when(historicFromField.getRemovalTime()).thenReturn(DateTimeUtil.parseDate(EXAMPLE_HISTORIC_FORM_FIELD_TIME));
 when(historicFromField.getFieldId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_FIELD_ID);
 when(historicFromField.getFieldValue()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_VALUE);
 when(historicFromField.getCaseDefinitionKey()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_CASE_DEF_KEY);
 when(historicFromField.getCaseDefinitionId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_CASE_DEF_ID);
 when(historicFromField.getCaseInstanceId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_CASE_INST_ID);
 when(historicFromField.getCaseExecutionId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_CASE_EXEC_ID);
 when(historicFromField.getTenantId()).thenReturn(tenantId);
 when(historicFromField.getUserOperationId()).thenReturn(EXAMPLE_HISTORIC_FORM_FIELD_OPERATION_ID);
 when(historicFromField.getRootProcessInstanceId()).thenReturn(EXAMPLE_HISTORIC_FORM_ROOT_PROCESS_INSTANCE_ID);
 return historicFromField;
}
origin: camunda/camunda-bpm-platform

public static HistoricFormFieldDto fromHistoricFormField(HistoricFormField historicFormField) {
 HistoricFormFieldDto dto = new HistoricFormFieldDto();
 dto.fieldId = historicFormField.getFieldId();
 dto.fieldValue = historicFormField.getFieldValue();
 return dto;
}
origin: camunda/camunda-bpm-platform

@Test
@Deployment(resources = "org/camunda/bpm/engine/test/api/oneTaskProcess.bpmn20.xml")
public void testHistoricFormFieldProcessDefinitionProperty() {
 // given
 String key = "oneTaskProcess";
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(key);
 String taskId = taskService.createTaskQuery().singleResult().getId();
 formService.submitTaskForm(taskId, Variables.createVariables().putValue("aVariable", "aValue"));
 // when
 HistoricFormField instance = (HistoricFormField) historyService
   .createHistoricDetailQuery()
   .formFields()
   .singleResult();
 // then
 assertNotNull(instance.getProcessDefinitionKey());
 assertEquals(key, instance.getProcessDefinitionKey());
 assertNotNull(instance.getProcessDefinitionId());
 assertEquals(processInstance.getProcessDefinitionId(), instance.getProcessDefinitionId());
 assertNull(instance.getCaseDefinitionKey());
 assertNull(instance.getCaseDefinitionId());
}
origin: camunda/camunda-bpm-platform

assertEquals("bar", historicFormUpdate.getFieldValue());
origin: camunda/camunda-bpm-platform

public static HistoricFormFieldDto fromHistoricFormField(HistoricFormField historicFormField) {
 HistoricFormFieldDto dto = new HistoricFormFieldDto();
 dto.fieldId = historicFormField.getFieldId();
 dto.fieldValue = historicFormField.getFieldValue();
 return dto;
}
origin: org.camunda.bpm/camunda-engine

@Test
@Deployment(resources = "org/camunda/bpm/engine/test/api/oneTaskProcess.bpmn20.xml")
public void testHistoricFormFieldProcessDefinitionProperty() {
 // given
 String key = "oneTaskProcess";
 ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(key);
 String taskId = taskService.createTaskQuery().singleResult().getId();
 formService.submitTaskForm(taskId, Variables.createVariables().putValue("aVariable", "aValue"));
 // when
 HistoricFormField instance = (HistoricFormField) historyService
   .createHistoricDetailQuery()
   .formFields()
   .singleResult();
 // then
 assertNotNull(instance.getProcessDefinitionKey());
 assertEquals(key, instance.getProcessDefinitionKey());
 assertNotNull(instance.getProcessDefinitionId());
 assertEquals(processInstance.getProcessDefinitionId(), instance.getProcessDefinitionId());
 assertNull(instance.getCaseDefinitionKey());
 assertNull(instance.getCaseDefinitionId());
}
origin: org.camunda.bpm/camunda-engine

assertEquals("bar", historicFormUpdate.getFieldValue());
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

public static HistoricFormFieldDto fromHistoricFormField(HistoricFormField historicFormField) {
 HistoricFormFieldDto dto = new HistoricFormFieldDto();
 dto.fieldId = historicFormField.getFieldId();
 dto.fieldValue = historicFormField.getFieldValue();
 return dto;
}
org.camunda.bpm.engine.historyHistoricFormField

Javadoc

Historic form fields

Most used methods

  • getFieldValue
    the submitted value
  • getFieldId
    the id or key of the property
  • getCaseDefinitionId
  • getCaseDefinitionKey
  • getProcessDefinitionId
  • getProcessDefinitionKey
  • getActivityInstanceId
  • getCaseExecutionId
  • getCaseInstanceId
  • getExecutionId
  • getId
  • getProcessInstanceId
  • getId,
  • getProcessInstanceId,
  • getRemovalTime,
  • getRootProcessInstanceId,
  • getTaskId,
  • getTenantId,
  • getTime,
  • getUserOperationId

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • CodeWhisperer alternatives
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