public abstract class AbstractRuleTaskHandler extends AbstractLogOrThrowWorkItemHandler implements org.kie.internal.runtime.Cacheable
Session type can be given by KieSessionType data input and session name can be given as KieSessionName property -these apply to DRL only.
DMN support following data inputs:
Results returned will be then put back into the data outputs.
DRL handling is based on same names for data input and output as that is then used as correlation.
DMN handling receives all data from DMNResult.
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DMN_LANG |
protected static String |
DRL_LANG |
protected static String |
STATEFULL_TYPE |
protected static String |
STATELESS_TYPE |
handlingProcessId, handlingStrategy, logThrownException, retries| Constructor and Description |
|---|
AbstractRuleTaskHandler(String groupId,
String artifactId,
String version) |
AbstractRuleTaskHandler(String groupId,
String artifactId,
String version,
long scannerInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager) |
void |
close() |
void |
executeWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager) |
org.kie.api.runtime.KieContainer |
getKieContainer() |
abstract String |
getRuleLanguage() |
protected void |
handleDMN(Map<String,Object> parameters,
Map<String,Object> results) |
protected void |
handleStatefull(org.kie.api.runtime.process.WorkItem workItem,
String kieSessionName,
Map<String,Object> parameters,
Map<String,Object> results) |
protected void |
handleStateless(org.kie.api.runtime.process.WorkItem workItem,
String kieSessionName,
Map<String,Object> parameters,
Map<String,Object> results) |
findNodeInstance, handleException, handleException, setLogThrownExceptionprotected static final String STATELESS_TYPE
protected static final String STATEFULL_TYPE
protected static final String DRL_LANG
protected static final String DMN_LANG
public AbstractRuleTaskHandler(String groupId, String artifactId, String version)
public abstract String getRuleLanguage()
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager)
executeWorkItem in interface org.kie.api.runtime.process.WorkItemHandlerpublic void abortWorkItem(org.kie.api.runtime.process.WorkItem workItem,
org.kie.api.runtime.process.WorkItemManager manager)
abortWorkItem in interface org.kie.api.runtime.process.WorkItemHandlerpublic void close()
close in interface org.kie.internal.runtime.Cacheableprotected void handleStatefull(org.kie.api.runtime.process.WorkItem workItem,
String kieSessionName,
Map<String,Object> parameters,
Map<String,Object> results)
protected void handleStateless(org.kie.api.runtime.process.WorkItem workItem,
String kieSessionName,
Map<String,Object> parameters,
Map<String,Object> results)
public org.kie.api.runtime.KieContainer getKieContainer()
Copyright © 2001–2020 jBPM dev team. All rights reserved.