Java Code Examples for org.activiti.engine.delegate.event.ActivitiEventType#PROCESS_STARTED
The following examples show how to use
org.activiti.engine.delegate.event.ActivitiEventType#PROCESS_STARTED .
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: ActivitiProcessStartedEventImpl.java From activiti6-boot2 with Apache License 2.0 | 6 votes |
@SuppressWarnings("rawtypes") public ActivitiProcessStartedEventImpl(final Object entity, final Map variables, final boolean localScope) { super(entity, variables, localScope, ActivitiEventType.PROCESS_STARTED); if (entity instanceof ExecutionEntity) { final ExecutionEntity superExecution = ((ExecutionEntity) entity).getSuperExecution(); if (superExecution != null) { this.nestedProcessDefinitionId = superExecution.getProcessDefinitionId(); this.nestedProcessInstanceId = superExecution.getProcessInstanceId(); } else { this.nestedProcessDefinitionId = null; this.nestedProcessInstanceId = null; } } else { this.nestedProcessDefinitionId = null; this.nestedProcessInstanceId = null; } }
Example 2
Source File: ActivitiProcessStartedEventImpl.java From activiti6-boot2 with Apache License 2.0 | 6 votes |
public ActivitiProcessStartedEventImpl(final Object entity, final Map variables, final boolean localScope) { super(entity, variables, localScope, ActivitiEventType.PROCESS_STARTED); if (entity instanceof ExecutionEntity) { ExecutionEntity executionEntity = (ExecutionEntity) entity; if (executionEntity.isProcessInstanceType() == false) { executionEntity = executionEntity.getParent(); } final ExecutionEntity superExecution = executionEntity.getSuperExecution(); if (superExecution != null) { this.nestedProcessDefinitionId = superExecution.getProcessDefinitionId(); this.nestedProcessInstanceId = superExecution.getProcessInstanceId(); } else { this.nestedProcessDefinitionId = null; this.nestedProcessInstanceId = null; } } else { this.nestedProcessDefinitionId = null; this.nestedProcessInstanceId = null; } }