Class VelocityWorkflowAction
java.lang.Object
de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
de.uplanet.lucy.server.workflow.action.VelocityWorkflowAction
- All Implemented Interfaces:
IActivatableWorkflowObject
,INamedWorkflowObject
,INeedWorkflow
,INeedWorkflowDirectory
,IWorkflowAction
,IWorkflowObject
,Serializable
public final class VelocityWorkflowAction
extends AbstractWorkflowAction
implements INeedWorkflowDirectory
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the output file encoding.Get the path of the output file.Get the shared state variable name.Get the path of the Velocity template.Get the workflow directory.process
(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) Process a workflow event in the given context.void
setOutputEncoding
(String p_strOutputEncoding) Set the output file encoding.void
setOutputPath
(String p_strOutputPath) Set the path of the output file.void
setSharedStateVariableName
(String p_strSharedStateVariableName) Set the shared state variable name.void
setVelocityInputPath
(String p_strVelocityInputPath) Set the path of the Velocity template.void
setWorkflowDirectory
(Path p_dir) Set the workflow directory.Methods inherited from class de.uplanet.lucy.server.workflow.action.AbstractWorkflowAction
getAfferentTransition, getEfferentTransition, getGuid, getName, getWorkflow, isActive, setActive, setAfferentTransition, setEfferentTransition, setName, setWorkflow, toString
-
Constructor Details
-
VelocityWorkflowAction
-
-
Method Details
-
getWorkflowDirectory
Description copied from interface:INeedWorkflowDirectory
Get the workflow directory.- Specified by:
getWorkflowDirectory
in interfaceINeedWorkflowDirectory
- Returns:
- The workflow directory.
-
setWorkflowDirectory
Description copied from interface:INeedWorkflowDirectory
Set the workflow directory.- Specified by:
setWorkflowDirectory
in interfaceINeedWorkflowDirectory
- Parameters:
p_dir
- The workflow directory.
-
getVelocityInputPath
Get the path of the Velocity template.- Returns:
- The path of the Velocity template.
-
setVelocityInputPath
Set the path of the Velocity template.- Parameters:
p_strVelocityInputPath
- The path of the Velocity template.
-
getOutputPath
Get the path of the output file.- Returns:
- The path of the output file.
-
setOutputPath
Set the path of the output file.- Parameters:
p_strOutputPath
- The path of the output file.
-
getOutputEncoding
Get the output file encoding.- Returns:
- The path of the output file.
-
setOutputEncoding
Set the output file encoding.- Parameters:
p_strOutputEncoding
- The output file encoding.
-
process
public WorkflowTransition process(IWorkflowEvent p_evt, de.uplanet.lucy.server.workflow.IWorkflowProcessingContext p_wfCtx, de.uplanet.lucy.server.IProcessingContext p_ctx) throws Exception Description copied from interface:IWorkflowAction
Process a workflow event in the given context.Normally, a workflow action should return its efferent transition, regardless whether it is
active
, or not.- Specified by:
process
in interfaceIWorkflowAction
- Parameters:
p_evt
- The event to be processed.p_wfCtx
- The workflow processing context.p_ctx
- The processing context.- Returns:
- The efferent transition, or
null
. - Throws:
Exception
- If an error occurred.
-