public class SolutionProcessor extends RunnableBase
| Modifier and Type | Class and Description |
|---|---|
static class |
SolutionProcessor.Result |
RunnableBase.Statusstatus| Constructor and Description |
|---|
SolutionProcessor(TaskAssigningRuntimeDelegate delegate,
Consumer<SolutionProcessor.Result> resultConsumer,
String targetUserId,
int publishWindowSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doProcess(TaskAssigningSolution solution) |
boolean |
isProcessing() |
void |
process(TaskAssigningSolution solution)
This method is invoked from a different thread for doing the processing of a solution.
|
void |
run() |
isAlive, isDestroyedpublic SolutionProcessor(TaskAssigningRuntimeDelegate delegate, Consumer<SolutionProcessor.Result> resultConsumer, String targetUserId, int publishWindowSize)
delegate - a TaskAssigningRuntimeDelegate instance for executing methods into the jBPM runtime.resultConsumer - a consumer for processing the results.targetUserId - a user identifier for using as the "on behalf of" user when interacting with the jBPM runtime.publishWindowSize - Integer value > 0 that indicates the number of tasks to be published.public boolean isProcessing()
public void process(TaskAssigningSolution solution)
solution - a solution to process.public void destroy()
destroy in class RunnableBasepublic void run()
protected void doProcess(TaskAssigningSolution solution)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.