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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.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
doProceedEmpty()
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.String
getDisplayName()
boolean
getHasUnsafeId()
boolean
getHasUnsafeParameters()
String
getId()
InputStep
getInput()
Run<?,?>
getRun()
boolean
isSettled()
If this input step has been decided one way or the other.void
preSubmissionCheck()
Check if the current user can submit the input.org.kohsuke.stapler.HttpResponse
proceed(Object v)
Deprecated.org.kohsuke.stapler.HttpResponse
proceed(Map<String,Object> params)
Processes the acceptance (approval) request.boolean
start()
void
stop(Throwable cause)
-
Methods inherited from class org.jenkinsci.plugins.workflow.steps.AbstractStepExecutionImpl
inject, onResume
-
-
-
-
Method Detail
-
start
public boolean start() throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
stop
public void stop(Throwable cause) throws Exception
- Overrides:
stop
in classorg.jenkinsci.plugins.workflow.steps.StepExecution
- Throws:
Exception
-
getId
@Exported public String getId()
-
getInput
@Exported public InputStep getInput()
-
getRun
public Run<?,?> getRun() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
isSettled
@Exported public boolean isSettled()
If this input step has been decided one way or the other.
-
getDisplayName
@Exported public String 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, InterruptedException
Processes 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
public org.kohsuke.stapler.HttpResponse doProceedEmpty() throws IOException, InterruptedException
Used from the Proceed hyperlink when no parameters are defined.- Throws:
IOException
InterruptedException
-
doAbort
public org.kohsuke.stapler.HttpResponse doAbort() throws IOException, InterruptedException
REST endpoint to abort the workflow.- Throws:
IOException
InterruptedException
-
preSubmissionCheck
public void preSubmissionCheck() throws IOException, InterruptedException
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()
-
-