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 FunctionContextActivates function context.static FunctionContextcurrent()Returns current function context.static FunctionContextDeactivates current function contextvoidvoidstatic booleanisActive()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:ContextReturns this context name (for identification purposes)- Specified by:
namein interfaceContext- Overrides:
namein 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:
disableLoggingin classWorkflowContext
-
enableLogging
public void enableLogging()- Specified by:
enableLoggingin classWorkflowContext
-