Search in sources :

Example 1 with Function

use of org.activiti.crystalball.simulator.delegate.event.Function 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 Function

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

the class PlaybackRunTest method getTransformers.

private List<Function<ActivitiEvent, SimulationEvent>> getTransformers() {
    List<Function<ActivitiEvent, SimulationEvent>> transformers = new ArrayList<Function<ActivitiEvent, SimulationEvent>>();
    transformers.add(new DeploymentCreateTransformer(DEPLOYMENT_CREATED_EVENT_TYPE, DEPLOYMENT_RESOURCES_KEY));
    transformers.add(new ProcessInstanceCreateTransformer(PROCESS_INSTANCE_START_EVENT_TYPE, PROCESS_DEFINITION_ID_KEY, BUSINESS_KEY, VARIABLES_KEY));
    transformers.add(new UserTaskCompleteTransformer(USER_TASK_COMPLETED_EVENT_TYPE));
    return transformers;
}
Also used : Function(org.activiti.crystalball.simulator.delegate.event.Function) ProcessInstanceCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.ProcessInstanceCreateTransformer) UserTaskCompleteTransformer(org.activiti.crystalball.simulator.delegate.event.impl.UserTaskCompleteTransformer) ArrayList(java.util.ArrayList) ActivitiEvent(org.activiti.engine.delegate.event.ActivitiEvent) DeploymentCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.DeploymentCreateTransformer)

Example 3 with Function

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

the class SimpleSimulationRunTest method getTransformers.

private List<Function<ActivitiEvent, SimulationEvent>> getTransformers() {
    List<Function<ActivitiEvent, SimulationEvent>> transformers = new ArrayList<Function<ActivitiEvent, SimulationEvent>>();
    transformers.add(new DeploymentCreateTransformer(DEPLOYMENT_CREATED_EVENT_TYPE, DEPLOYMENT_RESOURCES_KEY));
    transformers.add(new ProcessInstanceCreateTransformer(PROCESS_INSTANCE_START_EVENT_TYPE, PROCESS_DEFINITION_ID_KEY, BUSINESS_KEY, VARIABLES_KEY));
    transformers.add(new UserTaskCompleteTransformer(USER_TASK_COMPLETED_EVENT_TYPE));
    return transformers;
}
Also used : Function(org.activiti.crystalball.simulator.delegate.event.Function) ProcessInstanceCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.ProcessInstanceCreateTransformer) UserTaskCompleteTransformer(org.activiti.crystalball.simulator.delegate.event.impl.UserTaskCompleteTransformer) ActivitiEvent(org.activiti.engine.delegate.event.ActivitiEvent) DeploymentCreateTransformer(org.activiti.crystalball.simulator.delegate.event.impl.DeploymentCreateTransformer)

Example 4 with Function

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

the class AbstractPlaybackTest method getTransformers.

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

Example 5 with Function

use of org.activiti.crystalball.simulator.delegate.event.Function 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

Function (org.activiti.crystalball.simulator.delegate.event.Function)6 ArrayList (java.util.ArrayList)4 ProcessInstanceCreateTransformer (org.activiti.crystalball.simulator.delegate.event.impl.ProcessInstanceCreateTransformer)4 UserTaskCompleteTransformer (org.activiti.crystalball.simulator.delegate.event.impl.UserTaskCompleteTransformer)4 ActivitiEvent (org.activiti.engine.delegate.event.ActivitiEvent)4 SimulationEvent (org.activiti.crystalball.simulator.SimulationEvent)3 DeploymentCreateTransformer (org.activiti.crystalball.simulator.delegate.event.impl.DeploymentCreateTransformer)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