use of org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl in project camunda-bpm-platform by camunda.
the class ProcessEngineTestRule method defaultManualActivation.
public Object defaultManualActivation() {
Expression expression = new FixedValue(true);
CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
return caseControlRule;
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl in project camunda-bpm-platform by camunda.
the class PvmTestCase method defaultManualActivation.
public Object defaultManualActivation() {
Expression expression = new FixedValue(true);
CaseControlRuleImpl caseControlRule = new CaseControlRuleImpl(expression);
return caseControlRule;
}
use of org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl in project camunda-bpm-platform by camunda.
the class ItemHandler method initializeCaseControlRule.
protected CaseControlRule initializeCaseControlRule(ConditionExpression condition, CmmnHandlerContext context) {
Expression expression = null;
if (condition != null) {
String rule = condition.getText();
if (rule != null && !rule.isEmpty()) {
ExpressionManager expressionManager = context.getExpressionManager();
expression = expressionManager.createExpression(rule);
}
}
return new CaseControlRuleImpl(expression);
}
Aggregations