|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jboss.jbossnetwork.product.jbpm.handlers.BaseHandler
com.jboss.jbossnetwork.product.jbpm.handlers.JONServerDownloadActionHandler
public class JONServerDownloadActionHandler
JBPM action handler that is responsible for downloading the bits for the patch and writing them out to a temporary file.
| Field Summary |
|---|
| Fields inherited from class com.jboss.jbossnetwork.product.jbpm.handlers.BaseHandler |
|---|
logger, MESSAGE_NO_CHANGES, TRANSITION_ERROR, TRANSITION_SUCCESS |
| Constructor Summary | |
|---|---|
JONServerDownloadActionHandler()
|
|
| Method Summary | |
|---|---|
protected void |
checkProperties()
Ensures the property values that were set in BaseHandler.substituteVariables(org.jbpm.graph.exe.ExecutionContext)
are valid. |
void |
downloadBits(org.rhq.core.domain.content.PackageDetailsKey key,
ContentContext contentContext)
|
String |
getDescription()
Returns a user readable description of what the step in the workflow entails. |
String |
getDestinationFileLocation()
|
void |
run(org.jbpm.graph.exe.ExecutionContext executionContext)
Tells the handle implementation to actually perform the step indicated. |
void |
setDestinationFileLocation(String destinationFileLocation)
|
void |
setPropertyDefaults()
Sets the default values for properties used by the handler implementation. |
void |
substituteVariables(org.jbpm.graph.exe.ExecutionContext executionContext)
Requests the action handler substitute into its node any variables necessary, taking the values for these from the provided execution context. |
| Methods inherited from class com.jboss.jbossnetwork.product.jbpm.handlers.BaseHandler |
|---|
complete, error, execute, notRun, skip, substituteVariable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JONServerDownloadActionHandler()
| Method Detail |
|---|
public void run(org.jbpm.graph.exe.ExecutionContext executionContext)
BaseHandler
run in class BaseHandlerexecutionContext - cannot be null
public void downloadBits(org.rhq.core.domain.content.PackageDetailsKey key,
ContentContext contentContext)
throws IOException,
ActionHandlerException
IOException
ActionHandlerExceptionpublic String getDescription()
BaseHandler
getDescription in class BaseHandlernullpublic void setPropertyDefaults()
BaseHandler
setPropertyDefaults in class BaseHandler
protected void checkProperties()
throws ActionHandlerException
BaseHandlerBaseHandler.substituteVariables(org.jbpm.graph.exe.ExecutionContext)
are valid. This may optionally be overridden by action handler implementations if necessary.
checkProperties in class BaseHandlerActionHandlerException - if any of the properties are invalid
public void substituteVariables(org.jbpm.graph.exe.ExecutionContext executionContext)
throws ActionHandlerException
BaseHandler
substituteVariables in class BaseHandlerexecutionContext - JBPM execution context from which the property values should be extracted
ActionHandlerException - if there is an error extraction or substituting the variablespublic String getDestinationFileLocation()
public void setDestinationFileLocation(String destinationFileLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||