You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "shivanandullagaddi (via GitHub)" <gi...@apache.org> on 2025/11/14 13:23:10 UTC

[D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

GitHub user shivanandullagaddi created a discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

Hi Team,

I want to discuss a use case involving dynamic pipeline creation in Apache Hop, and I am trying to understand whether Hop currently supports it, or if there is an intended best-practice approach.

**Create or update Hop pipeline definitions (.hpl) programmatically, using either:**

Hop Server REST API
Java Hop SDK
Any officially supported API
Or recommended architectural approach

**Background**
I reviewed the available Hop Server REST API documentation:

[https://hop.apache.org/manual/latest/hop-server/rest-api.html]
The current REST APIs appear to focus on:
Registering a pipeline
Running a pipeline
Monitoring pipeline execution
Removing pipelines
Getting pipeline images/status

But I could not find any endpoint or SDK function that can:

Create a new pipeline definition programmatically
Modify an existing .hpl file
Add transforms/hops dynamically
Save pipeline definitions back into a project or file system

Use Case

I am integrating Apache Hop with Salesforce Apex, where pipelines must be:

Constructed dynamically (structure changes per user)
Modified at runtime
Saved into the Hop project
Executed via Hop Server

Right now, the only option appears to be:
Manually building a pipeline in Hop GUI
Exporting it
Sending the XML through /addPipeline with execution configs

But this does not let me programmatically create or modify the pipeline itself.

Thanks

GitHub link: https://github.com/apache/hop/discussions/6006

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

This is from one of the first lines on the Apache Hop home page: `Visual development enables developers to be more productive than they can be through code.`
API-based development may come to Apache Hop at some point, but that definitely won't happen any time soon. Until that changes, you'll have to design your pipelines in Hop Gui/Web. Once that's done, you have all the flexibility to execute if/where/when/how you like... 

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-14969593

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "campen (via GitHub)" <gi...@apache.org>.
GitHub user campen added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

@shivanandullagaddi  - you can use a Salesforce api endpoint to get objects, then use a different Salesforce endpoint to get the metadata. From there you would need to build a translation table to convert the Salesforce data types to Hop data types. But then you can build an api call with all of the elements in the call for an object to export Salesforce data via the Salesforce api to another source.  This all using ETL Metadata injection.

You could even programmatically build tables based on the current metadata (or add new fields).  As mentioned above you would need to build the framework.

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-14995492

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

There is a Java SDK and the source code is available, so in theory, everything is possible. However, please realize that writing a user interface, even a simple one, easily takes a couple of weeks (if not months) of work.

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-14985886

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "sramazzina (via GitHub)" <gi...@apache.org>.
GitHub user sramazzina added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

Hi @shivanandullagaddi. In the last months I built a POC were a set of workflows and pipelines that together was used to build a complete end to end process. The definitions of these workflows and pipelines was given by using a set of high level metadata descriptors given through excel files (but they maybe whatever you want). 

That was totally possible and the results was really good because we generated a fully functional Hop process. For sure, you can do what you are trying to do using Hop objects, the same as I do, but you must know some things related to the internals' of Hop. 

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-15005348

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "dmainou (via GitHub)" <gi...@apache.org>.
GitHub user dmainou added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

Hey are I reckon you are barking at the wrong tree.
HOP is a graphical interphase on purpose.
In saying that, you can build templated that can run based on config files that enable you to acomplaish the same thing for an endless number of scenarios.
e.g. 
figure out the shape of a file . Load said file to a data store.
 

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-14994917

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK? (hop)

Posted by "shivanandullagaddi (via GitHub)" <gi...@apache.org>.
GitHub user shivanandullagaddi added a comment to the discussion: How to Programmatically Create or Update Hop Pipelines (.hpl) via API or SDK?

Hi @bamaer 

Thanks for the clarification
can't we create pipeline with Hop sdk configurations?

GitHub link: https://github.com/apache/hop/discussions/6006#discussioncomment-14985832

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org