@Api public class FunctionContext extends WorkflowContext
Context. Active during execution of workflow function.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
enableLog| Modifier and Type | Method and Description |
|---|---|
static FunctionContext |
activate(String processId,
String activityId)
Activates function context.
|
static FunctionContext |
current()
Returns current function context.
|
static FunctionContext |
deactivate()
Deactivates current function context
|
void |
disableLogging() |
void |
enableLogging() |
static boolean |
isActive()
Returns true if this context is active.
|
String |
name()
Returns this context name (for identification purposes)
|
activateFunctionContext, deactivateFunctionContext, getActivityDefId, getActivityDelegations, getActivityId, getPackageId, getProcessDefId, getProcessIdpublic static final String NAME
public String name()
Contextname in interface Contextname in class WorkflowContextpublic static boolean isActive()
public static FunctionContext current() throws ContextNotActiveException
ContextNotActiveExceptionpublic static FunctionContext activate(String processId, String activityId)
processId - process idactivityId - activity idpublic static FunctionContext deactivate()
public void disableLogging()
disableLogging in class WorkflowContextpublic void enableLogging()
enableLogging in class WorkflowContextCopyright © 2023 Suncode. All rights reserved.