use of org.camunda.bpm.model.cmmn.instance.camunda.CamundaOut in project camunda-bpm-platform by camunda.
the class CaseTaskPlanItemHandlerTest method testOutputVariables.
@Test
public void testOutputVariables() {
// given:
ExtensionElements extensionElements = addExtensionElements(caseTask);
CamundaOut variablesElement = createElement(extensionElements, null, CamundaOut.class);
variablesElement.setCamundaVariables("all");
// when
CmmnActivity activity = handler.handleElement(planItem, context);
// then
CaseTaskActivityBehavior behavior = (CaseTaskActivityBehavior) activity.getActivityBehavior();
CallableElement callableElement = behavior.getCallableElement();
CallableElementParameter parameter = callableElement.getOutputs().get(0);
assertNotNull(parameter);
assertTrue(parameter.isAllVariables());
}
use of org.camunda.bpm.model.cmmn.instance.camunda.CamundaOut in project camunda-cmmn-model by camunda.
the class CamundaOutImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CamundaOut.class, CAMUNDA_ELEMENT_OUT).namespaceUri(CAMUNDA_NS).instanceProvider(new ModelTypeInstanceProvider<CamundaOut>() {
public CamundaOut newInstance(ModelTypeInstanceContext instanceContext) {
return new CamundaOutImpl(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();
typeBuilder.build();
}
Aggregations