Class InputStepExecution
java.lang.Object
org.jenkinsci.plugins.workflow.steps.StepExecution
org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
org.jenkinsci.plugins.workflow.support.steps.input.InputStepExecution
- All Implemented Interfaces:
ModelObject
,Serializable
@ExportedBean(defaultVisibility=2)
public class InputStepExecution
extends org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
implements ModelObject
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doAbort()
REST endpoint to abort the workflow.org.kohsuke.stapler.HttpResponse
doProceed
(org.kohsuke.stapler.StaplerRequest request) REST endpoint to submit the input.org.kohsuke.stapler.HttpResponse
Used from the Proceed hyperlink when no parameters are defined.org.kohsuke.stapler.HttpResponse
doSubmit
(org.kohsuke.stapler.StaplerRequest request) Called from the form via browser to submit/abort this input step.boolean
boolean
getId()
getInput()
Run<?,
?> getRun()
boolean
If this input step has been decided one way or the other.void
Check if the current user can submit the input.org.kohsuke.stapler.HttpResponse
Deprecated.org.kohsuke.stapler.HttpResponse
Processes the acceptance (approval) request.boolean
start()
void
Methods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
inject, onResume
Methods inherited from class org.jenkinsci.plugins.workflow.steps.StepExecution
applyAll, applyAll, blocksRestart, getContext, getStatus, getStatusBounded
-
Method Details
-
start
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
stop
- Overrides:
stop
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
getId
-
getInput
-
getRun
- Throws:
IOException
InterruptedException
-
isSettled
@Exported public boolean isSettled()If this input step has been decided one way or the other. -
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
doSubmit
public org.kohsuke.stapler.HttpResponse doSubmit(org.kohsuke.stapler.StaplerRequest request) throws IOException, javax.servlet.ServletException, InterruptedException Called from the form via browser to submit/abort this input step.- Throws:
IOException
javax.servlet.ServletException
InterruptedException
-
doProceed
public org.kohsuke.stapler.HttpResponse doProceed(org.kohsuke.stapler.StaplerRequest request) throws IOException, javax.servlet.ServletException, InterruptedException REST endpoint to submit the input.- Throws:
IOException
javax.servlet.ServletException
InterruptedException
-
proceed
public org.kohsuke.stapler.HttpResponse proceed(@CheckForNull Map<String, Object> params) throws IOException, InterruptedExceptionProcesses the acceptance (approval) request. This method is used by bothdoProceedEmpty()
anddoProceed(StaplerRequest)
- Parameters:
params
- A map that represents the parameters sent in the request- Returns:
- A HttpResponse object that represents Status code (200) indicating the request succeeded normally.
- Throws:
IOException
InterruptedException
-
proceed
@Deprecated public org.kohsuke.stapler.HttpResponse proceed(Object v) throws IOException, InterruptedException Deprecated.- Throws:
IOException
InterruptedException
-
doProceedEmpty
Used from the Proceed hyperlink when no parameters are defined.- Throws:
IOException
InterruptedException
-
doAbort
REST endpoint to abort the workflow.- Throws:
IOException
InterruptedException
-
preSubmissionCheck
Check if the current user can submit the input.- Throws:
IOException
InterruptedException
-
getHasUnsafeParameters
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeParameters() -
getHasUnsafeId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean getHasUnsafeId()
-