Class RemoteBusinessRuleTaskHandler
- java.lang.Object
-
- org.kie.server.client.integration.RemoteBusinessRuleTaskHandler
-
- All Implemented Interfaces:
org.kie.api.runtime.process.WorkItemHandler
,org.kie.internal.runtime.Cacheable
public class RemoteBusinessRuleTaskHandler extends Object implements org.kie.internal.runtime.Cacheable, org.kie.api.runtime.process.WorkItemHandler
Work item handler to support remote execution of rules via KIE Server.
Supports both DRL and DMN that needs to be specified via Language data intput - defaults to DRL. Following is a list of supported data inputs:- Language - DRL or DMN (optional and defaults to DRL)
- ContainerId - container id (or alias) to be targeted on remote KIE Server - mandatory
- KieSessionName - name of the kie session to be used on remote KIE Server - optional
- Namespace - DMN namespace to be used - mandatory
- Model - DMN model to be used - mandatory
- Decision - DMN decision name to be used - optional
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.kie.api.command.KieCommands
commandsFactory
protected static String
DMN_LANG
protected static String
DRL_LANG
-
Constructor Summary
Constructors Constructor Description RemoteBusinessRuleTaskHandler(String serverUrl, String userName, String password, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
void
close()
void
executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
-
-
-
Field Detail
-
DRL_LANG
protected static final String DRL_LANG
- See Also:
- Constant Field Values
-
DMN_LANG
protected static final String DMN_LANG
- See Also:
- Constant Field Values
-
commandsFactory
protected org.kie.api.command.KieCommands commandsFactory
-
-
Constructor Detail
-
RemoteBusinessRuleTaskHandler
public RemoteBusinessRuleTaskHandler(String serverUrl, String userName, String password, ClassLoader classLoader)
-
-
Method Detail
-
executeWorkItem
public void executeWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
- Specified by:
executeWorkItem
in interfaceorg.kie.api.runtime.process.WorkItemHandler
-
abortWorkItem
public void abortWorkItem(org.kie.api.runtime.process.WorkItem workItem, org.kie.api.runtime.process.WorkItemManager workItemManager)
- Specified by:
abortWorkItem
in interfaceorg.kie.api.runtime.process.WorkItemHandler
-
close
public void close()
- Specified by:
close
in interfaceorg.kie.internal.runtime.Cacheable
-
-