use of org.camunda.bpm.model.cmmn.instance.InputsCaseParameter in project camunda-cmmn-model by camunda.
the class InputsCaseParameterImpl method registerType.
public static void registerType(ModelBuilder modelBuilder) {
ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputsCaseParameter.class, CMMN_ELEMENT_INPUTS).namespaceUri(CMMN10_NS).extendsType(CaseParameter.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<InputsCaseParameter>() {
public InputsCaseParameter newInstance(ModelTypeInstanceContext instanceContext) {
return new InputsCaseParameterImpl(instanceContext);
}
});
typeBuilder.build();
}
use of org.camunda.bpm.model.cmmn.instance.InputsCaseParameter 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