use of io.lumeer.core.task.executor.request.TextPrintRequest in project engine by Lumeer.
the class LumeerBridge method printText.
@SuppressWarnings("unused")
public void printText(final String text) {
final SelectedWorkspace workspace = task.getDaoContextSnapshot().getSelectedWorkspace();
if (!printed && workspace.getOrganization().isPresent() && workspace.getProject().isPresent()) {
final TextPrintRequest pq = new TextPrintRequest(workspace.getOrganization().get().getCode(), workspace.getProject().get().getCode(), text);
operations.add(new PrintTextOperation(pq));
// we can trigger this only once per rule/function
printed = true;
}
}
Aggregations