public final class Activity
extends java.lang.Object
Worker
,
Workflow
,
WorkflowClient
Modifier and Type | Method and Description |
---|---|
static ActivityExecutionContext |
getExecutionContext()
Can be used to get information about an Activity Execution and to invoke Heartbeats.
|
static java.lang.RuntimeException |
wrap(java.lang.Throwable e)
Use this to rethrow a checked exception from an Activity Execution instead of adding the
exception to a method signature.
|
public static ActivityExecutionContext getExecutionContext()
public static java.lang.RuntimeException wrap(java.lang.Throwable e)
RuntimeException
or Error
.