|
||||||||||
| 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.BackupAndReplaceFileActionHandler
public class BackupAndReplaceFileActionHandler
JBPM process handler that is responsible for copying new files from a patch into the AS instance. The previous file will be renamed with a timestamp and .old extension to facilitate rolling back the patch.
| Field Summary |
|---|
| Fields inherited from class com.jboss.jbossnetwork.product.jbpm.handlers.BaseHandler |
|---|
logger, MESSAGE_NO_CHANGES, TRANSITION_ERROR, TRANSITION_SUCCESS |
| Constructor Summary | |
|---|---|
BackupAndReplaceFileActionHandler()
|
|
| Method Summary | |
|---|---|
protected void |
checkProperties()
Ensures the property values that were set in BaseHandler.substituteVariables(org.jbpm.graph.exe.ExecutionContext)
are valid. |
String |
getBackupFileLocation()
|
String |
getDescription()
Returns a user readable description of what the step in the workflow entails. |
String |
getDestinationFileLocation()
|
String |
getOriginalFileLocation()
|
String |
getReplacementFileLocation()
|
void |
run(org.jbpm.graph.exe.ExecutionContext executionContext)
Tells the handle implementation to actually perform the step indicated. |
void |
setBackupFileLocation(String backupFileLocation)
|
void |
setDestinationFileLocation(String destinationFileLocation)
|
void |
setOriginalFileLocation(String originalFileLocation)
|
void |
setPropertyDefaults()
Sets the default values for properties used by the handler implementation. |
void |
setReplacementFileLocation(String replacementFileLocation)
|
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 BackupAndReplaceFileActionHandler()
| Method Detail |
|---|
public void run(org.jbpm.graph.exe.ExecutionContext executionContext)
BaseHandler
run in class BaseHandlerexecutionContext - cannot be nullpublic String getDescription()
BaseHandler
getDescription in class BaseHandlernull
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 variables
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 invalidpublic void setPropertyDefaults()
BaseHandler
setPropertyDefaults in class BaseHandlerpublic String getReplacementFileLocation()
public void setReplacementFileLocation(String replacementFileLocation)
public String getOriginalFileLocation()
public void setOriginalFileLocation(String originalFileLocation)
public String getBackupFileLocation()
public void setBackupFileLocation(String backupFileLocation)
public String getDestinationFileLocation()
public void setDestinationFileLocation(String destinationFileLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||