use of org.activiti.engine.delegate.event.ActivitiActivityEvent in project Activiti by Activiti.
the class ActivityStartedEventHandler method generateEventLogEntry.
@Override
public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {
ActivitiActivityEvent activityEvent = (ActivitiActivityEvent) event;
Map<String, Object> data = new HashMap<String, Object>();
putInMapIfNotNull(data, Fields.ACTIVITY_ID, activityEvent.getActivityId());
putInMapIfNotNull(data, Fields.ACTIVITY_NAME, activityEvent.getActivityName());
putInMapIfNotNull(data, Fields.PROCESS_DEFINITION_ID, activityEvent.getProcessDefinitionId());
putInMapIfNotNull(data, Fields.PROCESS_INSTANCE_ID, activityEvent.getProcessInstanceId());
putInMapIfNotNull(data, Fields.EXECUTION_ID, activityEvent.getExecutionId());
putInMapIfNotNull(data, Fields.ACTIVITY_TYPE, activityEvent.getActivityType());
putInMapIfNotNull(data, Fields.BEHAVIOR_CLASS, activityEvent.getBehaviorClass());
return createEventLogEntry(activityEvent.getProcessDefinitionId(), activityEvent.getProcessInstanceId(), activityEvent.getExecutionId(), null, data);
}
Aggregations