Search in sources :

Example 16 with CamundaIn

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

the class CamundaInImpl method registerType.

public static void registerType(ModelBuilder modelBuilder) {
    ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaIn.class, CAMUNDA_ELEMENT_IN).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaIn>() {

        public CamundaIn newInstance(ModelTypeInstanceContext instanceContext) {
            return new CamundaInImpl(instanceContext);
        }
    });
    camundaSourceAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_SOURCE).namespace(CAMUNDA_NS).build();
    camundaSourceExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_SOURCE_EXPRESSION).namespace(CAMUNDA_NS).build();
    camundaVariablesAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_VARIABLES).namespace(CAMUNDA_NS).build();
    camundaTargetAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TARGET).namespace(CAMUNDA_NS).build();
    camundaBusinessKeyAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_BUSINESS_KEY).namespace(CAMUNDA_NS).build();
    camundaLocalAttribute = typeBuilder.booleanAttribute(CAMUNDA_ATTRIBUTE_LOCAL).namespace(CAMUNDA_NS).build();
    typeBuilder.build();
}
Also used : ModelElementTypeBuilder(org.camunda.bpm.model.xml.type.ModelElementTypeBuilder) CamundaIn(org.camunda.bpm.model.cmmn.instance.camunda.CamundaIn) ModelTypeInstanceContext(org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)

Aggregations

CamundaIn (org.camunda.bpm.model.cmmn.instance.camunda.CamundaIn)16 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)14 CallableElement (org.camunda.bpm.engine.impl.core.model.CallableElement)14 ExtensionElements (org.camunda.bpm.model.cmmn.instance.ExtensionElements)14 Test (org.junit.Test)14 CallableElementParameter (org.camunda.bpm.engine.impl.core.model.CallableElementParameter)11 ParameterValueProvider (org.camunda.bpm.engine.impl.core.variable.mapping.value.ParameterValueProvider)9 CaseTaskActivityBehavior (org.camunda.bpm.engine.impl.cmmn.behavior.CaseTaskActivityBehavior)7 ProcessTaskActivityBehavior (org.camunda.bpm.engine.impl.cmmn.behavior.ProcessTaskActivityBehavior)7 ConstantValueProvider (org.camunda.bpm.engine.impl.core.variable.mapping.value.ConstantValueProvider)4 ElValueProvider (org.camunda.bpm.engine.impl.el.ElValueProvider)4 ExpressionManager (org.camunda.bpm.engine.impl.el.ExpressionManager)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1