For custom components, you need to write the code in Java and then need to write your class and operation detail in component.xml. Then need to create a jar file and install it on the server,
then you can use that custom component in your process.
Search for document service component in Adobe Lc ...