ZWorkflowImplementationOptions

zio.temporal.worker.ZWorkflowImplementationOptions
See theZWorkflowImplementationOptions companion object

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toJava: WorkflowImplementationOptions

Converts workflow implementation options to Java SDK's WorkflowImplementationOptions

Converts workflow implementation options to Java SDK's WorkflowImplementationOptions

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Allows to specify options directly on the java SDK's WorkflowImplementationOptions. Use it in case an appropriate withXXX method is missing

Allows to specify options directly on the java SDK's WorkflowImplementationOptions. Use it in case an appropriate withXXX method is missing

Attributes

Note

the options specified via this method take precedence over those specified via other methods.

Set individual activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newActivityStub which has the highest precedence.

Set individual activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newActivityStub which has the highest precedence.

Value parameters

values

map from activityType to ActivityOptions

Attributes

Set individual activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newActivityStub which has the highest precedence.

Set individual activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newActivityStub which has the highest precedence.

Value parameters

values

map from activityType to ActivityOptions

Attributes

These activity options have the lowest precedence across all activity options. Will be overwritten entirely by zio.temporal.workflow.ZWorkflow.newActivityStub and then by the individual activity options if any are set through withActivityOptions

These activity options have the lowest precedence across all activity options. Will be overwritten entirely by zio.temporal.workflow.ZWorkflow.newActivityStub and then by the individual activity options if any are set through withActivityOptions

Value parameters

value

ZActivityOptions for all activities in the workflow.

Attributes

These local activity options have the lowest precedence across all local activity options. Will be overwritten entirely by zio.temporal.workflow.ZWorkflow.newLocalActivityStub and then by the individual local activity options if any are set through withLocalActivityOptions

These local activity options have the lowest precedence across all local activity options. Will be overwritten entirely by zio.temporal.workflow.ZWorkflow.newLocalActivityStub and then by the individual local activity options if any are set through withLocalActivityOptions

Value parameters

value

ActivityOptions for all activities in the workflow.

Attributes

def withFailWorkflowExceptionTypes(values: Class[_ <: Throwable]*): ZWorkflowImplementationOptions

Optional: Sets how workflow worker deals with exceptions thrown from the workflow code which include non-deterministic history events (presumably arising from non-deterministic workflow definitions or non-backward compatible workflow definition changes).

Optional: Sets how workflow worker deals with exceptions thrown from the workflow code which include non-deterministic history events (presumably arising from non-deterministic workflow definitions or non-backward compatible workflow definition changes).

The default behavior is to fail workflow on io.temporal.failure.TemporalFailure or any of its subclasses. Any other exceptions thrown from the workflow code are treated as bugs that can be fixed by a new deployment. So workflow is not failed, but it stuck in a retry loop trying to execute the code that led to the unexpected exception.

This option allows to specify specific exception types which should lead to workflow failure instead of blockage. Any exception that extends the configured type considered matched. For example to fail workflow on any exception pass Throwable class to this method.

Attributes

def withFailWorkflowExceptionTypes(values: List[Class[_ <: Throwable]]): ZWorkflowImplementationOptions

Optional: Sets how workflow worker deals with exceptions thrown from the workflow code which include non-deterministic history events (presumably arising from non-deterministic workflow definitions or non-backward compatible workflow definition changes).

Optional: Sets how workflow worker deals with exceptions thrown from the workflow code which include non-deterministic history events (presumably arising from non-deterministic workflow definitions or non-backward compatible workflow definition changes).

The default behavior is to fail workflow on io.temporal.failure.TemporalFailure or any of its subclasses. Any other exceptions thrown from the workflow code are treated as bugs that can be fixed by a new deployment. So workflow is not failed, but it stuck in a retry loop trying to execute the code that led to the unexpected exception.

This option allows to specify specific exception types which should lead to workflow failure instead of blockage. Any exception that extends the configured type considered matched. For example to fail workflow on any exception pass Throwable class to this method.

Attributes

Set individual local activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newLocalActivityStub which has the highest precedence.

Set individual local activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newLocalActivityStub which has the highest precedence.

Value parameters

values

map from activityType to ActivityOptions

Attributes

Set individual local activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newLocalActivityStub which has the highest precedence.

Set individual local activity options per activityType ('''activity method name'''). Will be merged with the map from zio.temporal.workflow.ZWorkflow.newLocalActivityStub which has the highest precedence.

Value parameters

values

map from activityType to ActivityOptions

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product