Stuck in creating custom input parameter in xml

I got wonderful help from here
The difference only that, I created input:inputOutput using BpmnModeler but instead of I have to create it using bpmnfactory.
@Niklas_Kiefer Thanks a lot for guiding me.