Search in sources :

Example 1 with EventLogProcessInstanceCreateTransformer

use of org.activiti.crystalball.simulator.delegate.event.impl.EventLogProcessInstanceCreateTransformer in project Activiti by Activiti.

the class EventOverviewPanel method getTransformers.

protected List<Function<EventLogEntry, SimulationEvent>> getTransformers() {
    List<Function<EventLogEntry, SimulationEvent>> transformers = new ArrayList<Function<EventLogEntry, SimulationEvent>>();
    transformers.add(new EventLogProcessInstanceCreateTransformer(PROCESS_INSTANCE_START_EVENT_TYPE, PROCESS_DEFINITION_ID_KEY, SIMULATION_BUSINESS_KEY, VARIABLES_KEY));
    transformers.add(new EventLogUserTaskCompleteTransformer(USER_TASK_COMPLETED_EVENT_TYPE));
    return transformers;
}
Also used : Function(org.activiti.crystalball.simulator.delegate.event.Function) EventLogEntry(org.activiti.engine.event.EventLogEntry) EventLogProcessInstanceCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.EventLogProcessInstanceCreateTransformer) ArrayList(java.util.ArrayList) EventLogUserTaskCompleteTransformer(org.activiti.crystalball.simulator.delegate.event.impl.EventLogUserTaskCompleteTransformer) SimulationEvent(org.activiti.crystalball.simulator.SimulationEvent)

Example 2 with EventLogProcessInstanceCreateTransformer

use of org.activiti.crystalball.simulator.delegate.event.impl.EventLogProcessInstanceCreateTransformer in project Activiti by Activiti.

the class ReplayEventLogTest method getTransformers.

private static List<Function<EventLogEntry, SimulationEvent>> getTransformers() {
    List<Function<EventLogEntry, SimulationEvent>> transformers = new ArrayList<Function<EventLogEntry, SimulationEvent>>();
    transformers.add(new EventLogProcessInstanceCreateTransformer(PROCESS_INSTANCE_START_EVENT_TYPE, PROCESS_DEFINITION_ID_KEY, BUSINESS_KEY, VARIABLES_KEY));
    transformers.add(new EventLogUserTaskCompleteTransformer(USER_TASK_COMPLETED_EVENT_TYPE));
    return transformers;
}
Also used : Function(org.activiti.crystalball.simulator.delegate.event.Function) EventLogEntry(org.activiti.engine.event.EventLogEntry) EventLogProcessInstanceCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.EventLogProcessInstanceCreateTransformer) ArrayList(java.util.ArrayList) EventLogUserTaskCompleteTransformer(org.activiti.crystalball.simulator.delegate.event.impl.EventLogUserTaskCompleteTransformer) SimulationEvent(org.activiti.crystalball.simulator.SimulationEvent)

Aggregations

ArrayList (java.util.ArrayList)2 SimulationEvent (org.activiti.crystalball.simulator.SimulationEvent)2 Function (org.activiti.crystalball.simulator.delegate.event.Function)2 EventLogProcessInstanceCreateTransformer (org.activiti.crystalball.simulator.delegate.event.impl.EventLogProcessInstanceCreateTransformer)2 EventLogUserTaskCompleteTransformer (org.activiti.crystalball.simulator.delegate.event.impl.EventLogUserTaskCompleteTransformer)2 EventLogEntry (org.activiti.engine.event.EventLogEntry)2