Package com.suncode.pwfl.core.function
Class FunctionContext
java.lang.Object
com.suncode.pwfl.workflow.WorkflowContext
com.suncode.pwfl.core.function.FunctionContext
- All Implemented Interfaces:
Context
Function
Context
. Active during execution of workflow function.-
Field Summary
FieldsFields inherited from class com.suncode.pwfl.workflow.WorkflowContext
enableLog
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionContext
Activates function context.static FunctionContext
current()
Returns current function context.static FunctionContext
Deactivates current function contextvoid
void
static boolean
isActive()
Returns true if this context is active.name()
Returns this context name (for identification purposes)Methods inherited from class com.suncode.pwfl.workflow.WorkflowContext
activateFunctionContext, deactivateFunctionContext, getActivityDefId, getActivityDelegations, getActivityId, getPackageId, getProcessDefId, getProcessId
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
name
Description copied from interface:Context
Returns this context name (for identification purposes)- Specified by:
name
in interfaceContext
- Overrides:
name
in classWorkflowContext
-
isActive
public static boolean isActive()Returns true if this context is active. -
current
Returns current function context.- Throws:
ContextNotActiveException
-
activate
Activates function context.- Parameters:
processId
- process idactivityId
- activity id- Returns:
- active function context
-
deactivate
Deactivates current function context- Returns:
- deactivated context
-
disableLogging
public void disableLogging()- Specified by:
disableLogging
in classWorkflowContext
-
enableLogging
public void enableLogging()- Specified by:
enableLogging
in classWorkflowContext
-