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