hudson.drools
Class WorkItemAction

java.lang.Object
  extended by hudson.model.ParametersAction
      extended by hudson.drools.WorkItemAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.Queue.QueueAction, java.lang.Iterable<hudson.model.ParameterValue>

public class WorkItemAction
extends hudson.model.ParametersAction


Constructor Summary
WorkItemAction(long workItemId, long processInstanceId, java.lang.String projectName, boolean completeWhenFailed, boolean completeWhenUnstable, java.util.List<hudson.model.ParameterValue> parameters)
           
 
Method Summary
 void buildComplete(hudson.model.Run r)
           
 void doComplete(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doRestart(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
static hudson.model.Run findRun(hudson.model.Job<?,?> project, long processInstanceId)
           
 java.lang.String getDisplayName()
           
 DroolsRun getDroolsRun()
           
 java.lang.String getIconFileName()
           
 long getProcessInstanceId()
           
 java.lang.String getProjectName()
           
 hudson.model.Run<?,?> getRun()
           
 java.lang.String getUrl()
           
 java.lang.String getUrlName()
           
 long getWorkItemId()
           
 boolean isAllowComplete()
           
 boolean isAllowRestart()
           
 void scheduleBuild()
           
 void setRun(hudson.model.Run<?,?> run)
           
 boolean shouldSchedule(java.util.List<hudson.model.Action> actions)
           
 
Methods inherited from class hudson.model.ParametersAction
buildEnvVars, createBuildWrappers, createVariableResolver, getParameters, iterator, substitute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemAction

public WorkItemAction(long workItemId,
                      long processInstanceId,
                      java.lang.String projectName,
                      boolean completeWhenFailed,
                      boolean completeWhenUnstable,
                      java.util.List<hudson.model.ParameterValue> parameters)
Method Detail

getWorkItemId

public long getWorkItemId()

getProcessInstanceId

public long getProcessInstanceId()

getProjectName

public java.lang.String getProjectName()

scheduleBuild

public void scheduleBuild()

buildComplete

public void buildComplete(hudson.model.Run r)

doRestart

public void doRestart(org.kohsuke.stapler.StaplerRequest req,
                      org.kohsuke.stapler.StaplerResponse rsp)
               throws javax.servlet.ServletException,
                      java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

doComplete

public void doComplete(org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse rsp)
                throws javax.servlet.ServletException,
                       java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.model.ParametersAction

getIconFileName

public java.lang.String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Overrides:
getIconFileName in class hudson.model.ParametersAction

getUrlName

public java.lang.String getUrlName()
Specified by:
getUrlName in interface hudson.model.Action
Overrides:
getUrlName in class hudson.model.ParametersAction

getRun

public hudson.model.Run<?,?> getRun()

setRun

public void setRun(hudson.model.Run<?,?> run)

isAllowRestart

public boolean isAllowRestart()

isAllowComplete

public boolean isAllowComplete()

getDroolsRun

public DroolsRun getDroolsRun()

findRun

public static hudson.model.Run findRun(hudson.model.Job<?,?> project,
                                       long processInstanceId)

getUrl

public java.lang.String getUrl()

shouldSchedule

public boolean shouldSchedule(java.util.List<hudson.model.Action> actions)
Specified by:
shouldSchedule in interface hudson.model.Queue.QueueAction
Overrides:
shouldSchedule in class hudson.model.ParametersAction


Copyright © 2009. All Rights Reserved.