Package com.simplicite.bpm
Class ScriptedProcessus
- java.lang.Object
-
- com.simplicite.bpm.ProcessusCore
-
- com.simplicite.bpm.Processus
-
- com.simplicite.bpm.ScriptedProcessus
-
- All Implemented Interfaces:
CacheInterface
,java.io.Serializable
public class ScriptedProcessus extends Processus
Business process with scripted implementation.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.simplicite.bpm.Processus
PARAM_FILTER_PROCESS
-
Fields inherited from class com.simplicite.bpm.ProcessusCore
CANCEL, NEW, READ, STATE_CANCELED, STATE_DONE, STATE_RUNNING, STATE_STARTED, TYPE_ACTIVITY, TYPE_GUI, TYPE_SCREENFLOW, UNIT_DAY, UNIT_HOUR, UNIT_MINUTE, UNIT_MONTH, UNIT_SECOND, UNIT_YEAR
-
-
Constructor Summary
Constructors Constructor Description ScriptedProcessus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.lang.String
getMainObject(ActivityFile context)
Return the main object of the business process.void
invokeCallback(ActivityFile context, java.lang.String callbackName)
Simple callback method calljava.lang.String
invokePageMethod(ActivityFile context, java.lang.Object ctx, java.lang.String method)
java.lang.String
invokeServiceMethod(ActivityFile context, java.lang.String method, java.util.List<?> params)
void
postAbandon()
Hook called after a process abandon (useful for specific cleaning)void
postActivate()
Hook called after activationvoid
postCancel(ActivityFile context)
Hook called after activity canceling/skippingvoid
postInstantiate(Grant grant)
Hook called when one process is instantiatedvoid
postLock(ActivityFile context)
Hook called after the lock of a foreground activity (user dialog)void
postTerminate()
Hook called after termination of processvoid
postUnlock(ActivityFile context)
Hook called after the unlock of a foreground activity (user dialog)void
postValidate(ActivityFile context)
Hook called when the activity has been validated (useful to add specific controls)Message
preAbandon()
Hook called before a process abandonMessage
preActivate()
Hook called before activationMessage
preCancel(ActivityFile context)
Hook called before activity canceling/skippingMessage
preLock(ActivityFile context)
Hook called before the lock of a foreground activity (user dialog)Message
preTerminate()
Hook called before termination of processMessage
preUnlock(ActivityFile context)
Hook called before the unlock of a foreground activity (user dialog)Message
preValidate(ActivityFile context)
Hook called before activity validation (useful to change/complete data)java.lang.String
unitTests()
Unit tests-
Methods inherited from class com.simplicite.bpm.Processus
abandon, activate, addDynamicData, addDynamicData, backward, cancel, getCacheInfo, getContext, getContext, getCurrentActivity, getParameter, getParameter, getParameter, getPreviousContext, history, init, instantiate, isUndoable, javascript, loadAlert, loadAlert, lock, parseValue, parseValues, redirect, sendJavaScript, sendRedirect, storeContext, terminate, unlock, validate, validate
-
Methods inherited from class com.simplicite.bpm.ProcessusCore
addActivity, addPermission, addSharedScript, addTransition, delPermission, enableGC, garbageCollection, getActivities, getActivity, getAlert, getBegin, getCacheKey, getClassName, getCompensationProcess, getConsole, getData, getDeadline, getDisplay, getEnd, getGrant, getId, getLabel, getMainActivity, getMainObjectCascadeDelete, getModuleId, getModuleName, getName, getNext, getNext, getNextActions, getNextActions, getParentContext, getPermissions, getPersistenceDepth, getPID, getPrevious, getProcessId, getProcessName, getProcessParameter, getProcessRoad, getScriptId, getSharedScripts, getShortName, getTransition, getTransitions, getType, initProcessRoad, isCancelGranted, isCancelGranted, isJavaImplemented, isMultiUsers, isNewGranted, isNewGranted, isReadGranted, isReadGranted, isScreenFlow, lastUsage, persistWhenTerminated, readScript, removeProcessParameter, setAlert, setClassName, setCompensationProcess, setConsole, setData, setDisplay, setDuration, setGrant, setId, setLabel, setMainActivityStep, setMainObjectCascadeDelete, setModuleId, setModuleName, setName, setParentContext, setPersistenceWhenTerminated, setPID, setProcessParameter, setScriptId, setShortName, setType, toJSONObject, toString
-
-
-
-
Method Detail
-
clear
public void clear()
-
postInstantiate
public void postInstantiate(Grant grant)
Description copied from class:Processus
Hook called when one process is instantiated- Overrides:
postInstantiate
in classProcessus
- Parameters:
grant
- User rights
-
preActivate
public Message preActivate()
Description copied from class:Processus
Hook called before activation- Overrides:
preActivate
in classProcessus
- Returns:
- null or error
-
postActivate
public void postActivate()
Description copied from class:Processus
Hook called after activation- Overrides:
postActivate
in classProcessus
-
preTerminate
public Message preTerminate()
Description copied from class:Processus
Hook called before termination of process- Overrides:
preTerminate
in classProcessus
- Returns:
- null or error
-
postTerminate
public void postTerminate()
Description copied from class:Processus
Hook called after termination of process- Overrides:
postTerminate
in classProcessus
-
preAbandon
public Message preAbandon()
Description copied from class:Processus
Hook called before a process abandon- Overrides:
preAbandon
in classProcessus
- Returns:
- null or error to abort the abandon
-
postAbandon
public void postAbandon()
Description copied from class:Processus
Hook called after a process abandon (useful for specific cleaning)- Overrides:
postAbandon
in classProcessus
-
preLock
public Message preLock(ActivityFile context)
Description copied from class:Processus
Hook called before the lock of a foreground activity (user dialog)
-
postLock
public void postLock(ActivityFile context)
Description copied from class:Processus
Hook called after the lock of a foreground activity (user dialog)
-
preUnlock
public Message preUnlock(ActivityFile context)
Description copied from class:Processus
Hook called before the unlock of a foreground activity (user dialog)
-
postUnlock
public void postUnlock(ActivityFile context)
Description copied from class:Processus
Hook called after the unlock of a foreground activity (user dialog)- Overrides:
postUnlock
in classProcessus
- Parameters:
context
- The activity context
-
preValidate
public Message preValidate(ActivityFile context)
Description copied from class:Processus
Hook called before activity validation (useful to change/complete data)- Overrides:
preValidate
in classProcessus
- Parameters:
context
- The activity context- Returns:
- null or errors
-
postValidate
public void postValidate(ActivityFile context)
Description copied from class:Processus
Hook called when the activity has been validated (useful to add specific controls)- Overrides:
postValidate
in classProcessus
- Parameters:
context
- The activity context
-
preCancel
public Message preCancel(ActivityFile context)
Description copied from class:Processus
Hook called before activity canceling/skipping
-
postCancel
public void postCancel(ActivityFile context)
Description copied from class:Processus
Hook called after activity canceling/skipping- Overrides:
postCancel
in classProcessus
- Parameters:
context
- The activity context
-
getMainObject
public java.lang.String getMainObject(ActivityFile context)
Description copied from class:Processus
Return the main object of the business process. To override if activity is not based on business object.- Overrides:
getMainObject
in classProcessus
- Parameters:
context
- Activity context- Returns:
- object:id
-
invokeCallback
public void invokeCallback(ActivityFile context, java.lang.String callbackName) throws MethodException
Description copied from class:Processus
Simple callback method call
- Overrides:
invokeCallback
in classProcessus
- Parameters:
context
- ContextcallbackName
- Callback name- Throws:
MethodException
- method exception
-
invokePageMethod
public java.lang.String invokePageMethod(ActivityFile context, java.lang.Object ctx, java.lang.String method) throws MethodException
- Overrides:
invokePageMethod
in classProcessus
- Throws:
MethodException
-
invokeServiceMethod
public java.lang.String invokeServiceMethod(ActivityFile context, java.lang.String method, java.util.List<?> params) throws MethodException
- Overrides:
invokeServiceMethod
in classProcessus
- Throws:
MethodException
-
-