Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: usability of ProgramCall/ServiceProgramCall #57

Open
ThePrez opened this issue May 2, 2023 · 0 comments
Open

Enhancement: usability of ProgramCall/ServiceProgramCall #57

ThePrez opened this issue May 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ThePrez
Copy link
Member

ThePrez commented May 2, 2023

The setting up of the parameter list could use some improvements.
For instance, the JT400 component of Apache Camel (example here) allows the user to just pass in an array of objects.

Even better would be if the user could pass in a list of parameters. For instance:

ProgramCall pc = new ProgramCall(/* ... */);
LinkedList<Object> parms = new LinkedList<Object>();
parms.addParam("MYLIB    ");
parms.addParam(17);
parms.addParam("another string");
pc.setProgram("/QSYS.LIB/TESTLIB.LIB/TESTPROG.PGM", parms);

Or even:

ProgramCall pc = new ProgramCall(/* ... */);
pc.setProgram("/QSYS.LIB/TESTLIB.LIB/TESTPROG.PGM", "MYLIB    ", 17, "another string");
@ThePrez ThePrez added the enhancement New feature or request label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant