Search in sources :

Example 1 with TextPrintRequest

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;
    }
}
Also used : SelectedWorkspace(io.lumeer.api.SelectedWorkspace) TextPrintRequest(io.lumeer.core.task.executor.request.TextPrintRequest) PrintTextOperation(io.lumeer.core.task.executor.operation.PrintTextOperation)

Aggregations

SelectedWorkspace (io.lumeer.api.SelectedWorkspace)1 PrintTextOperation (io.lumeer.core.task.executor.operation.PrintTextOperation)1 TextPrintRequest (io.lumeer.core.task.executor.request.TextPrintRequest)1