use of io.lumeer.engine.api.event.RemoveLinkInstance in project engine by Lumeer.
the class TaskProcessingFacade method onRemoveLink.
public void onRemoveLink(@Observes final RemoveLinkInstance removeLinkInstanceEvent) {
LinkType linkType = getLinkTypeForEvent(removeLinkInstanceEvent);
if (linkType == null) {
return;
}
FunctionTask functionTask = functionFacade.createTaskForRemovedLinks(linkType, Collections.singletonList(new LinkInstance(removeLinkInstanceEvent.getLinkInstance())));
List<RuleTask> tasks = createLinkInstanceRemoveRuleTasks(linkType, removeLinkInstanceEvent.getLinkInstance());
RuleTask ruleTask = createOrderedRuleTask(tasks);
processTasks(functionTask, ruleTask);
}
Aggregations