Class ProcessService

  • All Implemented Interfaces:

    public class ProcessService
    extends java.lang.Thread
    Asynchronous (start) or synchronous (run) service launcher
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from class java.lang.Thread

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getReturn()
      Service return
      void run()  
      org.json.JSONObject toJSONObject()
      Generates a JSON object representation of the process service
      java.lang.String toString()
      Generates a JSON string representation of the process service
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ProcessService

        public ProcessService​(Processus process,
                              java.lang.String service,
                              ActivityFile context,
                              java.util.List<DataFile> param,
                              Grant g)
        Construct a service call
        process - Business process
        service - Method name with 3 params: process id, User grants and list of DataFile
        context - Activity context
        param - Datafiles
        g - User rights
    • Method Detail

      • getReturn

        public java.lang.String getReturn()
        Service return
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        run in class java.lang.Thread
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Generates a JSON object representation of the process service
        Process service as a JSON object
      • toString

        public java.lang.String toString()
        Generates a JSON string representation of the process service
        toString in class java.lang.Thread
        Process service as a JSON string