ActionApplied

class ActionApplied<out OutputT> @JvmOverloads constructor(val output: WorkflowOutput<OutputT>?, val stateChanged: Boolean = false) : ActionProcessingResult(source)

Result of applying an action.

Parameters

output

: the potentially null WorkflowOutput. If null, then no output was set by the action. Otherwise it is a WorkflowOutput around the output value of type OutputT, which could be null.

stateChanged

: whether or not the action changed the state.

Note this is NOT a data class to avoid binary compatibility issues with future updates.

See also

here

(https://jakewharton.com/public-api-challenges-in-kotlin/) for more on this.

Also note that since we have decided to allow destructuring and implemented componentN() functions, we should only ever add new properties to the end of this constructor.

Constructors

Link copied to clipboard
constructor(output: WorkflowOutput<OutputT>?, stateChanged: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val stateChanged: Boolean = false

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun copy(output: WorkflowOutput<@UnsafeVariance OutputT>? = this.output, stateChanged: Boolean = this.stateChanged): ActionApplied<OutputT>

Only add to the end of this function to avoid binary compatibility issues.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String