Java Code Examples for org.camunda.bpm.engine.delegate.ExecutionListener#EVENTNAME_START

The following examples show how to use org.camunda.bpm.engine.delegate.ExecutionListener#EVENTNAME_START . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SetBusinessKeyTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Test
public void testNewKeyInStartExecListener() {
  // given
  String listener = ExecutionListener.EVENTNAME_START;
  BpmnModelInstance process = createModelExecutionListener(listener);
  testRule.deploy(process);

  // when
  String newBusinessKeyValue = "newBusinessKey";
  runtimeService.startProcessInstanceByKey(PROCESS_KEY, Variables.createVariables().putValue(BUSINESS_KEY_VARIABLE, newBusinessKeyValue));

  // then
  checkBusinessKeyChanged(newBusinessKeyValue);
}
 
Example 2
Source File: SetBusinessKeyTest.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
@Test
public void testUpdateKeyInStartExecListener() {
  // given
  String listener = ExecutionListener.EVENTNAME_START;
  BpmnModelInstance process = createModelExecutionListener(listener);
  testRule.deploy(process);

  // when
  String newBusinessKeyValue = "newBusinessKey";
  runtimeService.startProcessInstanceByKey(PROCESS_KEY, "aBusinessKey", Variables.createVariables().putValue(BUSINESS_KEY_VARIABLE, newBusinessKeyValue));

  // then
  checkBusinessKeyChanged(newBusinessKeyValue);
}
 
Example 3
Source File: PvmAtomicOperationActivityInitStackNotifyListenerStart.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}
 
Example 4
Source File: PvmAtomicOperationActivityStart.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}
 
Example 5
Source File: PvmAtomicOperationProcessStart.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}
 
Example 6
Source File: PvmAtomicOperationActivityInitStackNotifyListenerReturn.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}
 
Example 7
Source File: PvmAtomicOperationTransitionNotifyListenerStart.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}
 
Example 8
Source File: PvmAtomicOperationFireProcessStart.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
protected String getEventName() {
  return ExecutionListener.EVENTNAME_START;
}