Search in sources :

Example 1 with TimerExpression

use of org.camunda.bpm.model.cmmn.instance.TimerExpression in project camunda-cmmn-model by camunda.

the class TimerExpressionImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(TimerExpression.class, CMMN_ELEMENT_TIMER_EXPRESSION).namespaceUri(CMMN11_NS).extendsType(Expression.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<TimerExpression>() {

        public TimerExpression newInstance(ModelTypeInstanceContext instanceContext) {
            return new TimerExpressionImpl(instanceContext);
        }
    });
    typeBuilder.build();
}
Also used : Expression(org.camunda.bpm.model.cmmn.instance.Expression) TimerExpression(org.camunda.bpm.model.cmmn.instance.TimerExpression) TimerExpression(org.camunda.bpm.model.cmmn.instance.TimerExpression) ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

Expression (org.camunda.bpm.model.cmmn.instance.Expression)1 TimerExpression (org.camunda.bpm.model.cmmn.instance.TimerExpression)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1