dweibel / pcml-om Goto Github PK
View Code? Open in Web Editor NEWMap domain objects to IBM's Program Call Markup Language
Map domain objects to IBM's Program Call Markup Language
Hi Dirk,
I've been unsuccessful in trying to generate a PcmlDao object for the following kind of PCML file:
<pcml version="4.0">
<program name="MYPGMNAM" path="/QSYS.LIB/%LIBL%.LIB/MYPGMNAM.PGM">
<struct name="MYPGMN" usage="inputoutput">
<data ccsid="00297" init="" length="10" name="PARM1" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="10" name="PARM2" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="11" name="PARM3" type="char" usage="inherit"/>
<struct count="10" name="STRUCT1" usage="inherit">
<data ccsid="00297" init="" length="10" name="STRPRM1" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="7" name="STRPRM2" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="2" name="STRPRM3" type="char" usage="inherit"/>
</struct>
<data ccsid="00297" init="" length="1" name="PARM4" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="3" name="PARM5" type="char" usage="inherit"/>
<data ccsid="00297" init="0" length="13" name="PARM6" precision="0" type="zoned" usage="inherit"/>
<struct count="100" name="OTHSTRU" usage="inherit">
<data ccsid="00297" init="" length="2" name="PSTRU1" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="3" name="PSTRU2" type="char" usage="inherit"/>
<data ccsid="00297" init="0" length="10" name="PSTRU3" precision="0" type="zoned" usage="inherit"/>
</struct>
<struct count="100" name="STRU3" usage="inherit">
<data ccsid="00297" init="" length="2" name="SP1" type="char" usage="inherit"/>
<data ccsid="00297" init="0" length="3" name="SP2" precision="0" type="zoned" usage="inherit"/>
<struct count="10" name="STRU4" usage="inherit">
<data ccsid="00297" init="" length="2" name="PSR1" type="char" usage="inherit"/>
<data ccsid="00297" init="" length="1" name="PSR2" type="char" usage="inherit"/>
</struct>
</struct>
</struct>
</program>
</pcml>
I've trying processing the received PCML file myself abit, adding struct type params, but this is the file that has been working on an older version of the application I'm working on and this is what I have to work with.
Also any processing I made didn't seem to work.
Do you know if this library supports nested structs?
Thanks,
Alex
Hey,
First of all, thanks for the awesome tooling!
My issue is the following:
private static final AS400 mysystem = new AS400("system", "username", "password");
...
PcmlDao program = new PcmlDao("PROGR", classLoader, "xmlmapper", classLoader);
program.callAs400(mysystem, programName, new Object[]{ item1, item2, item3 });
Getting compile-time error on mysystem at callAs400 call.
'callAs400(AS400, java.lang.String, java.lang.Object...)' in 'org.pcml_om.PcmlDao' cannot be applied to '(com.ibm.as400.access.AS400, java.lang.String, java.lang.Object[])'
I'm using JTOpen 8.4.
Thanks for any help,
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.