@Tracked(value=TRACE) public class DroolsActivity extends DefaultActivityImpl implements com.centurylink.mdw.activity.types.RuleActivity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KNOWLEDGE_BASE |
static java.lang.String |
KNOWLEDGE_BASE_ASSET_VERSION |
static java.lang.String |
RULE_VERSION_VAR |
| Constructor and Description |
|---|
DroolsActivity() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
This method will be deprecated soon.
|
protected java.lang.ClassLoader |
getClassLoader()
Get the class loader based on package bundle version spec
default is mdw-workflow loader
|
protected org.kie.api.KieBase |
getKnowledgeBase(java.lang.String name,
java.lang.String version)
Get knowledge base with no modifiers.
|
protected org.kie.api.KieBase |
getKnowledgeBase(java.lang.String name,
java.lang.String assetVersion,
java.lang.String modifier)
Returns the asset based on specified version/range whose attributes match the custom attribute
Override to apply additional or non-standard conditions.
|
protected void |
setGlobalValues(org.kie.api.runtime.StatelessKieSession knowledgeSession) |
void |
setReturnCode(java.lang.String code) |
executecloseDatabaseAccess, createDocument, createDocument, createDocument, createDocument, doCompatibilityCodeSubstitutions, evaluateExpression, executeScript, getActivityId, getActivityInstance, getActivityInstanceId, getActivityName, getAsset, getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValueAsVariableName, getAttributeValueSmart, getDocument, getDocumentContent, getDocumentForUpdate, getEngine, getEntryCode, getExternalEventInstanceDetails, getMainProcessDefinition, getMasterRequestId, getOutputDocuments, getPackage, getParameterId, getParameters, getParameterStringValue, getParameterType, getParameterValue, getParameterValue, getParentProcessId, getPerformanceLevel, getProcessDefinition, getProcessId, getProcessInstance, getProcessInstanceId, getProcessInstanceOwner, getProcessInstanceOwnerId, getProperty, getRequiredAttribute, getRequiredVariableValue, getReturnCode, getReturnMessage, getRuntimeContext, getScriptEvaluator, getScriptExecClassName, getScriptExecutor, getValue, getValueSmart, getVariableInstance, getVariableValue, getVariableValueSmart, getWorkTransitionInstanceId, initialize, isDisabled, isLogDebugEnabled, isLogInfoEnabled, isOutputDocument, lockActivityInstance, lockProcessInstance, logdebug, logexception, loginfo, logsevere, logtag, logwarn, openDatabaseAccess, prepare, setOutputDocuments, setParameterValue, setParameterValue, setParameterValueAsDocument, setParameterValues, setProcessInstanceCompletionCode, setReturnMessage, setValue, setVariableValue, setVariableValue, startTransaction, stopTransaction, translatePlaceHolder, updateDocumentContent, updateDocumentInfo, updateDocumentInfo, valueIsJavaExpression, valueIsVariablepublic static final java.lang.String KNOWLEDGE_BASE
public static final java.lang.String KNOWLEDGE_BASE_ASSET_VERSION
public static final java.lang.String RULE_VERSION_VAR
public void execute()
throws com.centurylink.mdw.activity.ActivityException
DefaultActivityImplexecute in interface com.centurylink.mdw.activity.types.GeneralActivityexecute in class DefaultActivityImplcom.centurylink.mdw.activity.ActivityExceptionprotected org.kie.api.KieBase getKnowledgeBase(java.lang.String name,
java.lang.String version)
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionprotected org.kie.api.KieBase getKnowledgeBase(java.lang.String name,
java.lang.String assetVersion,
java.lang.String modifier)
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionprotected java.lang.ClassLoader getClassLoader()
protected void setGlobalValues(org.kie.api.runtime.StatelessKieSession knowledgeSession)
throws com.centurylink.mdw.activity.ActivityException
com.centurylink.mdw.activity.ActivityExceptionpublic void setReturnCode(java.lang.String code)
setReturnCode in class com.centurylink.mdw.services.process.BaseActivity