Codota Logo
HistoricFormField.getCaseDefinitionKey
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

@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

@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());
}
org.camunda.bpm.engine.historyHistoricFormFieldgetCaseDefinitionKey

Popular methods of HistoricFormField

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

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now