All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.event.logger.handler.VariableCreatedEventHandler Maven / Gradle / Ivy

There is a newer version: 3.0.Beta
Show newest version
package org.activiti.engine.impl.event.logger.handler;

import org.activiti.engine.delegate.event.ActivitiVariableEvent;
import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.persistence.entity.EventLogEntryEntity;

import java.util.Map;

/**

 */
public class VariableCreatedEventHandler extends VariableEventHandler {

  @Override
  public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {
    ActivitiVariableEvent variableEvent = (ActivitiVariableEvent) event;
    Map data = createData(variableEvent);

    data.put(Fields.CREATE_TIME, timeStamp);

    return createEventLogEntry(variableEvent.getProcessDefinitionId(), variableEvent.getProcessInstanceId(), variableEvent.getExecutionId(), variableEvent.getTaskId(), data);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy