/** * * <!-- begin-custom-doc --> * <!-- end-custom-doc --> * * @generated Gets the String type attribute from the input by name. * @param inputData This is the activity input data. * @param processingContext XML processing context. * @param attributeName The attribute name which you want to get the value. * @return attribute value. */ public String getInputAttributeStringValueByName( final N inputData, final ProcessingContext<N> processingContext, final String attributeName) { Model<N> model = processingContext.getMutableContext().getModel(); N attribute = model.getAttribute(inputData, "", attributeName); if (attribute == null) { return ""; } return model.getStringValue(attribute); }
/** * * <!-- begin-custom-doc --> * <!-- end-custom-doc --> * * @generated Gets the String type parameter from the input by name. * @param inputData This is the activity input data. * @param processingContext XML processing context. * @param parameterName The parameter name which you want to get the value. * @return parameter value. */ public String getInputParameterStringValueByName( final N inputData, final ProcessingContext<N> processingContext, final String parameterName) { Model<N> model = processingContext.getMutableContext().getModel(); N parameter = model.getFirstChildElementByName(inputData, null, parameterName); if (parameter == null) { return ""; } return model.getStringValue(parameter); }
/** * * <!-- begin-custom-doc --> * <!-- end-custom-doc --> * * @generated Gets the Boolean type parameter from the input by name. * @param inputData This is the activity input data. * @param processingContext XML processing context. * @param parameterName The parameter name which you want to get the value. * @return parameter value. */ public boolean getInputParameterBooleanValueByName( final N inputData, final ProcessingContext<N> processingContext, final String parameterName) { Model<N> model = processingContext.getMutableContext().getModel(); N parameter = model.getFirstChildElementByName(inputData, null, parameterName); if (parameter == null) { return false; } String valueStr = model.getStringValue(parameter); return Boolean.parseBoolean(valueStr); }