Class ProcessService

  • All Implemented Interfaces:
    java.lang.Runnable

    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

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • 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 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
        Parameters:
        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
        Returns:
        Return
      • run

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

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

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