use of org.activiti.cloud.api.process.model.impl.events.CloudProcessCompletedEventImpl in project activiti-cloud by Activiti.
the class ProcessCompletedEventHandlerTest method createProcessCompletedEvent.
private CloudProcessCompletedEvent createProcessCompletedEvent() {
ProcessInstanceImpl processInstance = new ProcessInstanceImpl();
processInstance.setId(UUID.randomUUID().toString());
return new CloudProcessCompletedEventImpl(processInstance);
}
use of org.activiti.cloud.api.process.model.impl.events.CloudProcessCompletedEventImpl in project activiti-cloud by Activiti.
the class ToCloudProcessRuntimeEventConverter method from.
public CloudProcessCompletedEvent from(ProcessCompletedEvent event) {
CloudProcessCompletedEventImpl cloudEvent = new CloudProcessCompletedEventImpl(event.getEntity());
runtimeBundleInfoAppender.appendRuntimeBundleInfoTo(cloudEvent);
return cloudEvent;
}
use of org.activiti.cloud.api.process.model.impl.events.CloudProcessCompletedEventImpl in project activiti-cloud by Activiti.
the class ProcessInstanceEventContainedBuilder method aCompletedProcessInstance.
public ProcessInstance aCompletedProcessInstance(String name) {
ProcessInstance processInstance = buildProcessInstance(name);
eventsAggregator.addEvents(new CloudProcessCreatedEventImpl(processInstance), new CloudProcessStartedEventImpl(processInstance, null, null), new CloudProcessCompletedEventImpl(processInstance));
return processInstance;
}
use of org.activiti.cloud.api.process.model.impl.events.CloudProcessCompletedEventImpl in project activiti-cloud by Activiti.
the class CloudRuntimeEventRegistry method buildRegistry.
public Map<String, Class<?>> buildRegistry() {
List<RuntimeEvent<?, ?>> eventImplementations = new ArrayList<>();
eventImplementations.add(new CloudBPMNActivityStartedEventImpl());
eventImplementations.add(new CloudBPMNActivityCancelledEventImpl());
eventImplementations.add(new CloudBPMNActivityCompletedEventImpl());
eventImplementations.add(new CloudBPMNErrorReceivedEventImpl());
eventImplementations.add(new CloudBPMNSignalReceivedEventImpl());
eventImplementations.add(new CloudBPMNTimerFiredEventImpl());
eventImplementations.add(new CloudBPMNTimerCancelledEventImpl());
eventImplementations.add(new CloudBPMNTimerScheduledEventImpl());
eventImplementations.add(new CloudBPMNTimerExecutedEventImpl());
eventImplementations.add(new CloudBPMNTimerFailedEventImpl());
eventImplementations.add(new CloudBPMNTimerRetriesDecrementedEventImpl());
eventImplementations.add(new CloudBPMNMessageWaitingEventImpl());
eventImplementations.add(new CloudBPMNMessageReceivedEventImpl());
eventImplementations.add(new CloudBPMNMessageSentEventImpl());
eventImplementations.add(new CloudIntegrationRequestedEventImpl());
eventImplementations.add(new CloudIntegrationResultReceivedEventImpl());
eventImplementations.add(new CloudIntegrationErrorReceivedEventImpl());
eventImplementations.add(new CloudProcessDeployedEventImpl());
eventImplementations.add(new CloudProcessCreatedEventImpl());
eventImplementations.add(new CloudProcessStartedEventImpl());
eventImplementations.add(new CloudProcessCompletedEventImpl());
eventImplementations.add(new CloudProcessCancelledEventImpl());
eventImplementations.add(new CloudProcessSuspendedEventImpl());
eventImplementations.add(new CloudProcessResumedEventImpl());
eventImplementations.add(new CloudProcessUpdatedEventImpl());
eventImplementations.add(new CloudSequenceFlowTakenEventImpl());
eventImplementations.add(new CloudStartMessageDeployedEventImpl());
eventImplementations.add(new CloudMessageSubscriptionCancelledEventImpl());
eventImplementations.add(new CloudTaskCreatedEventImpl());
eventImplementations.add(new CloudTaskUpdatedEventImpl());
eventImplementations.add(new CloudTaskAssignedEventImpl());
eventImplementations.add(new CloudTaskCompletedEventImpl());
eventImplementations.add(new CloudTaskSuspendedEventImpl());
eventImplementations.add(new CloudTaskActivatedEventImpl());
eventImplementations.add(new CloudTaskCancelledEventImpl());
eventImplementations.add(new CloudTaskCandidateUserAddedEventImpl());
eventImplementations.add(new CloudTaskCandidateUserRemovedEventImpl());
eventImplementations.add(new CloudTaskCandidateGroupAddedEventImpl());
eventImplementations.add(new CloudTaskCandidateGroupRemovedEventImpl());
eventImplementations.add(new CloudVariableCreatedEventImpl());
eventImplementations.add(new CloudVariableUpdatedEventImpl());
eventImplementations.add(new CloudVariableDeletedEventImpl());
return eventImplementations.stream().collect(Collectors.toMap(event -> event.getEventType().name(), this::findInterface));
}
use of org.activiti.cloud.api.process.model.impl.events.CloudProcessCompletedEventImpl in project activiti-cloud by Activiti.
the class AuditServiceIT method getTestProcessStartedUpdatedCompletedEvents.
private List<CloudRuntimeEvent> getTestProcessStartedUpdatedCompletedEvents() {
List<CloudRuntimeEvent> testEvents = new ArrayList<>();
ProcessInstanceImpl processInstanceStarted = new ProcessInstanceImpl();
processInstanceStarted.setId("25");
processInstanceStarted.setProcessDefinitionId("44");
CloudProcessStartedEventImpl cloudProcessStartedEvent = new CloudProcessStartedEventImpl("ProcessStartedEventId", System.currentTimeMillis(), processInstanceStarted);
testEvents.add(cloudProcessStartedEvent);
ProcessInstanceImpl processInstanceUpdated = new ProcessInstanceImpl();
processInstanceUpdated.setId("25");
processInstanceUpdated.setProcessDefinitionId("44");
processInstanceUpdated.setBusinessKey("businessKey");
processInstanceUpdated.setName("name");
CloudProcessUpdatedEventImpl cloudProcessUpdatedEvent = new CloudProcessUpdatedEventImpl("ProcessUpdatedEventId", System.currentTimeMillis(), processInstanceUpdated);
testEvents.add(cloudProcessUpdatedEvent);
ProcessInstanceImpl processInstanceCompleted = new ProcessInstanceImpl();
processInstanceCompleted.setId("25");
processInstanceCompleted.setProcessDefinitionId("44");
CloudProcessCompletedEventImpl cloudProcessCompletedEvent = new CloudProcessCompletedEventImpl("ProcessCompletedEventId", System.currentTimeMillis(), processInstanceCompleted);
testEvents.add(cloudProcessCompletedEvent);
return testEvents;
}
Aggregations