Package com.smeup.kokos.sdk.rpgle.caller
Class KokosService
java.lang.Object
com.smeup.kokos.sdk.caller.KokosService
com.smeup.kokos.sdk.rpgle.caller.KokosService
- Direct Known Subclasses:
KokosFallbackService
public abstract class KokosService
extends com.smeup.kokos.sdk.caller.KokosService
- Author:
- mattia.bonardi
-
Field Summary
FieldsFields inherited from class com.smeup.kokos.sdk.caller.KokosService
out, printer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> callProgram(String programName, LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> programParams) Call program interfacevoidexecute(com.smeup.kokos.sdk.fun.Fun fun, ProgramCaller programCaller) Execute method of service.getRpgProgramHelper(String programName) Return the instance of RpgProgramHelper.Methods inherited from class com.smeup.kokos.sdk.caller.KokosService
execute, writeAction, writeButtons, writeDataColumn, writeDataColumns, writeDataNode, writeDataNodeClosure, writeDataRow, writeLayout, writeMessage, writeRawData, writeSch, writeSetup, writeVariable
-
Field Details
-
programCaller
-
-
Constructor Details
-
KokosService
public KokosService()
-
-
Method Details
-
execute
Execute method of service. Call the relative method declared into FUN.- Parameters:
fun- funprogramCaller- program caller- Throws:
Throwable- exception
-
callProgram
public LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value> callProgram(String programName, LinkedHashMap<String, com.smeup.rpgparser.interpreter.Value> programParams) throws ExceptionCall program interface- Parameters:
programName- the name of the programprogramParams- the entry of the program- Returns:
- params
- Throws:
Exception- Exception
-
getRpgProgramHelper
Return the instance of RpgProgramHelper. This is very helpful when you can invoke RPGLE program.- Parameters:
programName- program name- Returns:
- helper
-