Search in sources :

Example 1 with CaseControlRuleImpl

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;
}
Also used : Expression(org.camunda.bpm.engine.delegate.Expression) CaseControlRuleImpl(org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl) FixedValue(org.camunda.bpm.engine.impl.el.FixedValue)

Example 2 with CaseControlRuleImpl

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;
}
Also used : Expression(org.camunda.bpm.engine.delegate.Expression) CaseControlRuleImpl(org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl) FixedValue(org.camunda.bpm.engine.impl.el.FixedValue)

Example 3 with CaseControlRuleImpl

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);
}
Also used : ExpressionManager(org.camunda.bpm.engine.impl.el.ExpressionManager) CamundaExpression(org.camunda.bpm.model.cmmn.instance.camunda.CamundaExpression) Expression(org.camunda.bpm.engine.delegate.Expression) ConditionExpression(org.camunda.bpm.model.cmmn.instance.ConditionExpression) CaseControlRuleImpl(org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl) CamundaString(org.camunda.bpm.model.cmmn.instance.camunda.CamundaString)

Aggregations

Expression (org.camunda.bpm.engine.delegate.Expression)3 CaseControlRuleImpl (org.camunda.bpm.engine.impl.cmmn.behavior.CaseControlRuleImpl)3 FixedValue (org.camunda.bpm.engine.impl.el.FixedValue)2 ExpressionManager (org.camunda.bpm.engine.impl.el.ExpressionManager)1 ConditionExpression (org.camunda.bpm.model.cmmn.instance.ConditionExpression)1 CamundaExpression (org.camunda.bpm.model.cmmn.instance.camunda.CamundaExpression)1 CamundaString (org.camunda.bpm.model.cmmn.instance.camunda.CamundaString)1