@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, getProcessId
public static final String NAME
public String name()
Context
name
in interface Context
name
in class WorkflowContext
public static boolean isActive()
public static FunctionContext current() throws ContextNotActiveException
ContextNotActiveException
public static FunctionContext activate(String processId, String activityId)
processId
- process idactivityId
- activity idpublic static FunctionContext deactivate()
public void disableLogging()
disableLogging
in class WorkflowContext
public void enableLogging()
enableLogging
in class WorkflowContext
Copyright © 2023 Suncode. All rights reserved.