As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
rule "salarycheck" when (salary > 3000) && (age < 30) then ruleOutput = "pattern1"; end
<br>ksession.insert(execution.getVariables());<br>
<br>import java.util.Map;<br><br>rule "ChoseGroup"<br> when<br> Map( this["actionType"] == "tech" )<br> then<br> System.out.println("The group chosen is engineering");<br> insert("engineering");<br>end<br>
knowledgeRuntime.getGlobals().setDelegate(customGlobalsImplWithLazyLoadingOfVariables);
<br>FactHandle executionFact = ksession.insert(execution);<br>
<br>import org.activiti.engine.impl.pvm.delegate.ActivityExecution;<br><br>rule "Rulez"<br> when<br> ActivityExecution(getVariable("inputVar") == "myInput")<br> then<br> System.out.println("Rulez executed");<br> insert("RulezExecuted");<br>end<br>
<br>ksession.retract(executionFact);<br>