Java Code Examples for org.camunda.bpm.engine.delegate.DelegateExecution#getActivityInstanceId()
The following examples show how to use
org.camunda.bpm.engine.delegate.DelegateExecution#getActivityInstanceId() .
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: DelegateEvent.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
public static DelegateEvent fromExecution(DelegateExecution delegateExecution) { DelegateEvent event = new DelegateEvent(); event.activityInstanceId = delegateExecution.getActivityInstanceId(); event.businessKey = delegateExecution.getBusinessKey(); event.currentActivityId = delegateExecution.getCurrentActivityId(); event.currentActivityName = delegateExecution.getCurrentActivityName(); event.currentTransitionId = delegateExecution.getCurrentTransitionId(); event.eventName = delegateExecution.getEventName(); event.id = delegateExecution.getId(); event.parentActivityInstanceId = delegateExecution.getParentActivityInstanceId(); event.parentId = delegateExecution.getParentId(); event.processBusinessKey = delegateExecution.getProcessBusinessKey(); event.processDefinitionId = delegateExecution.getProcessDefinitionId(); event.processInstanceId = delegateExecution.getProcessInstanceId(); event.tenantId = delegateExecution.getTenantId(); event.variableScopeKey = delegateExecution.getVariableScopeKey(); return event; }
Example 2
Source File: ReadLocalVariableListener.java From camunda-bpm-platform with Apache License 2.0 | 6 votes |
@Override public void notify(DelegateExecution execution) throws Exception { if (!execution.hasVariableLocal(variableName)) { return; } Object value = execution.getVariableLocal(variableName); VariableEvent event = new VariableEvent(); event.variableName = variableName; event.variableValue = value; event.eventName = execution.getEventName(); event.activityInstanceId = execution.getActivityInstanceId(); variableEvents.add(event); }
Example 3
Source File: ExecutionEvent.java From camunda-bpm-spring-boot-starter with Apache License 2.0 | 5 votes |
public ExecutionEvent(DelegateExecution delegateExecution) { this.activityInstanceId = delegateExecution.getActivityInstanceId(); this.businessKey = delegateExecution.getBusinessKey(); this.currentActivityId = delegateExecution.getCurrentActivityId(); this.currentActivityName = delegateExecution.getCurrentActivityName(); this.currentTransitionId = delegateExecution.getCurrentTransitionId(); this.eventName = delegateExecution.getEventName(); this.id = delegateExecution.getId(); this.parentActivityInstanceId = delegateExecution.getParentActivityInstanceId(); this.parentId = delegateExecution.getParentId(); this.processBusinessKey = delegateExecution.getProcessBusinessKey(); this.processDefinitionId = delegateExecution.getProcessDefinitionId(); this.processInstanceId = delegateExecution.getProcessInstanceId(); this.tenantId = delegateExecution.getTenantId(); }
Example 4
Source File: ExecutionEvent.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public ExecutionEvent(DelegateExecution delegateExecution) { this.activityInstanceId = delegateExecution.getActivityInstanceId(); this.businessKey = delegateExecution.getBusinessKey(); this.currentActivityId = delegateExecution.getCurrentActivityId(); this.currentActivityName = delegateExecution.getCurrentActivityName(); this.currentTransitionId = delegateExecution.getCurrentTransitionId(); this.eventName = delegateExecution.getEventName(); this.id = delegateExecution.getId(); this.parentActivityInstanceId = delegateExecution.getParentActivityInstanceId(); this.parentId = delegateExecution.getParentId(); this.processBusinessKey = delegateExecution.getProcessBusinessKey(); this.processDefinitionId = delegateExecution.getProcessDefinitionId(); this.processInstanceId = delegateExecution.getProcessInstanceId(); this.tenantId = delegateExecution.getTenantId(); }