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

    Fields
    Modifier and Type
    Field
    Description
    protected ProgramCaller
     

    Fields inherited from class com.smeup.kokos.sdk.caller.KokosService

    out, printer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value>
    callProgram(String programName, LinkedHashMap<String,com.smeup.rpgparser.interpreter.Value> programParams)
    Call program interface
    void
    execute(com.smeup.kokos.sdk.fun.Fun fun, ProgramCaller programCaller)
    Execute method of service.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • KokosService

      public KokosService()
  • Method Details

    • execute

      public void execute(com.smeup.kokos.sdk.fun.Fun fun, ProgramCaller programCaller) throws Throwable
      Execute method of service. Call the relative method declared into FUN.
      Parameters:
      fun - fun
      programCaller - 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 Exception
      Call program interface
      Parameters:
      programName - the name of the program
      programParams - the entry of the program
      Returns:
      params
      Throws:
      Exception - Exception
    • getRpgProgramHelper

      public RpgProgramHelper getRpgProgramHelper(String programName)
      Return the instance of RpgProgramHelper. This is very helpful when you can invoke RPGLE program.
      Parameters:
      programName - program name
      Returns:
      helper