use of org.camunda.bpm.model.cmmn.instance.OutputsCaseParameter in project camunda-cmmn-model by camunda.
the class OutputsCaseParameterImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(OutputsCaseParameter.class, CMMN_ELEMENT_OUTPUTS).namespaceUri(CMMN10_NS).extendsType(CaseParameter.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<OutputsCaseParameter>() {
public OutputsCaseParameter newInstance(ModelTypeInstanceContext instanceContext) {
return new OutputsCaseParameterImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.cmmn.instance.OutputsCaseParameter in project camunda-cmmn-model by camunda.
the class Cmmn10Test method shouldGetTaskInputsOutputs.
@Test
public void shouldGetTaskInputsOutputs() {
CmmnModelInstance modelInstance = getCmmnModelInstance();
HumanTask humanTask = modelInstance.getModelElementsByType(HumanTask.class).iterator().next();
Collection<InputsCaseParameter> inputs = humanTask.getInputs();
assertThat(inputs).hasSize(1);
Collection<InputCaseParameter> inputParameters = humanTask.getInputParameters();
assertThat(inputParameters).isEmpty();
Collection<OutputsCaseParameter> outputs = humanTask.getOutputs();
assertThat(outputs).hasSize(1);
Collection<OutputCaseParameter> outputParameters = humanTask.getOutputParameters();
assertThat(outputParameters).isEmpty();
}
Aggregations