Replies: 1 comment
-
My short term solution was to rewrite the method to allow for bidirectional property override. However, depending on the answer to this, I may change my approach. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I came across an issue today with a client where the LogicalFile.isCICS() method is correctly returning true based on what I know it to scan for. However, this client needed the member to not be recognized as a CICS program which this flag drives the behavior of in zApp.
(Don't ask me the specifics of why this needed to happen, I'm not a CICS programmer)
So my first thought was to just use the file property override setting isCICS to false. But this does not work.
Looking at the code
`
isCICS - tests to see if the program is a CICS program. If the logical file is false, then
check to see if there is a file property.
*/
def isCICS(LogicalFile logicalFile) {
boolean isCICS = logicalFile.isCICS()
if (!isCICS) {
String cicsFlag = props.getFileProperty('isCICS', logicalFile.getFile())
if (cicsFlag)
isCICS = cicsFlag.toBoolean()
}
return isCICS
}
`
This method is only one directional. You can only override the property isCICS to be true if the LogicalFile returns false.
Why is this and the other is??? methods only one directional and not bidirectional?
Beta Was this translation helpful? Give feedback.
All reactions