Package com.simplicite.bpm
Class ProcessService
- java.lang.Object
-
- java.lang.Thread
-
- com.simplicite.bpm.ProcessService
-
- All Implemented Interfaces:
java.lang.Runnable
public class ProcessService extends java.lang.Thread
Asynchronous (start) or synchronous (run) service launcher
-
-
Constructor Summary
Constructors Constructor Description ProcessService(Processus process, java.lang.String service, ActivityFile context, java.util.List<DataFile> param, Grant g)
Construct a service call
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getReturn()
Service returnvoid
run()
org.json.JSONObject
toJSONObject()
Generates a JSON object representation of the process servicejava.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
-
-
-
-
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 processservice
- Method name with 3 params: process id, User grants and list of DataFilecontext
- Activity contextparam
- Datafilesg
- User rights
-
-
Method Detail
-
getReturn
public java.lang.String getReturn()
Service return- Returns:
- Return
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.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 classjava.lang.Thread
- Returns:
- process service as string
-
-