viksingh/sap-cpi-iflow-controller — reverse-engineered prompt

Reverse engineered prompt

Build me a small Java command line app that can manage SAP CPI integration flows from a CSV list.

I want to pass in a config properties file, an iFlows CSV file, and one action flag. The actions should be status, deploy, or undeploy. For status, it should call the SAP CPI API and show the runtime state of each iFlow in a clean table with package name and iFlow name, plus a simple success and failure summary at the end. For deploy, it should start the listed flows. For undeploy, it should stop and undeploy them.

Please make it read the CPI tenant URL and OAuth2 client credentials from the properties file, and read package plus iFlow from a two column CSV with an optional header row. It should work with technical IDs or display names where possible. Include sensible error handling so bad auth, missing flows, or API errors are clearly shown per row instead of crashing everything.

Please also include example template files and make it easy to build into a runnable jar. Look up current SAP CPI API docs if you need to.

Want more depth? Deep Reverse