StepDescriptor
and avoid Guice.StepExecution
that injects StepContextParameter
upon resume.StepExecution
and avoid Guice for a new step.
Or see AbstractStepExecutionImpl.AbstractStepExecutionImpl(StepContext)
for an existing step.Step
and avoid Guice.SynchronousNonBlockingStepExecution
and avoid Guice.SynchronousStepExecution
and avoid Guice.StepExecution
and apply the function.StepExecution
s in the system.Step
.FutureCallback
enhanced to track BodyExecution
.Step
.StepDescriptor
by its function name, or null if not found.BodyExecution.cancel(CauseOfInterruption...)
in case
the cause is a random exception.StepContext
has all the context parameters this descriptor wants to see,
and if not, throw MissingContextVariableException
indicating which variable is missing.DescribableModel
StepContext.get(java.lang.Class<T>)
instead of raw EnvVars
.StepContext
s get persisted, so they may not have the identity equality, but equals
method would allow two instances to be compared.StaplerRequest.findAncestorObject(java.lang.Class<T>)
except works also in configuration screens when a lazy-load section is newly added.FutureCallback.onFailure(java.lang.Throwable)
to indicate that the flow was aborted from the inside.StepExecution
s that are currently executing.Descriptor.getDisplayName()
where available.Step
adds/sets/modifies when executing a body.StepDescriptor
s with body that can provide a context of this type,
so that the error message can diagnose what steps were likely missing.StepContextParameter
s
and infer required contexts from there.Step
needs to access.StepExecution.getStatus()
but more robust.Describable
.DescribableHelper.CLAZZ
to types of allowable nested objects.StepContext.equals(Object)
method is overridden.DataBoundConstructor
and DataBoundSetter
.CoreStep
or GenericSCMStep
can take
arbitrary Describable
s of a certain type and execute it as a step.StepContext.get(java.lang.Class<T>)
is ready to return values.Step
is instantiated programmatically.StepContextParameter
s.StepExecution
is brought back into memory after restart.StepExecution
be saved to disk.DescribableHelper.uninstantiate(java.lang.Object)
on an instance,
or might want to pass to DescribableHelper.instantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>)
.AbstractStepDescriptorImpl.getExecutionType()
.Step
.StepContext.get(java.lang.Class<T>)
as needed and avoid Guice.Step
, and provides insights into what's going on
asynchronously and aborting the activity if need be.StepContext
must be passed in.StepExecution
s in the system.SynchronousStepExecution
(it executes synchronously too) but it does not block the CPS VM thread.StepExecution
that always executes synchronously.DescribableHelper.instantiate(java.lang.Class<? extends T>, java.util.Map<java.lang.String, ?>)
to reconstruct this object.BodyInvoker.withCallback(BodyExecutionCallback)
and call BodyExecutionCallback.wrap(com.google.common.util.concurrent.FutureCallback<java.lang.Object>)
if this is what you really wanted.FutureCallback
into BodyExecutionCallback
.Copyright © 2016–2017. All rights reserved.